/[MITgcm]/MITgcm_contrib/gael/pkg/smooth2/smooth_readparms.F
ViewVC logotype

Contents of /MITgcm_contrib/gael/pkg/smooth2/smooth_readparms.F

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


Revision 1.1 - (show annotations) (download)
Sun Oct 25 21:24:04 2009 UTC (15 years, 8 months ago) by gforget
Branch: MAIN
CVS Tags: HEAD
Renovated pkg/smooth. Ready for MITgcm/pkg check in?

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

  ViewVC Help
Powered by ViewVC 1.1.22