/[MITgcm]/MITgcm/pkg/ggl90/ggl90_checkpoint.F
ViewVC logotype

Contents of /MITgcm/pkg/ggl90/ggl90_checkpoint.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Tue Apr 28 18:15:33 2009 UTC (15 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint62, checkpoint63, checkpoint65h, checkpoint65i, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61n, checkpoint61o, checkpoint61m, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.2: +2 -2 lines
change macros (EXCH & GLOBAL_SUM/MAX) sufix _R4/_R8 to _RS/_RL
 when applied to _RS/_RL variable

1 C $Header: /u/gcmpack/MITgcm/pkg/ggl90/ggl90_checkpoint.F,v 1.2 2007/10/19 03:20:42 jmc Exp $
2 C $Name: $
3
4 #include "GGL90_OPTIONS.h"
5
6 SUBROUTINE GGL90_READ_PICKUP( myIter, myThid )
7
8 IMPLICIT NONE
9 C === Global variables ===
10 #include "SIZE.h"
11 #include "EEPARAMS.h"
12 #include "PARAMS.h"
13 #include "GGL90.h"
14
15 C == Routine arguments ==
16 C myThid - Number of this instance of GGL90_READ_CHECKPOINT
17 INTEGER myIter
18 INTEGER myThid
19
20 #ifdef ALLOW_GGL90
21
22 C !LOCAL VARIABLES:
23 C == Local variables ==
24 CHARACTER*(MAX_LEN_FNAM) fn
25 CHARACTER*(10) suff
26 INTEGER prec
27 CEOP
28
29 C-- Suffix for pickup files
30 IF (pickupSuff.EQ.' ') THEN
31 WRITE(suff,'(I10.10)') myIter
32 ELSE
33 WRITE(suff,'(A10)') pickupSuff
34 ENDIF
35
36 _BARRIER
37
38 prec = precFloat64
39
40 WRITE(fn,'(A,A10)') 'pickup_ggl90.',suff
41 CALL READ_REC_3D_RL( fn, prec, Nr, GGL90TKE, 1, myIter, myThid )
42
43 c _BARRIER
44
45 _EXCH_XYZ_RL( GGL90TKE, myThid )
46
47 #endif /* ALLOW_GGL90 */
48
49 RETURN
50 END
51
52 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
53
54 SUBROUTINE GGL90_WRITE_PICKUP( permPickup, suff,
55 I myTime, myIter, myThid )
56
57 IMPLICIT NONE
58 C === Global variables ===
59 #include "SIZE.h"
60 #include "EEPARAMS.h"
61 #include "PARAMS.h"
62 #include "GGL90.h"
63
64 C == Routine arguments ==
65 C permPickup :: write a permanent pickup
66 C suff :: suffix for pickup file (eg. ckptA or 0000000010)
67 C myTime :: Current time in simulation
68 C myIter :: Current iteration number in simulation
69 C myThid :: My Thread Id number
70 LOGICAL permPickup
71 CHARACTER*(*) suff
72 _RL myTime
73 INTEGER myIter
74 INTEGER myThid
75
76 #ifdef ALLOW_GGL90
77
78 C !LOCAL VARIABLES:
79 C == Local variables ==
80 CHARACTER*(MAX_LEN_FNAM) fn
81 INTEGER prec
82 c CHARACTER*(MAX_LEN_MBUF) msgBuf
83 CEOP
84
85 prec = precFloat64
86 WRITE(fn,'(A,A)') 'pickup_ggl90.',suff
87
88 CALL WRITE_REC_3D_RL( fn, prec, Nr, GGL90TKE, 1, myIter, myThid )
89
90 #endif /* ALLOW_GGL90 */
91
92 RETURN
93 END

  ViewVC Help
Powered by ViewVC 1.1.22