/[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.21 - (show annotations) (download)
Sat Mar 20 20:35:21 2004 UTC (20 years, 2 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint53, checkpoint52m_post, checkpoint53a_post, checkpoint52n_post, checkpoint53b_pre
Changes since 1.20: +2 -4 lines
 o read the MNC run-time params at the eeboot stage
   - mnc will be gracefully disabled if the data.mnc file does not exist
 o add look-up tables for AJA's unlimited-dim interface

1 C $Header: /u/gcmpack/MITgcm/model/src/packages_boot.F,v 1.20 2004/03/19 05:09:41 edhill 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
47 NAMELIST /PACKAGES/
48 & useKPP,
49 & useGMRedi,
50 & useOBCS,
51 & useAIM,
52 & useLand,
53 & useGrdchk,
54 & useECCO,
55 & useSHAP_FILT,
56 & useZONAL_FILT,
57 & useFLT,
58 & usePTRACERS,
59 & useSBO,
60 & useSEAICE,
61 & useBulkForce,
62 & useThSIce,
63 & usefizhi,
64 & usegridalt,
65 & usediagnostics
66
67
68 CEOP
69
70 _BEGIN_MASTER(myThid)
71
72 WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: opening data.pkg'
73 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
74 & SQUEEZE_RIGHT , 1)
75
76
77 CALL OPEN_COPY_DATA_FILE(
78 I 'data.pkg', 'PACKAGES_BOOT',
79 O iUnit,
80 I myThid )
81
82 C-- Default package configuration
83 useKPP=.FALSE.
84 useGMRedi=.FALSE.
85 useOBCS=.FALSE.
86 useAIM=.FALSE.
87 useLand=.FALSE.
88 useGrdchk=.FALSE.
89 useECCO=.FALSE.
90 useSHAP_FILT=.FALSE.
91 useZONAL_FILT=.FALSE.
92 useFLT=.FALSE.
93 usePTRACERS=.FALSE.
94 useSBO=.FALSE.
95 useSeaIce=.FALSE.
96 useBulkForce=.FALSE.
97 useThSIce=.FALSE.
98 usefizhi=.FALSE.
99 usegridalt=.FALSE.
100 usediagnostics=.FALSE.
101
102 C-- Read parameters from open data file
103 READ(UNIT=iUnit,NML=PACKAGES)
104
105
106 WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: finished reading data.pkg'
107 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
108 & SQUEEZE_RIGHT , 1)
109
110 C-- Close the open data file
111 CLOSE(iUnit)
112 _END_MASTER(myThid)
113
114 C-- Everyone else must wait for the parameters to be loaded
115 _BARRIER
116
117 RETURN
118 END

  ViewVC Help
Powered by ViewVC 1.1.22