| 1 |
#include "CPP_OPTIONS.h" |
| 2 |
|
| 3 |
subroutine smooth_readparms( mythid ) |
| 4 |
|
| 5 |
implicit none |
| 6 |
|
| 7 |
c == global variables == |
| 8 |
|
| 9 |
#include "EEPARAMS.h" |
| 10 |
#include "SIZE.h" |
| 11 |
#include "GRID.h" |
| 12 |
#include "PARAMS.h" |
| 13 |
|
| 14 |
#include "smooth.h" |
| 15 |
|
| 16 |
c == routine arguments == |
| 17 |
|
| 18 |
integer mythid |
| 19 |
|
| 20 |
c == local variables == |
| 21 |
C msgBuf - Informational/error meesage buffer |
| 22 |
C iUnit - Work variable for IO unit number |
| 23 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
| 24 |
INTEGER iUnit, num_file, num_var |
| 25 |
|
| 26 |
c == end of interface == |
| 27 |
|
| 28 |
c-- Read the namelist input. |
| 29 |
namelist /smooth_nml/ |
| 30 |
& wc01_2D_nbt, |
| 31 |
& smooth2Dtype, |
| 32 |
& smooth2Dsize, |
| 33 |
& wc01_2D_Lx0, |
| 34 |
& wc01_2D_Ly0, |
| 35 |
& smooth2Dfilter, |
| 36 |
& wc01_nbt, |
| 37 |
& smooth3DtypeH, |
| 38 |
& smooth3DsizeH, |
| 39 |
& smooth3DtypeZ, |
| 40 |
& smooth3DsizeZ, |
| 41 |
& wc01_3D_Lx0, |
| 42 |
& wc01_3D_Ly0, |
| 43 |
& wc01_3D_Lz0, |
| 44 |
& smooth3Dfilter |
| 45 |
|
| 46 |
|
| 47 |
_BEGIN_MASTER( myThid ) |
| 48 |
|
| 49 |
smooth_isset=.FALSE. |
| 50 |
|
| 51 |
c-- Set default values. |
| 52 |
DO smoothOpNbCur=1,smoothOpNbMax |
| 53 |
|
| 54 |
wc01_2D_nbt(smoothOpNbCur)=0 |
| 55 |
wc01_2D_Lx0(smoothOpNbCur)=0. |
| 56 |
wc01_2D_Ly0(smoothOpNbCur)=0. |
| 57 |
smooth2Dtype(smoothOpNbCur)=0 |
| 58 |
smooth2Dsize(smoothOpNbCur)=0 |
| 59 |
smooth2Dfilter(smoothOpNbCur)=0 |
| 60 |
|
| 61 |
wc01_nbt(smoothOpNbCur)=0 |
| 62 |
wc01_3D_Lx0(smoothOpNbCur)=0. |
| 63 |
wc01_3D_Ly0(smoothOpNbCur)=0. |
| 64 |
wc01_3D_Lz0(smoothOpNbCur)=0. |
| 65 |
smooth3DtypeH(smoothOpNbCur)=0 |
| 66 |
smooth3DsizeH(smoothOpNbCur)=0 |
| 67 |
smooth3DtypeZ(smoothOpNbCur)=0 |
| 68 |
smooth3DsizeZ(smoothOpNbCur)=0 |
| 69 |
smooth3Dfilter(smoothOpNbCur)=0 |
| 70 |
|
| 71 |
ENDDO |
| 72 |
|
| 73 |
c-- Next, read the cost data file. |
| 74 |
WRITE(msgBuf,'(A)') 'PROFILES_READPARMS: opening data.smooth' |
| 75 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
| 76 |
& SQUEEZE_RIGHT , 1) |
| 77 |
|
| 78 |
CALL OPEN_COPY_DATA_FILE( |
| 79 |
I 'data.smooth', 'SMOOTH_READPARMS', |
| 80 |
O iUnit, |
| 81 |
I myThid ) |
| 82 |
|
| 83 |
READ( iUnit, nml = smooth_nml ) |
| 84 |
|
| 85 |
WRITE(msgBuf,'(2A)') 'PROFILES_READPARMS: ', |
| 86 |
& 'finished reading data.smooth' |
| 87 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
| 88 |
& SQUEEZE_RIGHT , 1) |
| 89 |
|
| 90 |
CLOSE( iUnit ) |
| 91 |
|
| 92 |
_END_MASTER( mythid ) |
| 93 |
|
| 94 |
_BARRIER |
| 95 |
|
| 96 |
|
| 97 |
end |