/[MITgcm]/MITgcm/pkg/ocn_compon_interf/cpl_write_pickup.F
ViewVC logotype

Annotation of /MITgcm/pkg/ocn_compon_interf/cpl_write_pickup.F

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


Revision 1.5 - (hide annotations) (download)
Mon Jan 5 15:21:36 2009 UTC (15 years, 5 months ago) by dfer
Branch: MAIN
CVS Tags: checkpoint64i, checkpoint64h, checkpoint64j, 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, checkpoint62, checkpoint63, 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, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.4: +37 -35 lines
Add well-mixed CO2 box in Aim

1 dfer 1.5 C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/cpl_write_pickup.F,v 1.4 2007/10/19 03:21:39 jmc Exp $
2 jmc 1.2 C $Name: $
3 jmc 1.1
4     #include "CPP_OPTIONS.h"
5    
6 jmc 1.4 CBOP
7     C !ROUTINE: CPL_WRITE_PICKUP
8     C !INTERFACE:
9 jmc 1.1 SUBROUTINE CPL_WRITE_PICKUP(
10 jmc 1.4 I suff, myTime, myIter, myThid )
11     C !DESCRIPTION: \bv
12     C *==========================================================*
13 jmc 1.1 C | SUBROUTINE CPL_WRITE_PICKUP |
14     C | o Store coupling state for restart. |
15     C | - Oceanic version - |
16 jmc 1.4 C *==========================================================*
17 jmc 1.1 C | Presently, the atmospheric compon. is in charge of the |
18     C | writing of coupling fields ; nothing done here for now. |
19 jmc 1.4 C *==========================================================*
20     C \ev
21    
22     C !USES:
23 jmc 1.1 IMPLICIT NONE
24    
25     C == Global variables ==
26     #include "SIZE.h"
27     #include "EEPARAMS.h"
28     #include "PARAMS.h"
29 dfer 1.5 #include "CPL_PARAMS.h"
30 jscott 1.3 #include "OCNIDS.h"
31 jmc 1.1 #include "OCNCPL.h"
32    
33 jmc 1.4 C !INPUT/OUTPUT PARAMETERS:
34 jmc 1.1 C == Routine arguments ==
35 jmc 1.4 C permPickup :: write a permanent pickup
36     C suff :: suffix for pickup file (eg. ckptA or 0000000010)
37     C myTime :: Current time in simulation
38     C myIter :: Current iteration number in simulation
39     C myThid :: My Thread Id number
40     LOGICAL permPickup
41     CHARACTER*(*) suff
42     _RL myTime
43 jmc 1.1 INTEGER myIter
44     INTEGER myThid
45 jmc 1.4 CEOP
46 jmc 1.1
47 jmc 1.4 #ifdef COMPONENT_MODULE
48 jmc 1.1 C == Local variables ==
49 jmc 1.4 C fn :: Workspace for building file name
50 dfer 1.5 C rec_ind :: index of the record in pickup file
51 jmc 1.1 CHARACTER*(MAX_LEN_FNAM) fn
52 dfer 1.5 INTEGER prec, rec_ind
53 jmc 1.1
54 dfer 1.5 WRITE(fn,'(A,A)') 'pickup_cpl.',suff
55 jmc 1.4 prec = precFloat64
56 dfer 1.5 rec_ind=0
57 jmc 1.4
58 dfer 1.5 IF ( .NOT. cpl_earlyExpImpCall ) THEN
59     CALL WRITE_REC_3D_RL( fn,prec,1, atmSLPr , 1, myIter, myThid )
60     CALL WRITE_REC_3D_RL( fn,prec,1, HeatFlux , 2, myIter, myThid )
61     CALL WRITE_REC_3D_RL( fn,prec,1, qShortWave, 3, myIter, myThid )
62     c CALL WRITE_REC_3D_RL( fn,prec,1, qLatent , 3, myIter, myThid )
63     c CALL WRITE_REC_3D_RL( fn,prec,1, qSensible , 3, myIter, myThid )
64     c CALL WRITE_REC_3D_RL( fn,prec,1, qLongWave , 3, myIter, myThid )
65     c CALL WRITE_REC_3D_RL( fn,prec,1, uVelGround, 3, myIter, myThid )
66     c CALL WRITE_REC_3D_RL( fn,prec,1, vVelGround, 3, myIter, myThid )
67     CALL WRITE_REC_3D_RL( fn,prec,1, tauX , 4, myIter, myThid )
68     CALL WRITE_REC_3D_RL( fn,prec,1, tauY , 5, myIter, myThid )
69     CALL WRITE_REC_3D_RL( fn,prec,1, FWFlux , 6, myIter, myThid )
70     CALL WRITE_REC_3D_RL( fn,prec,1, iceSaltFlx, 7, myIter, myThid )
71     CALL WRITE_REC_3D_RL( fn,prec,1, seaIceMass, 8, myIter, myThid )
72     rec_ind=8
73     ENDIF
74 jmc 1.2
75 jscott 1.3 IF ( ocnCpl_exchange_DIC ) THEN
76 dfer 1.5 c CALL WRITE_REC_3D_RL( fn,prec,1,
77     c & airCO2 , 9,myIter,myThid)
78     c CALL WRITE_REC_3D_RL( fn,prec,1,
79     c & surfWSpeed, 10,myIter,myThid)
80     c CALL WRITE_REC_3D_RL( fn,prec,1,
81     c & fracIce , 11,myIter,myThid)
82 jmc 1.4 CALL WRITE_REC_3D_RL( fn,prec,1,
83 dfer 1.5 & fluxCO2cpl, rec_ind+1,myIter,myThid)
84 jscott 1.3 ENDIF
85    
86 dfer 1.5 c CALL WRITE_REC_3D_RL( fn,prec,1, ocMxlD2cpl,
87     c & 9+caroffset, myIter, myThid )
88     c CALL WRITE_REC_3D_RL( fn,prec,1, SSTocn2cpl,
89     c & 10+caroffset, myIter, myThid )
90     c CALL WRITE_REC_3D_RL( fn,prec,1, SSSocn2cpl,
91     c & 11+caroffset, myIter, myThid )
92     c CALL WRITE_REC_3D_RL( fn,prec,1, vSqocn2cpl,
93     c & 12+caroffset, myIter, myThid )
94 jscott 1.3
95 jmc 1.4 #endif /* COMPONENT_MODULE */
96 jmc 1.1
97     RETURN
98     END

  ViewVC Help
Powered by ViewVC 1.1.22