1 |
jmc |
1.2 |
C $Header: /u/gcmpack/MITgcm/pkg/ocn_compon_interf/cpl_write_pickup.F,v 1.1 2003/12/15 02:49:09 jmc Exp $ |
2 |
|
|
C $Name: $ |
3 |
jmc |
1.1 |
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CStartOfInterface |
7 |
|
|
SUBROUTINE CPL_WRITE_PICKUP( |
8 |
|
|
& prec, lgf, permCheckPoint, myIter, myThid) |
9 |
|
|
C /==========================================================\ |
10 |
|
|
C | SUBROUTINE CPL_WRITE_PICKUP | |
11 |
|
|
C | o Store coupling state for restart. | |
12 |
|
|
C | - Oceanic version - | |
13 |
|
|
C |==========================================================| |
14 |
|
|
C | Presently, the atmospheric compon. is in charge of the | |
15 |
|
|
C | writing of coupling fields ; nothing done here for now. | |
16 |
|
|
C \==========================================================/ |
17 |
|
|
IMPLICIT NONE |
18 |
|
|
|
19 |
|
|
C == Global variables == |
20 |
|
|
#include "SIZE.h" |
21 |
|
|
#include "EEPARAMS.h" |
22 |
|
|
#include "PARAMS.h" |
23 |
|
|
#include "OCNCPL.h" |
24 |
|
|
|
25 |
|
|
C == Routine arguments == |
26 |
|
|
C myThid - Thread number for this instance of the routine. |
27 |
|
|
C myIter - Timestep number. |
28 |
|
|
C permCheckpoint - Controls whether timestamped or rolling checkpoint. |
29 |
|
|
C lgf - Controls whether global files are used. |
30 |
|
|
INTEGER myIter |
31 |
|
|
INTEGER myThid |
32 |
|
|
LOGICAL permCheckPoint |
33 |
|
|
INTEGER prec |
34 |
|
|
LOGICAL lgf |
35 |
|
|
CEndOfInterface |
36 |
|
|
|
37 |
|
|
C == Local variables == |
38 |
|
|
C fn - Workspace for building file name |
39 |
|
|
CHARACTER*(MAX_LEN_FNAM) fn |
40 |
|
|
|
41 |
|
|
IF ( permCheckPoint ) THEN |
42 |
|
|
WRITE(fn,'(A,I10.10)') 'pickup_cpl.',myIter |
43 |
|
|
ELSE |
44 |
|
|
WRITE(fn,'(A,A)') 'pickup_cpl.',checkPtSuff(nCheckLev) |
45 |
|
|
ENDIF |
46 |
jmc |
1.2 |
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,atmSLPr , 1,myIter,myThid) |
47 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,HeatFlux , 2,myIter,myThid) |
48 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qShortWave, 3,myIter,myThid) |
49 |
|
|
c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qLatent , 3,myIter,myThid) |
50 |
|
|
c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qSensible , 3,myIter,myThid) |
51 |
|
|
c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qLongWave , 3,myIter,myThid) |
52 |
|
|
c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,uVelGround, 3,myIter,myThid) |
53 |
|
|
c CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,vVelGround, 3,myIter,myThid) |
54 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,tauX , 4,myIter,myThid) |
55 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,tauY , 5,myIter,myThid) |
56 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,FWFlux , 6,myIter,myThid) |
57 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,iceSaltFlx, 7,myIter,myThid) |
58 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,seaIceMass, 8,myIter,myThid) |
59 |
|
|
|
60 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,ocMxlD2cpl, 9,myIter,myThid) |
61 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,SSTocn2cpl,10,myIter,myThid) |
62 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,SSSocn2cpl,11,myIter,myThid) |
63 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,vSqocn2cpl,12,myIter,myThid) |
64 |
jmc |
1.1 |
|
65 |
|
|
RETURN |
66 |
|
|
END |