/[MITgcm]/MITgcm_contrib/AITCZ/code/packages_boot.F
ViewVC logotype

Annotation of /MITgcm_contrib/AITCZ/code/packages_boot.F

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


Revision 1.1 - (hide annotations) (download)
Wed Aug 20 15:24:59 2003 UTC (21 years, 11 months ago) by czaja
Branch: MAIN
CVS Tags: HEAD
Initial creation of Arnaud's simple coupled simulation.

1 czaja 1.1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/packages_boot.F,v 1.7 2001/09/26 18:09:16 cnh Exp $
2     C $Name: release1_beta1 $
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     NAMELIST /PACKAGES/
47     & useKPP,
48     & useGMRedi,
49     & useOBCS,
50     & useAIM,
51     & useMITPHYS,
52     & useGrdchk,
53     & useECCO,
54     & useSHAP_FILT,
55     & useFLT
56     CEOP
57    
58     _BEGIN_MASTER(myThid)
59    
60     WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: opening data.pkg'
61     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
62     & SQUEEZE_RIGHT , 1)
63    
64    
65     CALL OPEN_COPY_DATA_FILE(
66     I 'data.pkg', 'PACKAGES_BOOT',
67     O iUnit,
68     I myThid )
69    
70     C-- Default package configuration
71     useGMRedi=.FALSE.
72     useKPP=.FALSE.
73     useOBCS=.FALSE.
74     useAIM=.FALSE.
75     useMITPHYS=.FALSE.
76     useECCO=.FALSE.
77     useSHAP_FILT=.FALSE.
78    
79     C-- Read parameters from open data file
80     READ(UNIT=iUnit,NML=PACKAGES)
81    
82    
83     WRITE(msgBuf,'(A)') ' PACKAGES_BOOT: finished reading data.pkg'
84     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
85     & SQUEEZE_RIGHT , 1)
86    
87     C-- Close the open data file
88     CLOSE(iUnit)
89     _END_MASTER(myThid)
90    
91     C-- Everyone else must wait for the parameters to be loaded
92     _BARRIER
93    
94     return
95     end
96    
97    
98    
99    
100    
101    
102    

  ViewVC Help
Powered by ViewVC 1.1.22