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

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

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

revision 1.1.1.1 by cnh, Wed Apr 22 19:15:30 1998 UTC revision 1.27 by jmc, Sat Mar 25 01:28:26 2017 UTC
# Line 1  Line 1 
1  C $Id$  C $Header$
2    C $Name$
3    
4  #include "CPP_EEOPTIONS.h"  #include "PACKAGES_CONFIG.h"
5    #include "CPP_OPTIONS.h"
6    
7  CStartOfInterface  C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
8    CBOP
9    C     !ROUTINE: INI_FIELDS
10    
11    C     !INTERFACE:
12        SUBROUTINE INI_FIELDS( myThid )        SUBROUTINE INI_FIELDS( myThid )
 C     /==========================================================\  
 C     | SUBROUTINE INI_FIELDS                                    |  
 C     | o Initialise model fields                                |  
 C     |==========================================================|  
 C     | Initial conditions of the model state variables are      |  
 C     | set here. For continuation runs a restart file will be   |  
 C     | used. For original runs custom rules can be included     |  
 C     | here.                                                    |  
 C     \==========================================================/  
13    
14  C     === Global variables ===  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"  #include "SIZE.h"
22  #include "EEPARAMS.h"  #include "EEPARAMS.h"
23  #include "PARAMS.h"  #include "PARAMS.h"
24    
25  C     == Routine arguments ==  C     !INPUT PARAMETERS:
 C     myThid -  Number of this instance of INI_FIELDS  
26        INTEGER myThid        INTEGER myThid
27  CEndOfInterface  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  C--   Set model variables to initial/restart conditions  #ifdef NONLIN_FRSURF
51        IF ( startTime .EQ. 0. ) THEN  # ifndef DISABLE_SIGMA_CODE
52         CALL INI_UVEL( myThid )        IF ( selectSigmaCoord.NE.0 ) THEN
53         CALL INI_VVEL( myThid )          CALL UPDATE_ETAWS( startTime, nIter0, myThid )
        CALL INI_THETA( myThid )  
        CALL INI_SALT( myThid )  
       ELSE  
54        ENDIF        ENDIF
55    # endif /* DISABLE_SIGMA_CODE */
56    #endif /* NONLIN_FRSURF */
57    
58        RETURN        RETURN
59        END        END

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.22