/[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.14 by mlosch, Wed Sep 18 16:38:02 2002 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 ) THEN
37         CALL INI_UVEL( myThid )         CALL INI_VEL( myThid )
        CALL INI_VVEL( myThid )  
        CALL INI_WVEL( myThid )  
38         CALL INI_THETA( myThid )         CALL INI_THETA( myThid )
39         CALL INI_SALT( myThid )         CALL INI_SALT( myThid )
40         CALL INI_PSURF( myThid )         CALL INI_PSURF( myThid )
41  #ifdef ALLOW_NONHYDROSTATIC         CALL INI_PRESSURE( myThid )
42         IF ( nonHydrostatic ) THEN  #ifdef INCLUDE_EP_FORCING_CODE
43           CALL INI_GW( myThid )         CALL INI_EP( myThid )
        ENDIF  
44  #endif  #endif
45           IF (nonHydrostatic) CALL INI_PNH( myThid )
46        ELSE        ELSE
47         IF ( nIter0 .EQ. 0 ) THEN         IF ( nIter0 .EQ. 0 ) THEN
48          nIter0 = INT(startTime/deltaTClock )          nIter0 = INT(startTime/deltaTClock )

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

  ViewVC Help
Powered by ViewVC 1.1.22