/[MITgcm]/MITgcm/model/src/packages_readparms.F
ViewVC logotype

Annotation of /MITgcm/model/src/packages_readparms.F

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


Revision 1.20 - (hide annotations) (download)
Wed Jun 25 21:06:35 2003 UTC (20 years, 11 months ago) by stephd
Branch: MAIN
CVS Tags: checkpoint51b_pre, checkpoint51a_post
Changes since 1.19: +3 -0 lines
additions for biogeochemistry packages

1 adcroft 1.2
2 heimbach 1.1 #include "CPP_OPTIONS.h"
3    
4     CStartOfInterface
5 cnh 1.7 CBOP
6     C !ROUTINE: PACKAGES_READPARMS
7     C !INTERFACE:
8 heimbach 1.1 SUBROUTINE PACKAGES_READPARMS(myThid)
9 cnh 1.7
10     C !DESCRIPTION: \bv
11     C *==========================================================*
12     C | SUBROUTINE PACKAGES_READPARMS
13     C | o Read runtime package configuration parameters
14     C *==========================================================*
15     C | Packages can have internal runtime configuration
16     C | parameters. A package provides a routine
17     C | ${PKGNAME}_READ_PARMS to read these parameters. In
18     C | general this routine should read parameters from a file
19     C | called data.${pkgname}.
20     C | This routine (S/R PACKAGES_READPARMS) calls per-package
21     C | parameter reading routines.
22     C *==========================================================*
23     C \ev
24    
25     C !CALLING SEQUENCE:
26     C PACKAGES_READPARMS
27     C |
28     C |-- GMREDI_READPARMS
29     C |
30     C |-- KPP_READPARMS
31     C |
32 dimitri 1.17 C |-- SBO_READPARMS
33     C |
34 heimbach 1.14 C |-- SEAICE_READPARMS
35     C |
36 cnh 1.7 C |-- SHAP_FILT_READPARMS
37     C |
38 jmc 1.8 C |-- ZONAL_FILT_READPARMS
39     C |
40 cnh 1.7 C |-- OBCS_READPARMS
41     C |
42     C |-- COST_READPARMS
43     C |
44     C |-- CTRL_INIT
45     C |
46     C |-- OPTIM_READPARMS
47     C |
48     C |-- GRDCHK_READPARMS
49     C |
50     C |-- ECCO_READPARMS
51    
52    
53     C !USES:
54 heimbach 1.1 IMPLICIT NONE
55     C == Global variables ==
56     #include "SIZE.h"
57     #include "EEPARAMS.h"
58     #include "PARAMS.h"
59    
60     C == Routine arguments ==
61     INTEGER myThid
62 cnh 1.7 CEOP
63 heimbach 1.1
64     #ifdef ALLOW_GMREDI
65     C-- Initialize GM/Redi parameters
66     IF (useGMRedi) CALL GMREDI_READPARMS( myThid )
67     #endif
68    
69     #ifdef ALLOW_KPP
70     C-- Initialize KPP parameters
71     IF (useKPP) CALL KPP_READPARMS( myThid )
72 dimitri 1.17 #endif
73    
74     #ifdef ALLOW_SBO
75     C-- Initialize SBO parameters
76     IF (useSBO) CALL SBO_READPARMS( myThid )
77 heimbach 1.14 #endif
78    
79     #ifdef ALLOW_SEAICE
80     C-- Initialize SEAICE parameters
81     IF (useSEAICE) CALL SEAICE_READPARMS( myThid )
82 adcroft 1.5 #endif
83    
84     #ifdef ALLOW_SHAP_FILT
85     IF (useSHAP_FILT) CALL SHAP_FILT_READPARMS( myThid )
86 jmc 1.8 #endif
87    
88     #ifdef ALLOW_ZONAL_FILT
89     IF (useZONAL_FILT) CALL ZONAL_FILT_READPARMS( myThid )
90 adcroft 1.2 #endif
91    
92     #ifdef ALLOW_OBCS
93     IF (useOBCS) CALL OBCS_READPARMS( myThid )
94 adcroft 1.10 #endif
95    
96 cheisey 1.15 cswdblk -- add ---
97 cheisey 1.16 #ifdef ALLOW_BULK_FORCE
98 cheisey 1.15 C -- initialize Bulkf parameters
99 cheisey 1.16 IF (useBulkForce) call BULKF_READPARMS( myThid )
100 cheisey 1.15 #endif
101     cswdblk --- end add ---
102    
103     cswdice -- add ---
104 cheisey 1.16 #ifdef ALLOW_THERM_SEAICE
105 cheisey 1.15 C -- initialize Sea Ice parameters
106 cheisey 1.16 IF (useThermSeaIce) call ICE_READPARMS( myThid )
107 cheisey 1.15 #endif
108     cswdice --- end add ---
109    
110    
111 adcroft 1.10 #ifdef ALLOW_PTRACERS
112     IF (usePTRACERS) CALL PTRACERS_READPARMS( myThid )
113 stephd 1.20 cswdptr -- add --
114     IF (usePTRACERS) CALL GCHEM_READPARMS( myThid )
115     cswdptr -- end add ---
116 heimbach 1.4 #endif
117    
118 heimbach 1.19 #if (defined (ALLOW_ADJOINT_RUN) || \
119     defined (ALLOW_TANGENTLINEAR_RUN) || \
120     defined (ALLOW_ECCO_OPTIMIZATION))
121 heimbach 1.11 C-- Initialise the optim. parameters.
122     call optim_readparms( myThid )
123 heimbach 1.19 C-- Initialise the control parameters
124     call ctrl_readparms( myThid )
125     C-- Initialise the cost parameters
126     call cost_readparms( mythid )
127 heimbach 1.6 _BARRIER
128 heimbach 1.11 #endif
129 heimbach 1.6
130     #ifdef ALLOW_GRADIENT_CHECK
131     C-- Initialise gradient check parameters
132     if (useGrdchk) call grdchk_readparms( myThid )
133 heimbach 1.1 #endif
134 heimbach 1.6
135 jmc 1.12 #ifdef ALLOW_CALENDAR
136 heimbach 1.11 C-- Initialise the calendar package.
137     call cal_readparms( myThid )
138     #endif
139    
140     C-- Custom routine to set forcing fields.
141     #ifdef INCLUDE_EXTERNAL_FORCING_PACKAGE
142     call exf_readparms ( mythid )
143     #endif
144 heimbach 1.1
145     #ifdef INCLUDE_ECCO_PACKAGE
146     c-- Initialize ECCO package parameters
147 heimbach 1.19 IF (useECCO) call ecco_readparms ( myThid )
148 heimbach 1.1 #endif
149    
150     END

  ViewVC Help
Powered by ViewVC 1.1.22