/[MITgcm]/MITgcm_contrib/eh3/regrid/hs94.cs-32x32x5/code/packages_boot.F
ViewVC logotype

Annotation of /MITgcm_contrib/eh3/regrid/hs94.cs-32x32x5/code/packages_boot.F

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


Revision 1.1 - (hide annotations) (download)
Thu Aug 10 05:00:14 2006 UTC (18 years, 11 months ago) by edhill
Branch: MAIN
CVS Tags: HEAD
initial ci

1 edhill 1.1 C $Header: /u/gcmpack/MITgcm/model/src/packages_boot.F,v 1.34 2006/06/28 21:24:54 heimbach Exp $
2     C $Name: $
3    
4     #include "PACKAGES_CONFIG.h"
5     #include "CPP_OPTIONS.h"
6    
7     CBOP
8     C !ROUTINE: PACKAGES_BOOT
9     C !INTERFACE:
10     SUBROUTINE PACKAGES_BOOT( myThid )
11    
12     C !DESCRIPTION: \bv
13     C *==========================================================*
14     C | SUBROUTINE PACKAGES_BOOT
15     C | o Routine to parse runtime package selection file
16     C *==========================================================*
17     C | Routine reads a flat file which contains a single flag
18     C | for each known "package". Flag can enables runtime
19     C | activation or deactivation of a package. The data is read
20     C | from a file called data.pkg.
21     C | Note - If a runtime activation flag is set on but the
22     C | package code was not included in the build then
23     C | the default behavior is to stop with an error.
24     C *==========================================================*
25     C \ev
26    
27     C !USES:
28     IMPLICIT NONE
29     C === Global variables ===
30     #include "SIZE.h"
31     #include "EEPARAMS.h"
32     #include "PARAMS.h"
33    
34     C !INPUT/OUTPUT PARAMETERS:
35     C === Routine arguments ===
36     C myThid - Number of this instances
37     INTEGER myThid
38    
39     C !LOCAL VARIABLES:
40     C === Local variables ===
41     C msgBuf - Informational/error meesage buffer
42     C iUnit - Work variable for IO unit number
43     CHARACTER*(MAX_LEN_MBUF) msgBuf
44     INTEGER iUnit
45    
46     C data.pkg namelists
47     NAMELIST /PACKAGES/
48     & useOPPS,
49     & usePP81,
50     & useMY82,
51     & useGGL90,
52     & useKPP,
53     & useGMRedi,
54     & useOBCS,
55     & useAIM,
56     & useLand,
57     & useGrdchk,
58     & useECCO,
59     & useSHAP_FILT,
60     & useZONAL_FILT,
61     & useFLT,
62     & usePTRACERS,
63     & useGCHEM,
64     & useRBCS,
65     & useOffLine,
66     & useSBO,
67     & useSEAICE,
68     & useShelfIce,
69     & useThSIce,
70     & useBulkForce,
71     & useEBM,
72     & usefizhi,
73     & usegridalt,
74     & useDiagnostics,
75     & useMNC,
76     & useREGRID,
77     & useRunClock,
78     & useMATRIX,
79     & useEMBED_FILES,
80     & useMYPACKAGE
81     CEOP
82    
83     _BEGIN_MASTER(myThid)
84    
85     WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: opening data.pkg'
86     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
87     & SQUEEZE_RIGHT , 1)
88    
89    
90     CALL OPEN_COPY_DATA_FILE(
91     I 'data.pkg', 'PACKAGES_BOOT',
92     O iUnit,
93     I myThid )
94    
95     C-- Default package configuration
96     useOPPS =.FALSE.
97     usePP81 =.FALSE.
98     useMY82 =.FALSE.
99     useGGL90 =.FALSE.
100     useKPP =.FALSE.
101     useGMRedi =.FALSE.
102     useOBCS =.FALSE.
103     useAIM =.FALSE.
104     useLand =.FALSE.
105     useCAL =.FALSE.
106     useEXF =.FALSE.
107     useEBM =.FALSE.
108     useGrdchk =.FALSE.
109     useECCO =.FALSE.
110     useSHAP_FILT =.FALSE.
111     useZONAL_FILT =.FALSE.
112     useFLT =.FALSE.
113     usePTRACERS =.FALSE.
114     useGCHEM =.FALSE.
115     useRBCS =.FALSE.
116     useOffLine =.FALSE.
117     useMATRIX =.FALSE.
118     useSBO =.FALSE.
119     useSEAICE =.FALSE.
120     useShelfIce =.FALSE.
121     useThSIce =.FALSE.
122     useBulkForce =.FALSE.
123     usefizhi =.FALSE.
124     usegridalt =.FALSE.
125     useDiagnostics =.FALSE.
126     useMNC =.FALSE.
127     useRunClock =.FALSE.
128     useREGRID =.FALSE.
129     useMYPACKAGE =.FALSE.
130    
131     C-- Read parameters from open data file
132     READ(UNIT=iUnit,NML=PACKAGES)
133    
134    
135     WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: finished reading data.pkg'
136     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
137     & SQUEEZE_RIGHT , 1)
138    
139     C-- Close the open data file
140     CLOSE(iUnit)
141     _END_MASTER(myThid)
142    
143     C-- packages with hard-coded switch
144     #ifdef ALLOW_EXF
145     useEXF = .TRUE.
146     #endif
147     #ifdef ALLOW_CAL
148     useCAL = .TRUE.
149     #endif
150    
151     C-- Everyone else must wait for the parameters to be loaded
152     _BARRIER
153    
154     RETURN
155     END

  ViewVC Help
Powered by ViewVC 1.1.22