/[MITgcm]/MITgcm/pkg/ptracers/ptracers_readparms.F
ViewVC logotype

Diff of /MITgcm/pkg/ptracers/ptracers_readparms.F

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

revision 1.19 by jmc, Sat May 14 22:50:15 2005 UTC revision 1.20 by edhill, Sat Jul 30 00:58:41 2005 UTC
# Line 20  C     !USES: Line 20  C     !USES:
20  #include "PTRACERS_SIZE.h"  #include "PTRACERS_SIZE.h"
21  #include "PTRACERS.h"  #include "PTRACERS.h"
22  #include "PARAMS.h"  #include "PARAMS.h"
23    #ifdef ALLOW_MNC
24    #include "MNC_PARAMS.h"
25    #endif
26    
27  C     !INPUT PARAMETERS:  C     !INPUT PARAMETERS:
28        INTEGER myThid        INTEGER myThid
# Line 58  C                          are written t Line 61  C                          are written t
61       &     PTRACERS_names,       &     PTRACERS_names,
62       &     PTRACERS_long_names,       &     PTRACERS_long_names,
63       &     PTRACERS_units,       &     PTRACERS_units,
64       &     PTRACERS_write_mnc       &     PTRACERS_timeave_mnc, PTRACERS_snapshot_mnc,
65         &     PTRACERS_pickup_write_mnc, PTRACERS_pickup_read_mnc
66    
67  C     This routine has been called by the main model so we set our  C     This routine has been called by the main model so we set our
68  C     internal flag to indicate we are in business  C     internal flag to indicate we are in business
# Line 88  C     Set defaults values for parameters Line 92  C     Set defaults values for parameters
92            PTRACERS_units(iTracer)(ic:ic) = ' '            PTRACERS_units(iTracer)(ic:ic) = ' '
93          ENDDO          ENDDO
94        ENDDO        ENDDO
95        PTRACERS_useRecords  = .FALSE.        PTRACERS_useRecords       = .FALSE.
96        PTRACERS_write_mdsio = .TRUE.  #ifdef ALLOW_MNC
97        PTRACERS_write_mnc   = .FALSE.        PTRACERS_timeave_mnc      = timeave_mnc .AND. useMNC
98          PTRACERS_snapshot_mnc     = snapshot_mnc .AND. useMNC
99          PTRACERS_pickup_write_mnc = pickup_write_mnc .AND. useMNC
100          PTRACERS_pickup_read_mnc  = pickup_read_mnc .AND. useMNC
101    #else
102          PTRACERS_timeave_mnc      = .FALSE.
103          PTRACERS_snapshot_mnc     = .FALSE.
104          PTRACERS_pickup_write_mnc = .FALSE.
105          PTRACERS_pickup_read_mnc  = .FALSE.
106    #endif
107    
108  C     Open and read the data.ptracers file  C     Open and read the data.ptracers file
109        _BEGIN_MASTER(myThid)        _BEGIN_MASTER(myThid)
# Line 168  C     Check that enough parameters were Line 181  C     Check that enough parameters were
181        ENDDO        ENDDO
182    
183  #ifdef ALLOW_MNC  #ifdef ALLOW_MNC
184          PTRACERS_timeave_mnc      =
185         &     PTRACERS_timeave_mnc .AND. useMNC
186          PTRACERS_snapshot_mnc     =
187         &     PTRACERS_snapshot_mnc .AND. useMNC
188          PTRACERS_pickup_write_mnc =
189         &     PTRACERS_pickup_write_mnc .AND. useMNC
190          PTRACERS_pickup_read_mnc  =
191         &     PTRACERS_pickup_read_mnc .AND. useMNC
192    
193          PTRACERS_timeave_mdsio      = (.NOT. PTRACERS_timeave_mnc)
194         &     .OR. outputTypesInclusive
195          PTRACERS_snapshot_mdsio     = (.NOT. PTRACERS_snapshot_mnc)
196         &     .OR. outputTypesInclusive
197          PTRACERS_pickup_write_mdsio = (.NOT. PTRACERS_pickup_write_mnc)
198         &     .OR. outputTypesInclusive
199          PTRACERS_pickup_read_mdsio  = (.NOT. PTRACERS_pickup_read_mnc)
200         &     .OR. outputTypesInclusive
201          
202        IF (useMNC) THEN        IF (useMNC) THEN
 C       Set the default I/O Types  
         IF ( (.NOT. outputTypesInclusive)  
      &       .AND. PTRACERS_write_mnc ) PTRACERS_write_mdsio = .FALSE.  
           
203  C       Initialize the MNC variable types for PTRACERS  C       Initialize the MNC variable types for PTRACERS
204          CALL PTRACERS_MNC_INIT( myThid )          CALL PTRACERS_MNC_INIT( myThid )
205        ENDIF        ENDIF
206  #endif /*  ALLOW_MNC  */  #else
207          PTRACERS_timeave_mnc        = .FALSE.
208          PTRACERS_snapshot_mnc       = .FALSE.
209          PTRACERS_pickup_write_mnc   = .FALSE.
210          PTRACERS_pickup_read_mnc    = .FALSE.
211          PTRACERS_timeave_mdsio      = .TRUE.
212          PTRACERS_snapshot_mdsio     = .TRUE.
213          PTRACERS_pickup_write_mdsio = .TRUE.
214          PTRACERS_pickup_read_mdsio  = .TRUE.
215    #endif
216                
217  C--   Print a summary of pTracer parameter values:  C--   Print a summary of pTracer parameter values:
218        iUnit = standardMessageUnit        iUnit = standardMessageUnit
# Line 200  C--   Print a summary of pTracer paramet Line 236  C--   Print a summary of pTracer paramet
236       &   ' /* Frequency^-1 for time-Aver. output (s) */')       &   ' /* Frequency^-1 for time-Aver. output (s) */')
237        CALL WRITE_0D_L( PTRACERS_useRecords, INDEX_NONE,        CALL WRITE_0D_L( PTRACERS_useRecords, INDEX_NONE,
238       &   'PTRACERS_useRecords =', ' /* all tracers in 1 file */')       &   'PTRACERS_useRecords =', ' /* all tracers in 1 file */')
239        CALL WRITE_0D_L( PTRACERS_write_mdsio, INDEX_NONE,        
240       &   'PTRACERS_write_mdsio =', ' /* write mdsio files */')        CALL WRITE_0D_L( PTRACERS_timeave_mnc, INDEX_NONE,
241        CALL WRITE_0D_L( PTRACERS_write_mnc, INDEX_NONE,       &     'PTRACERS_timeave_mnc =',
242       &   'PTRACERS_write_mnc =', ' /* write mnc files */')       &     ' /* use MNC for Tave output */')
243          CALL WRITE_0D_L( PTRACERS_snapshot_mnc, INDEX_NONE,
244         &     'PTRACERS_snapshot_mnc =',
245         &     ' /* use MNC for snapshot output */')
246          CALL WRITE_0D_L( PTRACERS_pickup_write_mnc, INDEX_NONE,
247         &     'PTRACERS_pickup_write_mnc =',
248         &     ' /* use MNC for writing pickups */')
249          CALL WRITE_0D_L( PTRACERS_pickup_read_mnc, INDEX_NONE,
250         &     'PTRACERS_pickup_read_mnc =',
251         &     ' /* use MNC for reading pickups */')
252    
253        DO iTracer=1,PTRACERS_numInUse        DO iTracer=1,PTRACERS_numInUse
254          WRITE(msgBuf,'(A)') ' -----------------------------------'          WRITE(msgBuf,'(A)') ' -----------------------------------'

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.22