1 |
jmc |
1.1 |
C $Header: $ |
2 |
|
|
C $Name: $ |
3 |
|
|
|
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 | - Atmospheric version - | |
13 |
|
|
C \==========================================================/ |
14 |
|
|
IMPLICIT NONE |
15 |
|
|
|
16 |
|
|
C == Global variables == |
17 |
|
|
#include "SIZE.h" |
18 |
|
|
#include "EEPARAMS.h" |
19 |
|
|
#include "PARAMS.h" |
20 |
|
|
#include "ATMCPL.h" |
21 |
|
|
|
22 |
|
|
C == Routine arguments == |
23 |
|
|
C myThid - Thread number for this instance of the routine. |
24 |
|
|
C myIter - Timestep number. |
25 |
|
|
C permCheckpoint - Controls whether timestamped or rolling checkpoint. |
26 |
|
|
C lgf - Controls whether global files are used. |
27 |
|
|
INTEGER myIter |
28 |
|
|
INTEGER myThid |
29 |
|
|
LOGICAL permCheckPoint |
30 |
|
|
INTEGER prec |
31 |
|
|
LOGICAL lgf |
32 |
|
|
CEndOfInterface |
33 |
|
|
|
34 |
|
|
C == Local variables == |
35 |
|
|
C fn - Workspace for building file name |
36 |
|
|
CHARACTER*(MAX_LEN_FNAM) fn |
37 |
|
|
|
38 |
|
|
IF ( permCheckPoint ) THEN |
39 |
|
|
WRITE(fn,'(A,I10.10)') 'pickup_cpl.',myIter |
40 |
|
|
ELSE |
41 |
|
|
WRITE(fn,'(A,A)') 'pickup_cpl.',checkPtSuff(nCheckLev) |
42 |
|
|
ENDIF |
43 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,SSTocn , 1,myIter,myThid) |
44 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,HeatFlux , 2,myIter,myThid) |
45 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,tauX , 3,myIter,myThid) |
46 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,tauY , 4,myIter,myThid) |
47 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,EvMPrFlux , 5,myIter,myThid) |
48 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,RunOffFlux, 6,myIter,myThid) |
49 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,uVelGround, 7,myIter,myThid) |
50 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,vVelGround, 8,myIter,myThid) |
51 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qLatent , 9,myIter,myThid) |
52 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qSensible ,10,myIter,myThid) |
53 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qLongwave ,11,myIter,myThid) |
54 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',1,qShortwave,12,myIter,myThid) |
55 |
|
|
|
56 |
|
|
RETURN |
57 |
|
|
END |