/[MITgcm]/MITgcm/pkg/fizhi/fizhi_write_pickup.F
ViewVC logotype

Annotation of /MITgcm/pkg/fizhi/fizhi_write_pickup.F

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


Revision 1.4 - (hide annotations) (download)
Mon Jul 26 18:45:17 2004 UTC (19 years, 11 months ago) by molod
Branch: MAIN
CVS Tags: checkpoint55c_post, checkpoint54e_post, checkpoint55b_post, checkpoint54d_post, checkpoint55, checkpoint54f_post, checkpoint55a_post
Changes since 1.3: +2 -2 lines
Went to use of FIZHI_OPTIONS and _RL in all routines

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

  ViewVC Help
Powered by ViewVC 1.1.22