/[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.32 - (show annotations) (download)
Fri Mar 17 03:55:43 2006 UTC (18 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.31: +5 -3 lines
add on/off flag for package OFFLINE

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

  ViewVC Help
Powered by ViewVC 1.1.22