/[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.13 - (show annotations) (download)
Sat Jul 13 04:59:42 2002 UTC (21 years, 10 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint46g_pre, checkpoint46f_post, checkpoint46b_post, checkpoint46d_pre, checkpoint46a_post, checkpoint46e_pre, checkpoint46b_pre, checkpoint46c_pre, checkpoint46, checkpoint46a_pre, checkpoint46c_post, checkpoint46e_post, checkpoint46d_post
Changes since 1.12: +4 -1 lines
Merging from release1_p5 (cf. tag-index for checkpoint46).

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

  ViewVC Help
Powered by ViewVC 1.1.22