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

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

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


Revision 1.25 - (hide annotations) (download)
Thu Dec 8 22:36:20 2011 UTC (12 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63g, checkpoint64, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f
Changes since 1.24: +9 -1 lines
fix initialisation when using sigma-coords (call UPDATE_ETAWS from ini_fields.F)

1 jmc 1.25 C $Header: /u/gcmpack/MITgcm/model/src/ini_fields.F,v 1.24 2009/12/11 13:56:28 jmc Exp $
2 adcroft 1.10 C $Name: $
3 cnh 1.1
4 edhill 1.16 #include "PACKAGES_CONFIG.h"
5 cnh 1.4 #include "CPP_OPTIONS.h"
6 cnh 1.1
7 edhill 1.19 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
8 cnh 1.12 CBOP
9     C !ROUTINE: INI_FIELDS
10 edhill 1.19
11 cnh 1.12 C !INTERFACE:
12 cnh 1.1 SUBROUTINE INI_FIELDS( myThid )
13 edhill 1.19
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 cnh 1.12
19     C !USES:
20 adcroft 1.5 IMPLICIT NONE
21 cnh 1.1 #include "SIZE.h"
22     #include "EEPARAMS.h"
23     #include "PARAMS.h"
24    
25 edhill 1.19 C !INPUT PARAMETERS:
26 cnh 1.1 INTEGER myThid
27 cnh 1.12 CEOP
28 cnh 1.1
29 edhill 1.19 C Set model variables to initial/restart conditions
30 jmc 1.20 IF ( startTime .EQ. baseTime .AND. nIter0 .EQ. 0
31 adcroft 1.15 & .AND. pickupSuff .EQ. ' ' ) THEN
32 edhill 1.19 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 heimbach 1.13 #ifdef INCLUDE_EP_FORCING_CODE
38 edhill 1.19 CALL INI_EP( myThid )
39 heimbach 1.13 #endif
40 jmc 1.21 ELSEIF ( .NOT.useOffLine ) THEN
41 jmc 1.22 CALL READ_PICKUP( nIter0, myThid )
42 edhill 1.19
43 jmc 1.23 c IF (pickup_write_immed) THEN
44     c CALL WRITE_PICKUP(
45     c I .TRUE., startTime, nIter0, myThid )
46     c ENDIF
47 edhill 1.19
48 heimbach 1.17 ENDIF
49 cnh 1.1
50 jmc 1.24 #ifdef ALLOW_NONHYDROSTATIC
51     IF ( nonHydrostatic ) THEN
52     CALL INI_NH_FIELDS( myThid )
53     ENDIF
54     #endif /* ALLOW_NONHYDROSTATIC */
55    
56 jmc 1.25 #ifdef NONLIN_FRSURF
57     # ifndef DISABLE_SIGMA_CODE
58     IF ( selectSigmaCoord.NE.0 ) THEN
59     CALL UPDATE_ETAWS( startTime, nIter0, myThid )
60     ENDIF
61     # endif /* DISABLE_SIGMA_CODE */
62     #endif /* NONLIN_FRSURF */
63    
64 cnh 1.1 RETURN
65     END

  ViewVC Help
Powered by ViewVC 1.1.22