/[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.6 - (show annotations) (download)
Wed Apr 5 17:52:37 2000 UTC (24 years, 1 month ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint28, checkpoint29, checkpoint27, branch-atmos-merge-freeze, branch-atmos-merge-start, branch-atmos-merge-shapiro, checkpoint33, checkpoint32, checkpoint31, checkpoint30, checkpoint34, branch-atmos-merge-zonalfilt, branch-atmos-merge-phase5, branch-atmos-merge-phase4, branch-atmos-merge-phase7, branch-atmos-merge-phase6, branch-atmos-merge-phase1, branch-atmos-merge-phase3, branch-atmos-merge-phase2
Branch point for: branch-atmos-merge
Changes since 1.5: +2 -1 lines
Added separate initialization routine for pSurf (otherwise known
as cg2d_x). This allows easy initial value problem in free
surface height (read from file in pSurfInitFile) and helps
split up the initializations of "fixed" and "variable" arrays.

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_fields.F,v 1.5 1998/12/09 16:11:52 adcroft Exp $
2
3 #include "CPP_OPTIONS.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 IMPLICIT NONE
17
18 C === Global variables ===
19 #include "SIZE.h"
20 #include "EEPARAMS.h"
21 #include "PARAMS.h"
22
23 C == Routine arguments ==
24 C myThid - Number of this instance of INI_FIELDS
25 INTEGER myThid
26 CEndOfInterface
27
28 C-- Set model variables to initial/restart conditions
29 IF ( startTime .EQ. 0. .AND. nIter0 .EQ. 0 ) THEN
30 CALL INI_UVEL( myThid )
31 CALL INI_VVEL( myThid )
32 CALL INI_THETA( myThid )
33 CALL INI_SALT( myThid )
34 CALL INI_PSURF( myThid )
35 ELSE
36 IF ( nIter0 .EQ. 0 ) THEN
37 nIter0 = INT(startTime/deltaTClock )
38 ENDIF
39 CALL READ_CHECKPOINT( nIter0, myThid )
40 ENDIF
41
42 RETURN
43 END

  ViewVC Help
Powered by ViewVC 1.1.22