/[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.11 by jmc, Fri Oct 22 16:01:20 2004 UTC revision 1.13 by mlosch, Sun Nov 28 23:50:59 2004 UTC
# Line 41  C     PTRACERS_taveFreq :: Frequency wit Line 41  C     PTRACERS_taveFreq :: Frequency wit
41  C                          are written to post-processing files.  C                          are written to post-processing files.
42        NAMELIST /PTRACERS_PARM01/        NAMELIST /PTRACERS_PARM01/
43       &     PTRACERS_taveFreq,       &     PTRACERS_taveFreq,
44         &     PTRACERS_monitorFreq,
45       &     PTRACERS_advScheme,       &     PTRACERS_advScheme,
46       &     PTRACERS_diffKh,       &     PTRACERS_diffKh,
47       &     PTRACERS_diffK4,       &     PTRACERS_diffK4,
# Line 62  C     internal flag to indicate we are i Line 63  C     internal flag to indicate we are i
63        PTRACERSisON=.TRUE.        PTRACERSisON=.TRUE.
64    
65  C     Set defaults values for parameters in PTRACERS.h  C     Set defaults values for parameters in PTRACERS.h
66        PTRACERS_taveFreq=taveFreq        PTRACERS_taveFreq    = taveFreq
67          PTRACERS_monitorFreq = monitorFreq
68        PTRACERS_numInUse=-1        PTRACERS_numInUse=-1
69        DO iTracer=1,PTRACERS_num        DO iTracer=1,PTRACERS_num
70          PTRACERS_advScheme(iTracer)=saltAdvScheme          PTRACERS_advScheme(iTracer)=saltAdvScheme
# Line 155  C       Set the default I/O Types Line 157  C       Set the default I/O Types
157          IF (PTRACERS_read_mnc) PTRACERS_read_mdsio = .FALSE.          IF (PTRACERS_read_mnc) PTRACERS_read_mdsio = .FALSE.
158          IF ( (.NOT. outputTypesInclusive)          IF ( (.NOT. outputTypesInclusive)
159       &       .AND. PTRACERS_write_mnc ) pickup_write_mdsio = .FALSE.       &       .AND. PTRACERS_write_mnc ) pickup_write_mdsio = .FALSE.
160            IF ( (.NOT. outputTypesInclusive)
161         &       .AND. PTRACERS_write_mnc ) PTRACERS_write_mdsio = .FALSE.
162                    
163  C       Initialize the MNC variable types for PTRACERS  C       Initialize the MNC variable types for PTRACERS
164          CALL PTRACERS_MNC_INIT( myThid )          CALL PTRACERS_MNC_INIT( myThid )
165        ENDIF        ENDIF
166  #endif /*  ALLOW_MNC  */  #endif /*  ALLOW_MNC  */
167                
168    C--   Print a summary of pTracer parameter values:
169          iUnit = standardMessageUnit
170          WRITE(msgBuf,'(A)') '// ==================================='
171          CALL PRINT_MESSAGE( msgBuf, iUnit, SQUEEZE_RIGHT , 1)
172          WRITE(msgBuf,'(A)') '// PTRACERS parameters '
173          CALL PRINT_MESSAGE( msgBuf, iUnit, SQUEEZE_RIGHT , 1)
174          WRITE(msgBuf,'(A)') '// ==================================='
175          CALL PRINT_MESSAGE( msgBuf, iUnit, SQUEEZE_RIGHT , 1)
176          CALL WRITE_0D_I( PTRACERS_numInUse, INDEX_NONE,
177         &   'PTRACERS_numInUse =',
178         &   ' /* number of tracers */')
179          CALL WRITE_0D_R8(PTRACERS_taveFreq, INDEX_NONE,
180         &   'PTRACERS_taveFreq =',
181         &   ' /* Frequency^-1 for time-Aver. output (s) */')
182          CALL WRITE_0D_L( PTRACERS_useRecords, INDEX_NONE,
183         &   'PTRACERS_useRecords =', ' /* all tracers in 1 file */')
184          CALL WRITE_0D_L( PTRACERS_write_mdsio, INDEX_NONE,
185         &   'PTRACERS_write_mdsio =', ' /* write mdsio files */')
186          CALL WRITE_0D_L( PTRACERS_write_mnc, INDEX_NONE,
187         &   'PTRACERS_write_mnc =', ' /* write mnc files */')
188    
189          DO iTracer=1,PTRACERS_numInUse
190            WRITE(msgBuf,'(A)') ' -----------------------------------'
191            CALL PRINT_MESSAGE( msgBuf, iUnit, SQUEEZE_RIGHT , 1)
192            WRITE(msgBuf,'(A,I4)') ' tracer number : ',iTracer
193            CALL PRINT_MESSAGE( msgBuf, iUnit, SQUEEZE_RIGHT , 1)
194            CALL WRITE_0D_I( PTRACERS_advScheme(iTracer), INDEX_NONE,
195         &     'PTRACERS_advScheme =', ' /* Advection Scheme */')
196            CALL WRITE_0D_R8( PTRACERS_diffKh(iTracer), INDEX_NONE,
197         &     'PTRACERS_diffKh =', ' /* Laplacian Diffusivity */')
198            CALL WRITE_0D_R8( PTRACERS_diffK4(iTracer), INDEX_NONE,
199         &     'PTRACERS_diffK4 =', ' /* Biharmonic Diffusivity */')
200            CALL WRITE_1D_R8( PTRACERS_diffKrNr(1,iTracer), Nr, INDEX_K,
201         &     'PTRACERS_diffKrNr =', ' /* Vertical Diffusivity */')
202            CALL WRITE_0D_L( PTRACERS_useGMRedi(iTracer), INDEX_NONE,
203         &     'PTRACERS_useGMRedi =', ' /* apply GM-Redi */')
204            CALL WRITE_0D_L( PTRACERS_useKPP(iTracer), INDEX_NONE,
205         &     'PTRACERS_useKPP =', ' /* apply KPP scheme */')
206    
207          ENDDO
208            WRITE(msgBuf,'(A)') ' -----------------------------------'
209            CALL PRINT_MESSAGE( msgBuf, iUnit, SQUEEZE_RIGHT , 1)
210  #endif /* ALLOW_PTRACERS */  #endif /* ALLOW_PTRACERS */
211    
212        RETURN        RETURN

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

  ViewVC Help
Powered by ViewVC 1.1.22