/[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.8 by jmc, Mon Mar 12 20:41:02 2001 UTC revision 1.23 by jmc, Sun May 17 20:15:22 2009 UTC
# Line 1  Line 1 
1  C $Header$  C $Header$
2  C $Name$  C $Name$
3    
4    #include "PACKAGES_CONFIG.h"
5  #include "CPP_OPTIONS.h"  #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     \==========================================================/  
       IMPLICIT NONE  
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  C     Set model variables to initial/restart conditions
30        IF ( startTime .EQ. 0. .AND.  nIter0 .EQ. 0 ) THEN        IF ( startTime .EQ. baseTime .AND.  nIter0 .EQ. 0
31         CALL INI_UVEL( myThid )       &     .AND. pickupSuff .EQ. ' ' ) THEN
32         CALL INI_VVEL( myThid )          CALL INI_VEL( myThid )
33         CALL INI_THETA( myThid )          CALL INI_THETA( myThid )
34         CALL INI_SALT( myThid )          CALL INI_SALT( myThid )
35         CALL INI_PSURF( myThid )          CALL INI_PSURF( myThid )
36  #ifdef ALLOW_NONHYDROSTATIC          CALL INI_PRESSURE( myThid )
37         IF ( nonHydrostatic ) THEN  #ifdef INCLUDE_EP_FORCING_CODE
38           CALL INI_GW( myThid )          CALL INI_EP( myThid )
        ENDIF  
39  #endif  #endif
40        ELSE          IF (nonHydrostatic) CALL INI_PNH( myThid )
41         IF ( nIter0 .EQ. 0 ) THEN        ELSEIF ( .NOT.useOffLine ) THEN
42          nIter0 = INT(startTime/deltaTClock )          CALL READ_PICKUP( nIter0, myThid )
43         ENDIF  
44         CALL READ_CHECKPOINT( nIter0, myThid )  c       IF (pickup_write_immed) THEN
45    c         CALL WRITE_PICKUP(
46    c    I                       .TRUE., startTime, nIter0, myThid )
47    c       ENDIF
48    
49        ENDIF        ENDIF
50    
51        RETURN        RETURN

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.22