File indexing completed on 2018-03-02 18:41:33 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
d8d1486ca1 Jean*0001 #include "KL10_OPTIONS.h"
0002
0003
0004
0005
0006
0007 SUBROUTINE KL10_READPARMS( myThid )
0008
0009
0010
0011
0012
0013 IMPLICIT NONE
0014 #include "SIZE.h"
0015 #include "EEPARAMS.h"
0016 #include "KL10.h"
0017 #include "PARAMS.h"
0018
0019
0020
0021 INTEGER myThid
0022
0023
0024
0025
0026 #ifdef ALLOW_KL10
0027
0028
0029
0030
0031 INTEGER iUnit
0032 CHARACTER*(MAX_LEN_MBUF) msgBuf
0033
0034
0035 NAMELIST /KL10_PARM01/
0036 & KLviscMax,
0037 & KLdumpFreq,
0038 & KLwriteState,
0039 & KLtaveFreq
0040
0041 IF ( .NOT.useKL10 ) THEN
0042
0043 _BEGIN_MASTER(myThid)
0044
0045 KL10isON = .FALSE.
0046
0047 CALL PACKAGES_UNUSED_MSG( 'useKL10', ' ', ' ' )
0048 _END_MASTER(myThid)
0049 RETURN
0050 ENDIF
0051
0052 _BEGIN_MASTER(myThid)
0053
0054
0055
0056 KL10isON = .TRUE.
0057
0058
0059 KLviscMax = 300. _d 0
0060 KLdumpFreq = dumpFreq
0061 KLtaveFreq = taveFreq
0062 KLwriteState = .FALSE.
0063
0064
0065 WRITE(msgBuf,'(A)') ' KL10_READPARMS: opening data.kl10'
0066 CALL PRINT_MESSAGE(msgBuf, standardMessageUnit,
0067 & SQUEEZE_RIGHT , 1)
0068 CALL OPEN_COPY_DATA_FILE(
0069 I 'data.kl10', 'KL10_READPARMS',
0070 O iUnit,
0071 I myThid )
0072 READ(UNIT=iUnit,NML=KL10_PARM01)
0073 WRITE(msgBuf,'(A)')
0074 & ' KL10_READPARMS: finished reading data.kl10'
0075 CALL PRINT_MESSAGE(msgBuf, standardMessageUnit,
0076 & SQUEEZE_RIGHT , 1)
0077
0078
7a77863887 Mart*0079 #ifdef SINGLE_DISK_IO
d8d1486ca1 Jean*0080 CLOSE(iUnit)
7a77863887 Mart*0081 #else
0082 CLOSE(iUnit,STATUS='DELETE')
0083 #endif /* SINGLE_DISK_IO */
d8d1486ca1 Jean*0084 _END_MASTER(myThid)
0085
0086
0087 _BARRIER
0088
0089
0090 IF ( KLviscMax .LE. 0. ) THEN
0091 WRITE(msgBuf,'(A)') 'KLviscMax must be greater than zero'
0092 CALL PRINT_ERROR( msgBuf , 1)
0093 STOP 'ABNORMAL END: S/R KL10_READPARMS'
0094 ENDIF
0095 #endif /* ALLOW_KL10 */
0096
0097 RETURN
0098 END