/[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.11 by adcroft, Fri Jun 29 17:14:49 2001 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  CStartOfInterface
7        SUBROUTINE INI_FIELDS( myThid )        SUBROUTINE INI_FIELDS( myThid )
# Line 13  C     | set here. For continuation runs Line 14  C     | set here. For continuation runs
14  C     | used. For original runs custom rules can be included     |  C     | used. For original runs custom rules can be included     |
15  C     | here.                                                    |  C     | here.                                                    |
16  C     \==========================================================/  C     \==========================================================/
17          IMPLICIT NONE
18    
19  C     === Global variables ===  C     === Global variables ===
20  #include "SIZE.h"  #include "SIZE.h"
# Line 25  C     myThid -  Number of this instance Line 27  C     myThid -  Number of this instance
27  CEndOfInterface  CEndOfInterface
28    
29  C--   Set model variables to initial/restart conditions  C--   Set model variables to initial/restart conditions
30        IF ( startTime .EQ. 0. ) THEN        IF ( startTime .EQ. 0. .AND.  nIter0 .EQ. 0 ) THEN
31         CALL INI_UVEL( myThid )         CALL INI_VEL( myThid )
        CALL INI_VVEL( myThid )  
32         CALL INI_THETA( myThid )         CALL INI_THETA( myThid )
33         CALL INI_SALT( myThid )         CALL INI_SALT( myThid )
34           CALL INI_PSURF( myThid )
35           IF (nonHydrostatic) CALL INI_PNH( myThid )
36        ELSE        ELSE
37           IF ( nIter0 .EQ. 0 ) THEN
38            nIter0 = INT(startTime/deltaTClock )
39           ENDIF
40           CALL READ_CHECKPOINT( nIter0, myThid )
41        ENDIF        ENDIF
42    
43        RETURN        RETURN

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

  ViewVC Help
Powered by ViewVC 1.1.22