/[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.2 by cnh, Fri Apr 24 02:05:41 1998 UTC revision 1.6 by adcroft, Wed Apr 5 17:52:37 2000 UTC
# Line 1  Line 1 
1  C $Header$  C $Header$
2    
3  #include "CPP_EEOPTIONS.h"  #include "CPP_OPTIONS.h"
4    
5  CStartOfInterface  CStartOfInterface
6        SUBROUTINE INI_FIELDS( myThid )        SUBROUTINE INI_FIELDS( myThid )
# Line 13  C     | set here. For continuation runs Line 13  C     | set here. For continuation runs
13  C     | used. For original runs custom rules can be included     |  C     | used. For original runs custom rules can be included     |
14  C     | here.                                                    |  C     | here.                                                    |
15  C     \==========================================================/  C     \==========================================================/
16          IMPLICIT NONE
17    
18  C     === Global variables ===  C     === Global variables ===
19  #include "SIZE.h"  #include "SIZE.h"
# Line 25  C     myThid -  Number of this instance Line 26  C     myThid -  Number of this instance
26  CEndOfInterface  CEndOfInterface
27    
28  C--   Set model variables to initial/restart conditions  C--   Set model variables to initial/restart conditions
29        IF ( startTime .EQ. 0. ) THEN        IF ( startTime .EQ. 0. .AND.  nIter0 .EQ. 0 ) THEN
30         CALL INI_UVEL( myThid )         CALL INI_UVEL( myThid )
31         CALL INI_VVEL( 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        ELSE        ELSE
36           IF ( nIter0 .EQ. 0 ) THEN
37            nIter0 = INT(startTime/deltaTClock )
38           ENDIF
39           CALL READ_CHECKPOINT( nIter0, myThid )
40        ENDIF        ENDIF
41    
42        RETURN        RETURN

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.22