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

Contents 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 - (show 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 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 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: CPL_WRITE_PICKUP
8 C !INTERFACE:
9 SUBROUTINE CPL_WRITE_PICKUP(
10 I suff, myTime, myIter, myThid )
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE CPL_WRITE_PICKUP |
14 C | o Store coupling state for restart. |
15 C | - Oceanic version - |
16 C *==========================================================*
17 C | Presently, the atmospheric compon. is in charge of the |
18 C | writing of coupling fields ; nothing done here for now. |
19 C *==========================================================*
20 C \ev
21
22 C !USES:
23 IMPLICIT NONE
24
25 C == Global variables ==
26 #include "SIZE.h"
27 #include "EEPARAMS.h"
28 #include "PARAMS.h"
29 #include "CPL_PARAMS.h"
30 #include "OCNIDS.h"
31 #include "OCNCPL.h"
32
33 C !INPUT/OUTPUT PARAMETERS:
34 C == Routine arguments ==
35 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 INTEGER myIter
44 INTEGER myThid
45 CEOP
46
47 #ifdef COMPONENT_MODULE
48 C == Local variables ==
49 C fn :: Workspace for building file name
50 C rec_ind :: index of the record in pickup file
51 CHARACTER*(MAX_LEN_FNAM) fn
52 INTEGER prec, rec_ind
53
54 WRITE(fn,'(A,A)') 'pickup_cpl.',suff
55 prec = precFloat64
56 rec_ind=0
57
58 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
75 IF ( ocnCpl_exchange_DIC ) THEN
76 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 CALL WRITE_REC_3D_RL( fn,prec,1,
83 & fluxCO2cpl, rec_ind+1,myIter,myThid)
84 ENDIF
85
86 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
95 #endif /* COMPONENT_MODULE */
96
97 RETURN
98 END

  ViewVC Help
Powered by ViewVC 1.1.22