/[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.6 - (hide annotations) (download)
Thu Sep 13 17:43:55 2001 UTC (22 years, 8 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40
Changes since 1.5: +4 -3 lines
Added package "flt".
 o pkg/flt
 o verification/flt_example
 o visualization of trajectories supplied
 o works but output not available to testscript

1 adcroft 1.6 C $Header: /u/gcmpack/models/MITgcmUV/model/src/packages_boot.F,v 1.5 2001/07/13 14:26:57 heimbach Exp $
2     C $Name: $
3 heimbach 1.1
4     #include "CPP_OPTIONS.h"
5    
6     SUBROUTINE PACKAGES_BOOT( myThid )
7     C /==========================================================\
8     C | SUBROUTINE PACKAGES_BOOT |
9 adcroft 1.2 C | o Routine to parse runtime package selection file |
10 heimbach 1.1 C |==========================================================|
11 adcroft 1.2 C | Routine reads a flat file which contains a single flag |
12     C | for each known "package". Flag can enables runtime |
13     C | activation or deactivation of a package. The data is read|
14     C | from a file called data.pkg. |
15     C | Note - If a runtime activation flag is set on but the |
16     C | package code was not included in the build then |
17     C | the default behavior is to stop with an error. |
18 heimbach 1.1 C \==========================================================/
19     IMPLICIT NONE
20    
21     C === Global variables ===
22     #include "SIZE.h"
23     #include "EEPARAMS.h"
24     #include "PARAMS.h"
25    
26     C === Routine arguments ===
27     C myThid - Number of this instances
28     INTEGER myThid
29    
30     C-- data.pkg namelists
31     NAMELIST /PACKAGES/
32     & useKPP,
33     & useGMRedi,
34 adcroft 1.2 & useOBCS,
35 jmc 1.3 & useAIM,
36 heimbach 1.5 & useGrdchk,
37 adcroft 1.4 & useECCO,
38 adcroft 1.6 & useSHAP_FILT,
39     & useFLT
40 heimbach 1.1
41     C === Local variables ===
42     C msgBuf - Informational/error meesage buffer
43     C iUnit - Work variable for IO unit number
44     CHARACTER*(MAX_LEN_MBUF) msgBuf
45     INTEGER iUnit
46    
47     _BEGIN_MASTER(myThid)
48    
49     WRITE(msgBuf,'(A)') ' PACKAGE_INIT: opening data.pkg'
50     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
51     & SQUEEZE_RIGHT , 1)
52    
53    
54     CALL OPEN_COPY_DATA_FILE(
55     I 'data.pkg', 'PACKAGES_BOOT',
56     O iUnit,
57     I myThid )
58    
59     C-- Default package configuration
60     useGMRedi=.FALSE.
61     useKPP=.FALSE.
62 adcroft 1.2 useOBCS=.FALSE.
63 jmc 1.3 useAIM=.FALSE.
64 heimbach 1.1 useECCO=.FALSE.
65 adcroft 1.4 useSHAP_FILT=.FALSE.
66 heimbach 1.1
67     C-- Read parameters from open data file
68     READ(UNIT=iUnit,NML=PACKAGES)
69    
70    
71     WRITE(msgBuf,'(A)') ' PACKAGE_INIT: finished reading data.pkg'
72     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
73     & SQUEEZE_RIGHT , 1)
74    
75     C-- Close the open data file
76     CLOSE(iUnit)
77     _END_MASTER(myThid)
78    
79     C-- Everyone else must wait for the parameters to be loaded
80     _BARRIER
81    
82     return
83     end

  ViewVC Help
Powered by ViewVC 1.1.22