/[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.12 by jmc, Thu Oct 28 00:32:21 2004 UTC revision 1.16 by edhill, Mon Dec 13 21:29:14 2004 UTC
# Line 40  C     msgBuf     :: message buffer Line 40  C     msgBuf     :: message buffer
40  C     PTRACERS_taveFreq :: Frequency with which time-averaged PTRACERS  C     PTRACERS_taveFreq :: Frequency with which time-averaged PTRACERS
41  C                          are written to post-processing files.  C                          are written to post-processing files.
42        NAMELIST /PTRACERS_PARM01/        NAMELIST /PTRACERS_PARM01/
43         &     PTRACERS_dumpFreq,
44       &     PTRACERS_taveFreq,       &     PTRACERS_taveFreq,
45         &     PTRACERS_monitorFreq,
46       &     PTRACERS_advScheme,       &     PTRACERS_advScheme,
47         &     PTRACERS_ImplVertAdv,
48       &     PTRACERS_diffKh,       &     PTRACERS_diffKh,
49       &     PTRACERS_diffK4,       &     PTRACERS_diffK4,
50       &     PTRACERS_diffKr,       &     PTRACERS_diffKr,
# Line 62  C     internal flag to indicate we are i Line 65  C     internal flag to indicate we are i
65        PTRACERSisON=.TRUE.        PTRACERSisON=.TRUE.
66    
67  C     Set defaults values for parameters in PTRACERS.h  C     Set defaults values for parameters in PTRACERS.h
68        PTRACERS_taveFreq=taveFreq        PTRACERS_taveFreq    = dumpFreq
69          PTRACERS_taveFreq    = taveFreq
70          PTRACERS_monitorFreq = monitorFreq
71        PTRACERS_numInUse=-1        PTRACERS_numInUse=-1
72        DO iTracer=1,PTRACERS_num        DO iTracer=1,PTRACERS_num
73          PTRACERS_advScheme(iTracer)=saltAdvScheme          PTRACERS_advScheme(iTracer)=saltAdvScheme
74            PTRACERS_ImplVertAdv(iTracer) = .FALSE.
75          PTRACERS_diffKh(iTracer)=diffKhS          PTRACERS_diffKh(iTracer)=diffKhS
76          PTRACERS_diffK4(iTracer)=diffK4S          PTRACERS_diffK4(iTracer)=diffK4S
77          PTRACERS_diffKr(iTracer)=UNSET_RL          PTRACERS_diffKr(iTracer)=UNSET_RL
# Line 137  C     Check that enough parameters were Line 143  C     Check that enough parameters were
143            STOP 'ABNORMAL END: S/R PTRACERS_READPARMS'            STOP 'ABNORMAL END: S/R PTRACERS_READPARMS'
144          ENDIF          ENDIF
145        ENDDO        ENDDO
146    #ifndef INCLUDE_IMPLVERTADV_CODE
147          DO iTracer=1,PTRACERS_numInUse
148           IF ( PTRACERS_ImplVertAdv(iTracer) ) THEN
149            WRITE(msgBuf,'(A)')
150         &   'PTRACERS_READPARMS: #undef INCLUDE_IMPLVERTADV_CODE'
151            CALL PRINT_ERROR( msgBuf , myThid)
152            WRITE(msgBuf,'(2A,I2,A)') 'PTRACERS_READPARMS:',
153         &   ' but pTracers_ImplVertAdv(',iTracer,' ) is TRUE'
154            CALL PRINT_ERROR( msgBuf , myThid)
155            STOP 'ABNORMAL END: S/R PTRACERS_READPARMS'
156           ENDIF
157          ENDDO
158    #endif
159        DO iTracer=1,PTRACERS_numInUse        DO iTracer=1,PTRACERS_numInUse
160          PTRACERS_useGMRedi(iTracer) = PTRACERS_useGMRedi(iTracer)          PTRACERS_useGMRedi(iTracer) = PTRACERS_useGMRedi(iTracer)
161       &                           .AND.useGMRedi       &                           .AND.useGMRedi
# Line 154  C     Check that enough parameters were Line 173  C     Check that enough parameters were
173  C       Set the default I/O Types  C       Set the default I/O Types
174          IF (PTRACERS_read_mnc) PTRACERS_read_mdsio = .FALSE.          IF (PTRACERS_read_mnc) PTRACERS_read_mdsio = .FALSE.
175          IF ( (.NOT. outputTypesInclusive)          IF ( (.NOT. outputTypesInclusive)
176       &       .AND. PTRACERS_write_mnc ) pickup_write_mdsio = .FALSE.       &       .AND. PTRACERS_write_mnc ) PTRACERS_write_mdsio = .FALSE.
177                    
178  C       Initialize the MNC variable types for PTRACERS  C       Initialize the MNC variable types for PTRACERS
179          CALL PTRACERS_MNC_INIT( myThid )          CALL PTRACERS_MNC_INIT( myThid )
# Line 172  C--   Print a summary of pTracer paramet Line 191  C--   Print a summary of pTracer paramet
191        CALL WRITE_0D_I( PTRACERS_numInUse, INDEX_NONE,        CALL WRITE_0D_I( PTRACERS_numInUse, INDEX_NONE,
192       &   'PTRACERS_numInUse =',       &   'PTRACERS_numInUse =',
193       &   ' /* number of tracers */')       &   ' /* number of tracers */')
194          CALL WRITE_0D_R8(PTRACERS_dumpFreq, INDEX_NONE,
195         &   'PTRACERS_dumpFreq =',
196         &   ' /* Frequency^-1 for snapshot output (s) */')
197        CALL WRITE_0D_R8(PTRACERS_taveFreq, INDEX_NONE,        CALL WRITE_0D_R8(PTRACERS_taveFreq, INDEX_NONE,
198       &   'PTRACERS_taveFreq =',       &   'PTRACERS_taveFreq =',
199       &   ' /* Frequency^-1 for time-Aver. output (s) */')       &   ' /* Frequency^-1 for time-Aver. output (s) */')
# Line 189  C--   Print a summary of pTracer paramet Line 211  C--   Print a summary of pTracer paramet
211          CALL PRINT_MESSAGE( msgBuf, iUnit, SQUEEZE_RIGHT , 1)          CALL PRINT_MESSAGE( msgBuf, iUnit, SQUEEZE_RIGHT , 1)
212          CALL WRITE_0D_I( PTRACERS_advScheme(iTracer), INDEX_NONE,          CALL WRITE_0D_I( PTRACERS_advScheme(iTracer), INDEX_NONE,
213       &     'PTRACERS_advScheme =', ' /* Advection Scheme */')       &     'PTRACERS_advScheme =', ' /* Advection Scheme */')
214            CALL WRITE_0D_L( PTRACERS_ImplVertAdv(iTracer), INDEX_NONE,
215         &     'PTRACERS_ImplVertAdv =',
216         &     ' /* implicit vert. advection flag */')
217          CALL WRITE_0D_R8( PTRACERS_diffKh(iTracer), INDEX_NONE,          CALL WRITE_0D_R8( PTRACERS_diffKh(iTracer), INDEX_NONE,
218       &     'PTRACERS_diffKh =', ' /* Laplacian Diffusivity */')       &     'PTRACERS_diffKh =', ' /* Laplacian Diffusivity */')
219          CALL WRITE_0D_R8( PTRACERS_diffK4(iTracer), INDEX_NONE,          CALL WRITE_0D_R8( PTRACERS_diffK4(iTracer), INDEX_NONE,

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.22