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

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

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


Revision 1.22 - (hide annotations) (download)
Fri May 14 21:08:28 2004 UTC (20 years ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint54d_post, checkpoint54, checkpoint53d_post, checkpoint54b_post, checkpoint54a_pre, checkpoint53c_post, checkpoint54a_post, checkpoint53g_post, checkpoint53f_post, checkpoint53b_post, checkpoint53d_pre, checkpoint54c_post
Changes since 1.21: +4 -2 lines
Commiting new energy balance model to repository
o package is pkg/ebm
o verif. is verification/global_ocean_ebm
o references are in ebm_driver.F
Will need long integration testing.

1 heimbach 1.22 C $Header: /u/gcmpack/MITgcm/model/src/packages_boot.F,v 1.21 2004/03/20 20:35:21 edhill Exp $
2 adcroft 1.6 C $Name: $
3 heimbach 1.1
4     #include "CPP_OPTIONS.h"
5    
6 cnh 1.7 CBOP
7     C !ROUTINE: PACKAGES_BOOT
8     C !INTERFACE:
9 heimbach 1.1 SUBROUTINE PACKAGES_BOOT( myThid )
10 cnh 1.7
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 heimbach 1.1 IMPLICIT NONE
28     C === Global variables ===
29     #include "SIZE.h"
30     #include "EEPARAMS.h"
31     #include "PARAMS.h"
32    
33 cnh 1.7 C !INPUT/OUTPUT PARAMETERS:
34 heimbach 1.1 C === Routine arguments ===
35     C myThid - Number of this instances
36     INTEGER myThid
37    
38 cnh 1.7 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 cheisey 1.11 C data.pkg namelists
46    
47 heimbach 1.1 NAMELIST /PACKAGES/
48     & useKPP,
49     & useGMRedi,
50 adcroft 1.2 & useOBCS,
51 jmc 1.3 & useAIM,
52 jmc 1.15 & useLand,
53 heimbach 1.5 & useGrdchk,
54 adcroft 1.4 & useECCO,
55 adcroft 1.6 & useSHAP_FILT,
56 jmc 1.8 & useZONAL_FILT,
57 adcroft 1.9 & useFLT,
58 heimbach 1.10 & usePTRACERS,
59 dimitri 1.14 & useSBO,
60 cheisey 1.11 & useSEAICE,
61 jmc 1.16 & useBulkForce,
62 molod 1.18 & useThSIce,
63     & usefizhi,
64 molod 1.19 & usegridalt,
65 heimbach 1.22 & usediagnostics,
66     & useEBM
67 cheisey 1.11
68    
69 cnh 1.7 CEOP
70 heimbach 1.1
71     _BEGIN_MASTER(myThid)
72    
73 cnh 1.7 WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: opening data.pkg'
74 heimbach 1.1 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
75     & SQUEEZE_RIGHT , 1)
76    
77    
78     CALL OPEN_COPY_DATA_FILE(
79     I 'data.pkg', 'PACKAGES_BOOT',
80     O iUnit,
81     I myThid )
82    
83     C-- Default package configuration
84 jmc 1.8 useKPP=.FALSE.
85 heimbach 1.1 useGMRedi=.FALSE.
86 adcroft 1.2 useOBCS=.FALSE.
87 jmc 1.3 useAIM=.FALSE.
88 jmc 1.15 useLand=.FALSE.
89 jmc 1.8 useGrdchk=.FALSE.
90 heimbach 1.1 useECCO=.FALSE.
91 adcroft 1.4 useSHAP_FILT=.FALSE.
92 jmc 1.8 useZONAL_FILT=.FALSE.
93     useFLT=.FALSE.
94 heimbach 1.10 usePTRACERS=.FALSE.
95 dimitri 1.14 useSBO=.FALSE.
96 cheisey 1.11 useSeaIce=.FALSE.
97 jmc 1.16 useBulkForce=.FALSE.
98     useThSIce=.FALSE.
99 molod 1.18 usefizhi=.FALSE.
100     usegridalt=.FALSE.
101 molod 1.19 usediagnostics=.FALSE.
102 heimbach 1.22 useEBM=.FALSE.
103 heimbach 1.1
104     C-- Read parameters from open data file
105     READ(UNIT=iUnit,NML=PACKAGES)
106    
107    
108 cnh 1.7 WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: finished reading data.pkg'
109 heimbach 1.1 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
110     & SQUEEZE_RIGHT , 1)
111    
112     C-- Close the open data file
113     CLOSE(iUnit)
114     _END_MASTER(myThid)
115    
116     C-- Everyone else must wait for the parameters to be loaded
117     _BARRIER
118    
119 jmc 1.15 RETURN
120     END

  ViewVC Help
Powered by ViewVC 1.1.22