/[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.10 by adcroft, Tue May 29 14:01:37 2001 UTC revision 1.16 by edhill, Thu Oct 30 12:00:41 2003 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  CBOP
8    C     !ROUTINE: INI_FIELDS
9    C     !INTERFACE:
10        SUBROUTINE INI_FIELDS( myThid )        SUBROUTINE INI_FIELDS( myThid )
11  C     /==========================================================\  C     !DESCRIPTION: \bv
12  C     | SUBROUTINE INI_FIELDS                                    |  C     *==========================================================*
13  C     | o Initialise model fields                                |  C     | SUBROUTINE INI_FIELDS                                    
14  C     |==========================================================|  C     | o Initialise model fields                                
15  C     | Initial conditions of the model state variables are      |  C     *==========================================================*
16  C     | set here. For continuation runs a restart file will be   |  C     | Initial conditions of the model state variables are      
17  C     | used. For original runs custom rules can be included     |  C     | set here. For continuation runs a restart file will be    
18  C     | here.                                                    |  C     | used. For original runs custom rules can be included      
19  C     \==========================================================/  C     | here.                                                    
20        IMPLICIT NONE  C     *==========================================================*
21    C     \ev
22    
23    C     !USES:
24          IMPLICIT NONE
25  C     === Global variables ===  C     === Global variables ===
26  #include "SIZE.h"  #include "SIZE.h"
27  #include "EEPARAMS.h"  #include "EEPARAMS.h"
28  #include "PARAMS.h"  #include "PARAMS.h"
29    
30    C     !INPUT/OUTPUT PARAMETERS:
31  C     == Routine arguments ==  C     == Routine arguments ==
32  C     myThid -  Number of this instance of INI_FIELDS  C     myThid -  Number of this instance of INI_FIELDS
33        INTEGER myThid        INTEGER myThid
34  CEndOfInterface  CEOP
35    
36  C--   Set model variables to initial/restart conditions  C--   Set model variables to initial/restart conditions
37        IF ( startTime .EQ. 0. .AND.  nIter0 .EQ. 0 ) THEN        IF ( startTime .EQ. 0. .AND.  nIter0 .EQ. 0
38         &     .AND. pickupSuff .EQ. ' ' ) THEN
39         CALL INI_VEL( myThid )         CALL INI_VEL( myThid )
40         CALL INI_THETA( myThid )         CALL INI_THETA( myThid )
41         CALL INI_SALT( myThid )         CALL INI_SALT( myThid )
42         CALL INI_PSURF( myThid )         CALL INI_PSURF( myThid )
43           CALL INI_PRESSURE( myThid )
44    #ifdef INCLUDE_EP_FORCING_CODE
45           CALL INI_EP( myThid )
46    #endif
47           IF (nonHydrostatic) CALL INI_PNH( myThid )
48        ELSE        ELSE
49         IF ( nIter0 .EQ. 0 ) THEN         IF ( nIter0 .EQ. 0 ) THEN
50          nIter0 = INT(startTime/deltaTClock )          nIter0 = INT(startTime/deltaTClock )
# Line 39  C--   Set model variables to initial/res Line 52  C--   Set model variables to initial/res
52         CALL READ_CHECKPOINT( nIter0, myThid )         CALL READ_CHECKPOINT( nIter0, myThid )
53        ENDIF        ENDIF
54    
55    #ifdef ALLOW_CD_CODE
56          IF (useCDscheme) CALL CD_CODE_INIT_VARS( nIter0, myThid )
57    #endif
58    
59        RETURN        RETURN
60        END        END

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.22