/[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.18 - (show annotations) (download)
Sun Dec 14 23:24:55 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint52l_pre, hrcube4, hrcube5, checkpoint52j_pre, checkpoint54d_post, checkpoint54e_post, checkpoint52l_post, checkpoint52k_post, checkpoint54, checkpoint53, checkpoint52f_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint52e_pre, checkpoint52e_post, checkpoint53d_post, checkpoint54b_post, checkpoint52m_post, checkpoint52f_pre, checkpoint54a_pre, checkpoint53c_post, checkpoint54a_post, checkpoint53a_post, checkpoint52d_post, checkpoint53g_post, checkpoint52i_post, checkpoint52h_pre, checkpoint53f_post, checkpoint52j_post, checkpoint52n_post, checkpoint53b_pre, checkpoint53b_post, checkpoint53d_pre, checkpoint54c_post
Changes since 1.17: +1 -9 lines
each package $PKG_ini_vars calls $PKG_read_pickup: change CD_code to
 conform to the rule.

1 C $Header: /u/gcmpack/MITgcm/model/src/ini_fields.F,v 1.17 2003/10/30 18:44:26 heimbach Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: INI_FIELDS
9 C !INTERFACE:
10 SUBROUTINE INI_FIELDS( myThid )
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE INI_FIELDS
14 C | o Initialise model fields
15 C *==========================================================*
16 C | Initial conditions of the model state variables are
17 C | set here. For continuation runs a restart file will be
18 C | used. For original runs custom rules can be included
19 C | here.
20 C *==========================================================*
21 C \ev
22
23 C !USES:
24 IMPLICIT NONE
25 C === Global variables ===
26 #include "SIZE.h"
27 #include "EEPARAMS.h"
28 #include "PARAMS.h"
29
30 C !INPUT/OUTPUT PARAMETERS:
31 C == Routine arguments ==
32 C myThid - Number of this instance of INI_FIELDS
33 INTEGER myThid
34 CEOP
35
36 C-- Set model variables to initial/restart conditions
37 IF ( startTime .EQ. 0. .AND. nIter0 .EQ. 0
38 & .AND. pickupSuff .EQ. ' ' ) THEN
39 CALL INI_VEL( myThid )
40 CALL INI_THETA( myThid )
41 CALL INI_SALT( myThid )
42 CALL INI_PSURF( myThid )
43 CALL INI_PRESSURE( myThid )
44 #ifdef INCLUDE_EP_FORCING_CODE
45 CALL INI_EP( myThid )
46 #endif
47 IF (nonHydrostatic) CALL INI_PNH( myThid )
48 ELSE
49 IF ( nIter0 .EQ. 0 ) THEN
50 nIter0 = INT(startTime/deltaTClock )
51 ENDIF
52 CALL READ_CHECKPOINT( nIter0, myThid )
53 ENDIF
54
55 RETURN
56 END

  ViewVC Help
Powered by ViewVC 1.1.22