/[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.9 by heimbach, Sun Mar 25 22:33:52 2001 UTC revision 1.20 by jmc, Wed Apr 6 18:29:53 2005 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_WVEL( myThid )          CALL INI_THETA( myThid )
34         CALL INI_THETA( myThid )          CALL INI_SALT( myThid )
35         CALL INI_SALT( myThid )          CALL INI_PSURF( myThid )
36         CALL INI_PSURF( myThid )          CALL INI_PRESSURE( myThid )
37  #ifdef ALLOW_NONHYDROSTATIC  #ifdef INCLUDE_EP_FORCING_CODE
38         IF ( nonHydrostatic ) THEN          CALL INI_EP( myThid )
          CALL INI_GW( myThid )  
        ENDIF  
39  #endif  #endif
40            IF (nonHydrostatic) CALL INI_PNH( myThid )
41        ELSE        ELSE
42         IF ( nIter0 .EQ. 0 ) THEN  c       IF ( nIter0 .EQ. 0 ) THEN
43          nIter0 = INT(startTime/deltaTClock )  c         nIter0 = INT(startTime/deltaTClock )
44         ENDIF  c       ENDIF
45         CALL READ_CHECKPOINT( nIter0, myThid )          CALL READ_CHECKPOINT( nIter0, myThid )
46    
47    CEH3        IF (pickup_write_immed) THEN
48    CEH3          CALL WRITE_CHECKPOINT(
49    CEH3     &         .TRUE., myCurrentTime, myCurrentIter, myThid)
50    CEH3        ENDIF
51    
52        ENDIF        ENDIF
53    
54        RETURN        RETURN

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.22