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

Contents of /MITgcm/pkg/fizhi/fizhi_write_state.F

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


Revision 1.6 - (show annotations) (download)
Wed Aug 18 15:41:18 2004 UTC (19 years, 10 months ago) by molod
Branch: MAIN
CVS Tags: checkpoint55c_post, checkpoint54e_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57b_post, checkpoint57c_pre, checkpoint55j_post, checkpoint56b_post, checkpoint57e_post, checkpoint55h_post, checkpoint55b_post, checkpoint56c_post, checkpoint55, checkpoint57f_pre, checkpoint57a_post, checkpoint54f_post, checkpoint55g_post, checkpoint55f_post, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, eckpoint57e_pre, checkpoint57c_post, checkpoint55e_post, checkpoint55a_post, checkpoint56a_post, checkpoint55d_post
Changes since 1.5: +4 -1 lines
Add salt to list of fields written out

1 C $Header: /u/gcmpack/MITgcm/pkg/fizhi/fizhi_write_state.F,v 1.5 2004/07/26 18:45:17 molod Exp $
2 C $Name: $
3
4 #include "FIZHI_OPTIONS.h"
5 CBOP
6 C !ROUTINE: FIZHI_WRITE_STATE
7 C !INTERFACE:
8 SUBROUTINE FIZHI_WRITE_STATE( myTime, myIter, myThid )
9
10 C !DESCRIPTION: \bv
11 C *==========================================================*
12 C | S/R FIZHI_WRITE_STATE
13 C | o Writes current state of fizhi package to an output file
14 C | o Called from do_the_model_io
15 C *==========================================================*
16 C \ev
17
18 C !USES:
19 CEOP
20 IMPLICIT NONE
21
22 C == Global variables ===
23 #include "SIZE.h"
24 #include "fizhi_SIZE.h"
25 #include "fizhi_land_SIZE.h"
26 #include "fizhi_coms.h"
27 #include "fizhi_land_coms.h"
28 #include "EEPARAMS.h"
29 #include "PARAMS.h"
30
31 C !INPUT/OUTPUT PARAMETERS:
32 C == Routine Arguments ==
33 C suff :: suffix for pickup file
34 C myTime :: current time
35 C myIter :: time-step number
36 C myThid :: Number of this instance
37 _RL myTime
38 INTEGER myIter
39 INTEGER myThid
40
41 C !LOCAL VARIABLES:
42 C fn :: character buffer for creating filename
43 CHARACTER*(MAX_LEN_FNAM) pref
44 CHARACTER*(MAX_LEN_MBUF) suff
45 CHARACTER*(80) fn
46 logical glf
47 LOGICAL DIFFERENT_MULTIPLE
48 EXTERNAL DIFFERENT_MULTIPLE
49
50 IF (
51 & DIFFERENT_MULTIPLE(dumpFreq,myTime,
52 & myTime-deltaTClock) .OR.
53 & myTime.EQ.endTime .OR.
54 & myTime.EQ.startTime
55 & ) THEN
56
57
58 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
59
60 C-- Write fields as consecutive records
61 glf = .FALSE.
62 WRITE(suff,'(I10.10)') myIter
63 pref = 'fizhi_U.'
64 WRITE( fn, '(A,A)' ) pref(1:8),suff(1:10)
65 call mdswritefield(fn,64,glf,'RL',Nrphys,uphy,1,myIter,myThid)
66 pref = 'fizhi_V.'
67 WRITE( fn, '(A,A)' ) pref(1:8),suff(1:10)
68 call mdswritefield(fn,64,glf,'RL',Nrphys,vphy,1,myIter,myThid)
69 pref = 'fizhi_T.'
70 WRITE( fn, '(A,A)' ) pref(1:8),suff(1:10)
71 call mdswritefield(fn,64,glf,'RL',Nrphys,thphy,1,myIter,myThid)
72 pref = 'fizhi_S.'
73 WRITE( fn, '(A,A)' ) pref(1:8),suff(1:10)
74 call mdswritefield(fn,64,glf,'RL',Nrphys,sphy,1,myIter,myThid)
75
76 ENDIF
77
78 RETURN
79 END

  ViewVC Help
Powered by ViewVC 1.1.22