1 |
molod |
1.1 |
CBOP |
2 |
|
|
C !ROUTINE: FIZHI_WRITE_PICKUP |
3 |
|
|
C !INTERFACE: |
4 |
|
|
SUBROUTINE FIZHI_WRITE_PICKUP( suff, myTime, myIter, myThid ) |
5 |
|
|
|
6 |
|
|
C !DESCRIPTION: \bv |
7 |
|
|
C *==========================================================* |
8 |
|
|
C | S/R FIZHI_WRITE_PICKUP |
9 |
|
|
C | o Writes current state of fizhi package to a pickup file |
10 |
|
|
C *==========================================================* |
11 |
|
|
C \ev |
12 |
|
|
|
13 |
|
|
C !USES: |
14 |
|
|
CEOP |
15 |
|
|
IMPLICIT NONE |
16 |
|
|
|
17 |
|
|
C == Global variables === |
18 |
|
|
#include "CPP_OPTIONS.h" |
19 |
|
|
#include "SIZE.h" |
20 |
|
|
#include "fizhi_SIZE.h" |
21 |
|
|
#include "land_SIZE.h" |
22 |
|
|
#include "fizhi_coms.h" |
23 |
|
|
#include "land_coms.h" |
24 |
|
|
#include "EEPARAMS.h" |
25 |
|
|
#include "PARAMS.h" |
26 |
|
|
|
27 |
|
|
C !INPUT/OUTPUT PARAMETERS: |
28 |
|
|
C == Routine Arguments == |
29 |
|
|
C suff :: suffix for pickup file (eg. ckptA or 0000000010) |
30 |
|
|
C myTime :: current time |
31 |
|
|
C myIter :: time-step number |
32 |
|
|
C myThid :: Number of this instance |
33 |
|
|
CHARACTER*(*) suff |
34 |
|
|
_RL myTime |
35 |
|
|
INTEGER myIter |
36 |
|
|
INTEGER myThid |
37 |
|
|
|
38 |
|
|
C !LOCAL VARIABLES: |
39 |
|
|
C fn :: character buffer for creating filename |
40 |
|
|
C prec :: precision of pickup files |
41 |
|
|
C lgf :: flag to write "global" files |
42 |
|
|
INTEGER prec, iChar, lChar |
43 |
|
|
CHARACTER*(MAX_LEN_FNAM) fn |
44 |
|
|
LOGICAL lgf |
45 |
|
|
|
46 |
|
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
47 |
|
|
|
48 |
|
|
lChar = 0 |
49 |
|
|
DO iChar = 1,len(suff) |
50 |
|
|
IF ( suff(iChar:iChar) .NE. ' ') lChar=iChar |
51 |
|
|
ENDDO |
52 |
|
|
WRITE(fn,'(A,A)') 'pickup_fizhi.',suff(1:lChar) |
53 |
|
|
prec = precFloat64 |
54 |
|
|
lgf = globalFiles |
55 |
|
|
|
56 |
|
|
C-- Write fields as consecutive records |
57 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',Nrphys,uphy,1,myIter,myThid) |
58 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',Nrphys,vphy,2,myIter,myThid) |
59 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',Nrphys,thphy,3,myIter,myThid) |
60 |
|
|
CALL MDSWRITEFIELD(fn,prec,lgf,'RL',Nrphys,sphy,4,myIter,myThid) |
61 |
|
|
|
62 |
|
|
RETURN |
63 |
|
|
END |