/[MITgcm]/MITgcm/model/src/ini_fields.F
ViewVC logotype

Contents of /MITgcm/model/src/ini_fields.F

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


Revision 1.3 - (show annotations) (download)
Thu May 21 18:25:49 1998 UTC (26 years ago) by cnh
Branch: MAIN
CVS Tags: checkpoint11, checkpoint10, checkpoint13, checkpoint15, checkpoint14, checkpoint17, checkpoint5, checkpoint4, checkpoint7, checkpoint6, checkpoint3, checkpoint2, checkpoint9, checkpoint8, checkpoint12, checkpoint16, branch-point-rdot
Branch point for: checkpoint7-4degree-ref, branch-rdot
Changes since 1.2: +5 -1 lines
Added support for binary IO of model fields for restart and/or
postprocessing

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_fields.F,v 1.2 1998/04/24 02:05:41 cnh Exp $
2
3 #include "CPP_EEOPTIONS.h"
4
5 CStartOfInterface
6 SUBROUTINE INI_FIELDS( myThid )
7 C /==========================================================\
8 C | SUBROUTINE INI_FIELDS |
9 C | o Initialise model fields |
10 C |==========================================================|
11 C | Initial conditions of the model state variables are |
12 C | set here. For continuation runs a restart file will be |
13 C | used. For original runs custom rules can be included |
14 C | here. |
15 C \==========================================================/
16
17 C === Global variables ===
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21
22 C == Routine arguments ==
23 C myThid - Number of this instance of INI_FIELDS
24 INTEGER myThid
25 CEndOfInterface
26
27 C-- Set model variables to initial/restart conditions
28 IF ( startTime .EQ. 0. ) THEN
29 CALL INI_UVEL( myThid )
30 CALL INI_VVEL( myThid )
31 CALL INI_THETA( myThid )
32 CALL INI_SALT( myThid )
33 ELSE
34 IF ( nIter0 .EQ. 0 ) THEN
35 nIter0 = INT(startTime/deltaTClock )
36 ENDIF
37 CALL READ_CHECKPOINT( nIter0, myThid )
38 ENDIF
39
40 RETURN
41 END

  ViewVC Help
Powered by ViewVC 1.1.22