/[MITgcm]/MITgcm/verification/matrix_example/code/packages_readparms.F
ViewVC logotype

Annotation of /MITgcm/verification/matrix_example/code/packages_readparms.F

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


Revision 1.2 - (hide annotations) (download)
Wed Apr 20 18:29:57 2005 UTC (19 years, 1 month ago) by spk
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Removing files that are now incorporated in main code tree

1 spk 1.2 C $Header: /u/gcmpack/MITgcm/verification/matrix_example/code/packages_readparms.F,v 1.1 2005/04/18 20:15:18 spk Exp $
2 spk 1.1 C $Name: $
3    
4     #include "PACKAGES_CONFIG.h"
5     #include "CPP_OPTIONS.h"
6    
7     CStartOfInterface
8     CBOP
9     C !ROUTINE: PACKAGES_READPARMS
10     C !INTERFACE:
11     SUBROUTINE PACKAGES_READPARMS(myThid)
12    
13     C !DESCRIPTION: \bv
14     C *==========================================================*
15     C | SUBROUTINE PACKAGES_READPARMS
16     C | o Read runtime package configuration parameters
17     C *==========================================================*
18     C | Packages can have internal runtime configuration
19     C | parameters. A package provides a routine
20     C | ${PKGNAME}_READ_PARMS to read these parameters. In
21     C | general this routine should read parameters from a file
22     C | called data.${pkgname}.
23     C | This routine (S/R PACKAGES_READPARMS) calls per-package
24     C | parameter reading routines.
25     C *==========================================================*
26     C \ev
27    
28     C !CALLING SEQUENCE:
29     C PACKAGES_READPARMS
30     C |
31     C |-- MNC_READPARMS + MNC_INIT + MNC_CW_INIT
32     C |
33     C |-- GMREDI_READPARMS
34     C |
35     C |-- KPP_READPARMS
36     C |
37     C |-- PP81_READPARMS
38     C |
39     C |-- MY82_READPARMS
40     C |
41     C |-- GGL90_READPARMS
42     C |
43     C |-- OPPS_READPARMS
44     C |
45     C |-- SBO_READPARMS
46     C |
47     C |-- SEAICE_READPARMS
48     C |
49     C |-- SHAP_FILT_READPARMS
50     C |
51     C |-- ZONAL_FILT_READPARMS
52     C |
53     C |-- OBCS_READPARMS
54     C |
55     C |-- OFFLINE_READPARMS
56     C |
57     C |-- BULKF_READPARMS
58     C |
59     C |-- THSICE_READPARMS
60     C |
61     C |-- GCHEM_READPARMS
62     C |
63     C |-- OPTIM_READPARMS
64     C |
65     C |-- CTRL_READPARMS
66     C |
67     C |-- COST_READPARMS
68     C |
69     C |-- GRDCHK_READPARMS
70     C |
71     C |-- CAL_READPARMS
72     C |
73     C |-- EXF_READPARMS
74     C |
75     C |-- EBM_READPARMS
76     C |
77     C |-- ECCO_READPARMS
78     C |
79     C |-- CPL_READPARMS
80     C |
81     C |-- FIZHI_READPARMS
82     C |
83     C |-- CPL_READPARMS
84     C |
85     C |-- DIAGNOSTICS_READPARMS
86    
87    
88     C !USES:
89     IMPLICIT NONE
90     C == Global variables ==
91     #include "SIZE.h"
92     #include "EEPARAMS.h"
93     #include "PARAMS.h"
94    
95     C == Routine arguments ==
96     INTEGER myThid
97     CEOP
98    
99     #ifdef ALLOW_MNC
100     C Read run-time flags and initialize look-up tables for MNC
101     IF (useMNC) THEN
102     CALL MNC_READPARMS( myThid )
103     CALL MNC_INIT(myThid)
104     CALL MNC_CW_INIT(sNx,sNy,OLx,OLy,nSx,nSy,nPx,nPy,
105     & Nr,myThid)
106     CEH3 IF ( mnc_echo_gvtypes ) THEN
107     CEH3 CALL MNC_CW_DUMP( myThid )
108     CEH3 ENDIF
109     ENDIF
110     #endif
111    
112     #ifdef ALLOW_GMREDI
113     C-- Initialize GM/Redi parameters
114     IF (useGMRedi) CALL GMREDI_READPARMS( myThid )
115     #endif
116    
117     #ifdef ALLOW_KPP
118     C-- Initialize KPP parameters
119     IF (useKPP) CALL KPP_READPARMS( myThid )
120     #endif
121    
122     #ifdef ALLOW_PP81
123     C-- Initialize PP81 parameters
124     IF (usePP81) CALL PP81_READPARMS( myThid )
125     #endif
126    
127     #ifdef ALLOW_MY82
128     C-- Initialize MY82 parameters
129     IF (useMY82) CALL MY82_READPARMS( myThid )
130     #endif
131    
132     #ifdef ALLOW_GGL90
133     C-- Initialize GGL90 parameters
134     IF (useGGL90) CALL GGL90_READPARMS( myThid )
135     #endif
136    
137     #ifdef ALLOW_OPPS
138     C-- Initialize OPPS parameters
139     IF (useOPPS) CALL OPPS_READPARMS( myThid )
140     #endif
141    
142     #ifdef ALLOW_SBO
143     C-- Initialize SBO parameters
144     IF (useSBO) CALL SBO_READPARMS( myThid )
145     #endif
146    
147     #ifdef ALLOW_SEAICE
148     C-- Initialize SEAICE parameters
149     IF (useSEAICE) CALL SEAICE_READPARMS( myThid )
150     #endif
151    
152     #ifdef ALLOW_SHAP_FILT
153     IF (useSHAP_FILT) CALL SHAP_FILT_READPARMS( myThid )
154     #endif
155    
156     #ifdef ALLOW_ZONAL_FILT
157     IF (useZONAL_FILT) CALL ZONAL_FILT_READPARMS( myThid )
158     #endif
159    
160     #ifdef ALLOW_OBCS
161     IF (useOBCS) CALL OBCS_READPARMS( myThid )
162     #endif
163    
164     #ifdef ALLOW_OFFLINE
165     call OFFLINE_READPARMS( myThid )
166     #endif
167    
168     #ifdef ALLOW_BULK_FORCE
169     C -- initialize Bulkf parameters
170     IF (useBulkForce) CALL BULKF_READPARMS( myThid )
171     #endif
172    
173     #ifdef ALLOW_THSICE
174     C -- initialize Therm.Sea-Ice parameters
175     IF (useThSIce) CALL THSICE_READPARMS( myThid )
176     #endif
177    
178     #ifdef ALLOW_PTRACERS
179     IF (usePTRACERS) CALL PTRACERS_READPARMS( myThid )
180     #endif
181    
182     cswdptr -- add --
183     #ifdef ALLOW_GCHEM
184     IF (useGCHEM) CALL GCHEM_READPARMS( myThid )
185     #endif
186     cswdptr -- end add ---
187    
188     #ifdef ALLOW_CTRL
189     C-- Initialise the optim. parameters.
190     call optim_readparms( myThid )
191     C-- Initialise the control parameters
192     call ctrl_readparms( myThid )
193     #endif
194    
195     #ifdef ALLOW_COST
196     C-- Initialise the cost parameters
197     call cost_readparms( mythid )
198     #endif
199    
200     #ifdef ALLOW_GRDCHK
201     C-- Initialise gradient check parameters
202     if (useGrdchk) call grdchk_readparms( myThid )
203     #endif
204    
205     #ifdef ALLOW_CAL
206     C-- Initialise the calendar package.
207     ceh3 should have an IF ( useCAL ) THEN
208     call cal_readparms( myThid )
209     #endif
210    
211     C-- Custom routine to set forcing fields.
212     #ifdef ALLOW_EXF
213     ceh3 needs an IF ( useEXF ) THEN
214     call exf_readparms ( mythid )
215     #endif
216    
217     #ifdef ALLOW_EBM
218     IF (useEBM) call ebm_readparms( mythid )
219     #endif
220    
221     #ifdef ALLOW_ECCO
222     c-- Initialize ECCO package parameters
223     IF (useECCO) call ecco_readparms ( myThid )
224     #endif
225    
226     #ifdef COMPONENT_MODULE
227     C-- set Coupling parameters
228     IF ( useCoupler ) CALL CPL_READPARMS( myThid )
229     #endif /* COMPONENT_MODULE */
230    
231     CAMM
232     #ifdef ALLOW_FIZHI
233     C-- set model date and time and other fizhi parameters
234     IF ( usefizhi ) call fizhi_readparms(myThid )
235     #endif /* ALLOW_FIZHI */
236     CAMM
237    
238     #ifdef ALLOW_DIAGNOSTICS
239     C-- set diagnostics choices
240     IF ( useDiagnostics ) CALL DIAGNOSTICS_READPARMS( myThid )
241     #endif /* ALLOW_DIAGNOSTICS */
242    
243     #ifdef ALLOW_MATRIX
244     C-- Initialize matrix package parameters
245     IF (useMATRIX) CALL MATRIX_READPARMS ( myThid )
246     #endif
247    
248     RETURN
249     END

  ViewVC Help
Powered by ViewVC 1.1.22