/[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.13 - (hide annotations) (download)
Sat Dec 28 10:11:10 2002 UTC (21 years, 5 months ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint48e_post, checkpoint48b_post, checkpoint48c_pre, checkpoint48d_pre, checkpoint47i_post, checkpoint48d_post, checkpoint47g_post, checkpoint48a_post, checkpoint47j_post, checkpoint48c_post, checkpoint47f_post, checkpoint48, checkpoint47h_post
Changes since 1.12: +1 -2 lines
checkpoint47f_post
Merging from release1_p10:
o modifications for using pkg/exf with pkg/seaice
  - pkg/seaice CPP options SEAICE_EXTERNAL_FORCING
    and SEAICE_EXTERNAL_FLUXES
  - pkg/exf CPP options EXF_READ_EVAP and
    EXF_NO_BULK_COMPUTATIONS
  - usage examples are Experiments 8 and 9 in
    verification/lab_sea/README
  - verification/lab_sea default experiment now uses
    pkg/gmredi, pkg/kpp, pkg/seaice, and pkg/exf

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

  ViewVC Help
Powered by ViewVC 1.1.22