/[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.27 - (show annotations) (download)
Sat Mar 25 01:28:26 2017 UTC (7 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, HEAD
Changes since 1.26: +1 -7 lines
remove out of date commented code

1 C $Header: /u/gcmpack/MITgcm/model/src/ini_fields.F,v 1.26 2013/08/20 20:22:35 jmc Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
8 CBOP
9 C !ROUTINE: INI_FIELDS
10
11 C !INTERFACE:
12 SUBROUTINE INI_FIELDS( myThid )
13
14 C !DESCRIPTION:
15 C Initial conditions of the model state variables are set here. For
16 C continuation runs a restart file will be used. For original runs
17 C custom rules can be included here.
18
19 C !USES:
20 IMPLICIT NONE
21 #include "SIZE.h"
22 #include "EEPARAMS.h"
23 #include "PARAMS.h"
24
25 C !INPUT PARAMETERS:
26 INTEGER myThid
27 CEOP
28
29 C Set model variables to initial/restart conditions
30 IF ( startTime .EQ. baseTime .AND. nIter0 .EQ. 0
31 & .AND. pickupSuff .EQ. ' ' ) THEN
32 CALL INI_VEL( myThid )
33 CALL INI_THETA( myThid )
34 CALL INI_SALT( myThid )
35 CALL INI_PSURF( myThid )
36 CALL INI_PRESSURE( myThid )
37 #ifdef INCLUDE_EP_FORCING_CODE
38 CALL INI_EP( myThid )
39 #endif
40 ELSEIF ( .NOT.useOffLine .OR. nonlinFreeSurf.GT.0 ) THEN
41 CALL READ_PICKUP( nIter0, myThid )
42 ENDIF
43
44 #ifdef ALLOW_NONHYDROSTATIC
45 IF ( nonHydrostatic ) THEN
46 CALL INI_NH_FIELDS( myThid )
47 ENDIF
48 #endif /* ALLOW_NONHYDROSTATIC */
49
50 #ifdef NONLIN_FRSURF
51 # ifndef DISABLE_SIGMA_CODE
52 IF ( selectSigmaCoord.NE.0 ) THEN
53 CALL UPDATE_ETAWS( startTime, nIter0, myThid )
54 ENDIF
55 # endif /* DISABLE_SIGMA_CODE */
56 #endif /* NONLIN_FRSURF */
57
58 RETURN
59 END

  ViewVC Help
Powered by ViewVC 1.1.22