/[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.15 - (show annotations) (download)
Thu Jun 12 18:21:34 2003 UTC (21 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint51o_pre, checkpoint51l_post, checkpoint51, checkpoint52, checkpoint51f_post, checkpoint51d_post, checkpoint51t_post, checkpoint51n_post, checkpoint51s_post, checkpoint51j_post, checkpoint51n_pre, checkpoint52b_pre, checkpoint51l_pre, checkpoint51q_post, checkpoint51b_pre, checkpoint51h_pre, branchpoint-genmake2, checkpoint51r_post, checkpoint51i_post, checkpoint51b_post, checkpoint51c_post, checkpoint52a_pre, checkpoint50h_post, checkpoint50i_post, checkpoint51i_pre, checkpoint51e_post, checkpoint51o_post, checkpoint51f_pre, checkpoint52a_post, checkpoint51g_post, ecco_c52_e35, checkpoint51m_post, checkpoint51a_post, checkpoint51p_post, checkpoint51u_post
Branch point for: branch-genmake2, branch-nonh, tg2-branch, checkpoint51n_branch
Changes since 1.14: +5 -3 lines
add new package "land" ;
move CALL AIM_INITIALISE from packages_readparms.F to packages_init_fixed.F

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

  ViewVC Help
Powered by ViewVC 1.1.22