/[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.15 by adcroft, Thu Jun 5 16:03:05 2003 UTC
# Line 3  C $Name$ Line 3  C $Name$
3    
4  #include "CPP_OPTIONS.h"  #include "CPP_OPTIONS.h"
5    
6  CStartOfInterface  CBOP
7    C     !ROUTINE: INI_FIELDS
8    C     !INTERFACE:
9        SUBROUTINE INI_FIELDS( myThid )        SUBROUTINE INI_FIELDS( myThid )
10  C     /==========================================================\  C     !DESCRIPTION: \bv
11  C     | SUBROUTINE INI_FIELDS                                    |  C     *==========================================================*
12  C     | o Initialise model fields                                |  C     | SUBROUTINE INI_FIELDS                                    
13  C     |==========================================================|  C     | o Initialise model fields                                
14  C     | Initial conditions of the model state variables are      |  C     *==========================================================*
15  C     | set here. For continuation runs a restart file will be   |  C     | Initial conditions of the model state variables are      
16  C     | used. For original runs custom rules can be included     |  C     | set here. For continuation runs a restart file will be    
17  C     | here.                                                    |  C     | used. For original runs custom rules can be included      
18  C     \==========================================================/  C     | here.                                                    
19        IMPLICIT NONE  C     *==========================================================*
20    C     \ev
21    
22    C     !USES:
23          IMPLICIT NONE
24  C     === Global variables ===  C     === Global variables ===
25  #include "SIZE.h"  #include "SIZE.h"
26  #include "EEPARAMS.h"  #include "EEPARAMS.h"
27  #include "PARAMS.h"  #include "PARAMS.h"
28    
29    C     !INPUT/OUTPUT PARAMETERS:
30  C     == Routine arguments ==  C     == Routine arguments ==
31  C     myThid -  Number of this instance of INI_FIELDS  C     myThid -  Number of this instance of INI_FIELDS
32        INTEGER myThid        INTEGER myThid
33  CEndOfInterface  CEOP
34    
35  C--   Set model variables to initial/restart conditions  C--   Set model variables to initial/restart conditions
36        IF ( startTime .EQ. 0. .AND.  nIter0 .EQ. 0 ) THEN        IF ( startTime .EQ. 0. .AND.  nIter0 .EQ. 0
37         CALL INI_UVEL( myThid )       &     .AND. pickupSuff .EQ. ' ' ) THEN
38         CALL INI_VVEL( myThid )         CALL INI_VEL( myThid )
39         CALL INI_THETA( myThid )         CALL INI_THETA( myThid )
40         CALL INI_SALT( myThid )         CALL INI_SALT( myThid )
41         CALL INI_PSURF( myThid )         CALL INI_PSURF( myThid )
42  #ifdef ALLOW_NONHYDROSTATIC         CALL INI_PRESSURE( myThid )
43         IF ( nonHydrostatic ) THEN  #ifdef INCLUDE_EP_FORCING_CODE
44           CALL INI_GW( myThid )         CALL INI_EP( myThid )
        ENDIF  
45  #endif  #endif
46           IF (nonHydrostatic) CALL INI_PNH( myThid )
47        ELSE        ELSE
48         IF ( nIter0 .EQ. 0 ) THEN         IF ( nIter0 .EQ. 0 ) THEN
49          nIter0 = INT(startTime/deltaTClock )          nIter0 = INT(startTime/deltaTClock )

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

  ViewVC Help
Powered by ViewVC 1.1.22