/[MITgcm]/MITgcm/model/src/ini_model_io.F
ViewVC logotype

Diff of /MITgcm/model/src/ini_model_io.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.23 by jmc, Wed Oct 17 22:08:13 2007 UTC revision 1.24 by jmc, Fri Oct 19 14:36:47 2007 UTC
# Line 10  C     !ROUTINE: INI_MODEL_IO Line 10  C     !ROUTINE: INI_MODEL_IO
10  C     !INTERFACE:  C     !INTERFACE:
11        SUBROUTINE INI_MODEL_IO( myThid )        SUBROUTINE INI_MODEL_IO( myThid )
12    
13  C     !DESCRIPTION:  C     !DESCRIPTION:
14  C     Pass specific setup data for mdsio/rw.  C     Pass specific setup data for mdsio/rw.
15    
16  C     !USES:  C     !USES:
# Line 19  C     !USES: Line 19  C     !USES:
19  #include "EEPARAMS.h"  #include "EEPARAMS.h"
20  #include "EESUPPORT.h"  #include "EESUPPORT.h"
21  #include "PARAMS.h"  #include "PARAMS.h"
22    #include "RESTART.h"
23    
24  C     !INPUT/OUTPUT PARAMETERS:  C     !INPUT/OUTPUT PARAMETERS:
25  C     myThid :: my Thread Id number  C     myThid :: my Thread Id number
# Line 49  c       STOP 'ABNORMAL END: S/R INI_MODE Line 50  c       STOP 'ABNORMAL END: S/R INI_MODE
50  C------  C------
51  C   GlobalFiles option with Multi-processors execution (with MPI) is not  C   GlobalFiles option with Multi-processors execution (with MPI) is not
52  C   safe: dependending on the platform & compiler, it may produce:  C   safe: dependending on the platform & compiler, it may produce:
53  C    - incomplete output files (wrong size)  C    - incomplete output files (wrong size)
54  C    - wrong isolated values in some output files  C    - wrong isolated values in some output files
55  C    - missing tiles (all zeros) in some output files.  C    - missing tiles (all zeros) in some output files.
56  C   A safe alternative is to set "useSingleCpuIO=.TRUE." in file "data",  C   A safe alternative is to set "useSingleCpuIO=.TRUE." in file "data",
57  C     namelist PARAM01  (and to keep the default value of globalFiles=FALSE)  C     namelist PARAM01  (and to keep the default value of globalFiles=FALSE)
58  C   or if you are really sure that the globalFile works well on our platform  C   or if you are really sure that the globalFile works well on our platform
59  C     & compiler, comment out the above "stop"  C     & compiler, comment out the above "stop"
60  C-----  C-----
61          WRITE(msgBuf,'(2A)')          WRITE(msgBuf,'(2A)')
# Line 71  C----- Line 72  C-----
72    
73  C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|  C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
74    
 C-    Flags specific to RW and MDSIO  
   
75  C-    Only Master-thread updates IO-parameter in Common blocks:  C-    Only Master-thread updates IO-parameter in Common blocks:
76        _BEGIN_MASTER( myThid )        _BEGIN_MASTER( myThid )
77    
78    C-    Initialise AB starting level
79    C      notes: those could be modified when reading a pickup that does
80    C             correspond to what is actually needed.
81          tempStartAB = nIter0
82          saltStartAB = nIter0
83          mom_StartAB = nIter0
84          nHydStartAB = nIter0
85          IF ( startFromPickupAB2 ) tempStartAB = MIN( nIter0 , 1 )
86          saltStartAB = tempStartAB
87          mom_StartAB = tempStartAB
88    
89    C-    Initialise Alternating pickup-suffix
90          nCheckLev         = 1
91          checkPtSuff(1)    = 'ckptA'
92          checkPtSuff(2)    = 'ckptB'
93    
94    C-    Flags specific to RW and MDSIO
95    
96  C-    now we make local directories with myProcessStr appended  C-    now we make local directories with myProcessStr appended
97        IF ( mdsioLocalDir .NE. ' ' ) THEN        IF ( mdsioLocalDir .NE. ' ' ) THEN
98          pIL = ILNBLNK( mdsioLocalDir )          pIL = ILNBLNK( mdsioLocalDir )
# Line 87  C     Set globalFiles flag for READ_WRIT Line 104  C     Set globalFiles flag for READ_WRIT
104        CALL SET_WRITE_GLOBAL_FLD( globalFiles )        CALL SET_WRITE_GLOBAL_FLD( globalFiles )
105  C     Set globalFiles flag for READ_WRITE_REC package  C     Set globalFiles flag for READ_WRITE_REC package
106        CALL SET_WRITE_GLOBAL_REC( globalFiles )        CALL SET_WRITE_GLOBAL_REC( globalFiles )
107  C     Set globalFiles flag for READ_WRITE_PICKUP  C     Set globalFiles flag for READ_WRITE_PICKUP
108        CALL SET_WRITE_GLOBAL_PICKUP( globalFiles )        CALL SET_WRITE_GLOBAL_PICKUP( globalFiles )
109    
110        _END_MASTER( myThid )        _END_MASTER( myThid )

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.22