/[MITgcm]/MITgcm/pkg/offline/offline_model_io.F
ViewVC logotype

Contents of /MITgcm/pkg/offline/offline_model_io.F

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


Revision 1.1 - (show annotations) (download)
Wed Sep 1 16:42:43 2004 UTC (19 years, 9 months ago) by stephd
Branch: MAIN
CVS Tags: checkpoint55c_post, checkpoint55d_pre, checkpoint55j_post, checkpoint55h_post, checkpoint54e_post, checkpoint55b_post, checkpoint55, checkpoint55a_post, checkpoint55g_post, checkpoint55f_post, checkpoint55i_post, checkpoint56, checkpoint54f_post, checkpoint55e_post, checkpoint55d_post
o add offline package

1 #include "PACKAGES_CONFIG.h"
2 #include "CPP_OPTIONS.h"
3 #include "OFFLINE_OPTIONS.h"
4
5 CBOP
6 C !ROUTINE: OFFLINE_MODEL_IO
7 C !INTERFACE:
8 SUBROUTINE OFFLINE_MODEL_IO( myTime, myIter, myThid )
9 C !DESCRIPTION: \bv
10 C *==========================================================*
11 C | SUBROUTINE OFFLINE_MODEL_IO
12 C | o Controlling routine for IO in offline model time-stepping
13 C | loop.
14 C *==========================================================*
15 C \ev
16
17 C !USES:
18 IMPLICIT NONE
19 C == Global variables ===
20 #include "SIZE.h"
21 #include "EEPARAMS.h"
22 #include "PARAMS.h"
23 #include "DYNVARS.h"
24
25
26 LOGICAL DIFFERENT_MULTIPLE
27 EXTERNAL DIFFERENT_MULTIPLE
28
29 C !INPUT/OUTPUT PARAMETERS:
30 C == Routine arguments ==
31 C myThid - Thread number for this instance of the routine.
32 C myIter - Iteration number
33 C myTime - Current time of simulation ( s )
34 INTEGER myThid
35 INTEGER myIter
36 _RL myTime
37
38 CEOP
39
40 C-- Write model state to binary file
41 CALL OFFLINE_STATE( myTime, myIter, myThid )
42
43 #ifdef ALLOW_TIMEAVE
44 C-- Do time averages
45 IF (taveFreq.GT.0. .AND. myIter.NE.nIter0 ) THEN
46 c CALL TIMEAVE_STATV_WRITE( myTime, myIter, myThid )
47 #ifdef ALLOW_PTRACERS
48 IF ( usePTRACERS )
49 & CALL PTRACERS_STATV_WRITE( myTime, myIter, myThid )
50 #endif
51 ENDIF
52 #endif
53
54 #ifdef ALLOW_GCHEM
55 ceh3 ??? why is one package depending upon another here?
56 C-- Do ptracer diagnostics.
57 IF (usePTRACERS)
58 & CALL GCHEM_DIAGS( myTime, myIter, myThid )
59 #endif
60
61
62 RETURN
63 END

  ViewVC Help
Powered by ViewVC 1.1.22