/[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.1 by cnh, Wed Apr 22 19:15:30 1998 UTC revision 1.14 by mlosch, Wed Sep 18 16:38:02 2002 UTC
# Line 1  Line 1 
1  C $Id$  C $Header$
2    C $Name$
3    
4  #include "CPP_EEOPTIONS.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    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. ) THEN        IF ( startTime .EQ. 0. .AND.  nIter0 .EQ. 0 ) THEN
37         CALL INI_UVEL( myThid )         CALL INI_VEL( myThid )
        CALL INI_VVEL( myThid )  
38         CALL INI_THETA( myThid )         CALL INI_THETA( myThid )
39         CALL INI_SALT( myThid )         CALL INI_SALT( myThid )
40           CALL INI_PSURF( myThid )
41           CALL INI_PRESSURE( myThid )
42    #ifdef INCLUDE_EP_FORCING_CODE
43           CALL INI_EP( myThid )
44    #endif
45           IF (nonHydrostatic) CALL INI_PNH( myThid )
46        ELSE        ELSE
47           IF ( nIter0 .EQ. 0 ) THEN
48            nIter0 = INT(startTime/deltaTClock )
49           ENDIF
50           CALL READ_CHECKPOINT( nIter0, myThid )
51        ENDIF        ENDIF
52    
53        RETURN        RETURN

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

  ViewVC Help
Powered by ViewVC 1.1.22