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

Contents of /MITgcm/model/src/packages_boot.F

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


Revision 1.40 - (show annotations) (download)
Thu Apr 19 13:23:36 2007 UTC (17 years, 1 month ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint59, checkpoint59a, checkpoint59c, checkpoint59b
Changes since 1.39: +2 -5 lines
useCAL now set to .T. if useEXF=.T.

1 C $Header: /u/gcmpack/MITgcm/model/src/packages_boot.F,v 1.39 2007/04/18 23:56:06 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 & useEXF,
59 & useECCO,
60 & useSHAP_FILT,
61 & useZONAL_FILT,
62 & useFLT,
63 & usePTRACERS,
64 & useGCHEM,
65 & useRBCS,
66 & useOffLine,
67 & useSBO,
68 & useSEAICE,
69 & useShelfIce,
70 & useThSIce,
71 & useATM2D,
72 & useBulkForce,
73 & useEBM,
74 & usefizhi,
75 & usegridalt,
76 & useDiagnostics,
77 & useMNC,
78 & useREGRID,
79 & useRunClock,
80 & useMATRIX,
81 & useEMBED_FILES,
82 & useMYPACKAGE
83 CEOP
84
85 _BEGIN_MASTER(myThid)
86
87 WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: opening data.pkg'
88 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
89 & SQUEEZE_RIGHT , myThid )
90
91
92 CALL OPEN_COPY_DATA_FILE(
93 I 'data.pkg', 'PACKAGES_BOOT',
94 O iUnit,
95 I myThid )
96
97 C-- Default package configuration
98 useOPPS =.FALSE.
99 usePP81 =.FALSE.
100 useMY82 =.FALSE.
101 useGGL90 =.FALSE.
102 useKPP =.FALSE.
103 useGMRedi =.FALSE.
104 useOBCS =.FALSE.
105 useAIM =.FALSE.
106 useLand =.FALSE.
107 useCAL =.FALSE.
108 useEXF =.FALSE.
109 useEBM =.FALSE.
110 useGrdchk =.FALSE.
111 useECCO =.FALSE.
112 useSHAP_FILT =.FALSE.
113 useZONAL_FILT =.FALSE.
114 useFLT =.FALSE.
115 usePTRACERS =.FALSE.
116 useGCHEM =.FALSE.
117 useRBCS =.FALSE.
118 useOffLine =.FALSE.
119 useMATRIX =.FALSE.
120 useSBO =.FALSE.
121 useSEAICE =.FALSE.
122 useShelfIce =.FALSE.
123 useThSIce =.FALSE.
124 useATM2D =.FALSE.
125 useBulkForce =.FALSE.
126 usefizhi =.FALSE.
127 usegridalt =.FALSE.
128 useDiagnostics =.FALSE.
129 useMNC =.FALSE.
130 useRunClock =.FALSE.
131 useREGRID =.FALSE.
132 useMYPACKAGE =.FALSE.
133
134 C-- Read parameters from open data file
135 READ(UNIT=iUnit,NML=PACKAGES)
136
137
138 WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: finished reading data.pkg'
139 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
140 & SQUEEZE_RIGHT , myThid )
141
142 C-- Close the open data file
143 CLOSE(iUnit)
144
145 C-- packages with hard-coded switch
146 #ifdef ALLOW_CAL
147 IF (useEXF) useCAL = .TRUE.
148 #endif
149
150 C-- packages with an implied switch
151 useGAD = tempStepping .OR. saltStepping .OR. usePTRACERS
152
153 _END_MASTER(myThid)
154
155 C-- Everyone else must wait for the parameters to be loaded
156 _BARRIER
157
158 RETURN
159 END

  ViewVC Help
Powered by ViewVC 1.1.22