| 1 |
C $Header$ |
C $Header$ |
| 2 |
C $Name$ |
C $Name$ |
| 3 |
|
|
| 4 |
|
#include "PACKAGES_CONFIG.h" |
| 5 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
| 6 |
|
|
| 7 |
CBOP |
CBOP |
| 29 |
C | |
C | |
| 30 |
C |-- INI_PARMS |
C |-- INI_PARMS |
| 31 |
C | |
C | |
| 32 |
|
C |-- PACKAGES_BOOT |
| 33 |
|
C | |
| 34 |
|
C |-- PACKAGES_READPARMS |
| 35 |
|
C | | |
| 36 |
|
C | | - MNC_INIT + MNC_CW_INIT |
| 37 |
|
C | | |
| 38 |
|
C | | - ${PKG}_READPARMS |
| 39 |
|
C | |
| 40 |
|
C |-- INI_MODEL_IO |
| 41 |
|
C | |
| 42 |
C |-- MON_INIT |
C |-- MON_INIT |
| 43 |
C | |
C | |
| 44 |
C |-- INI_GRID |
C |-- INI_GRID |
| 45 |
C | |
C | |
| 46 |
C |-- INI_DEPTHS |
C |-- INI_EOS |
| 47 |
C | |
C | |
| 48 |
C |-- INI_MASKS_ETC |
C |-- INI_PHIREF |
| 49 |
C | |
C | |
| 50 |
C |-- INI_LINEAR_PHSURF |
C |-- INI_DEPTHS |
|
C | |
|
|
C |-- INI_CORI |
|
| 51 |
C | |
C | |
| 52 |
C |-- PACKAGES_BOOT |
C |-- INI_MASKS_ETC |
| 53 |
C | |
C | |
| 54 |
C |-- PACKAGES_READPARMS |
C |-- PACKAGES_INIT_FIXED |
| 55 |
C | |
C | |
| 56 |
C |-- PACKAGES_CHECK |
C |-- PACKAGES_CHECK |
| 57 |
C | |
C | |
| 58 |
C |-- PACKAGES_INIT_FIXED |
C |-- INI_LINEAR_PHSURF |
| 59 |
C | |
C | |
| 60 |
C |-- ZONAL_FILT_INIT |
C |-- INI_CORI |
| 61 |
C | |
C | |
| 62 |
C |-- INI_CG2D |
C |-- INI_CG2D |
| 63 |
C | |
C | |
| 64 |
C |-- INI_CG3D |
C |-- INI_CG3D |
| 65 |
C | |
C | |
| 66 |
|
C |-- CONFIG_CHECK |
| 67 |
|
C | |
| 68 |
C |-- CONFIG_SUMMARY |
C |-- CONFIG_SUMMARY |
| 69 |
|
C | |
| 70 |
|
C |-- WRITE_GRID |
| 71 |
|
C | |
| 72 |
|
C |-- CPL_EXCH_CONFIGS |
| 73 |
|
|
| 74 |
C !USES: |
C !USES: |
| 75 |
IMPLICIT NONE |
IMPLICIT NONE |
| 89 |
CALL INI_PARMS( myThid ) |
CALL INI_PARMS( myThid ) |
| 90 |
_BARRIER |
_BARRIER |
| 91 |
|
|
| 92 |
#ifndef EXCLUDE_MONITOR |
C-- Configure packages |
| 93 |
|
CALL PACKAGES_BOOT( myThid ) |
| 94 |
|
|
| 95 |
|
C-- Read configuration parameters for packages |
| 96 |
|
CALL PACKAGES_READPARMS( myThid ) |
| 97 |
|
|
| 98 |
|
C-- Write units/set precision/etc for I/O of variables/arrays belonging |
| 99 |
|
C to the core dynamical model |
| 100 |
|
CALL INI_MODEL_IO( myThid ) |
| 101 |
|
|
| 102 |
|
#ifdef ALLOW_MONITOR |
| 103 |
C-- Initialise MONITOR I/O streams so we can report config. info |
C-- Initialise MONITOR I/O streams so we can report config. info |
| 104 |
CALL MON_INIT( myThid ) |
CALL MON_INIT( myThid ) |
| 105 |
_BARRIER |
_BARRIER |
| 106 |
#endif |
#endif |
| 107 |
|
|
|
|
|
| 108 |
C-- Set model grid. |
C-- Set model grid. |
| 109 |
C Variables defining model grid spacing are defined. |
C Variables defining model grid spacing are defined. |
| 110 |
CALL INI_GRID( myThid ) |
CALL INI_GRID( myThid ) |
| 111 |
_BARRIER |
_BARRIER |
| 112 |
|
|
| 113 |
|
C-- Set equation of state parameters. |
| 114 |
|
CALL INI_EOS( myThid ) |
| 115 |
|
_BARRIER |
| 116 |
|
|
| 117 |
|
C-- Set pressure/geopotential reference profile |
| 118 |
|
CALL INI_PHIREF( myThid ) |
| 119 |
|
_BARRIER |
| 120 |
|
|
| 121 |
C-- Initialise map of depths |
C-- Initialise map of depths |
| 122 |
CALL INI_DEPTHS( myThid ) |
CALL INI_DEPTHS( myThid ) |
| 123 |
_BARRIER |
_BARRIER |
| 127 |
CALL INI_MASKS_ETC( myThid ) |
CALL INI_MASKS_ETC( myThid ) |
| 128 |
_BARRIER |
_BARRIER |
| 129 |
|
|
| 130 |
C-- Set Bo_surf => define the Linear Relation: Phi_surf(eta) |
C-- Call fixed data initialization phase of packages |
| 131 |
CALL INI_LINEAR_PHISURF( myThid ) |
CALL PACKAGES_INIT_FIXED( myThid ) |
|
|
|
|
C-- Set coriolis operators |
|
|
CALL INI_CORI( myThid ) |
|
|
|
|
|
C-- Configure packages |
|
|
CALL PACKAGES_BOOT( myThid ) |
|
|
|
|
|
C-- Read configuration parameters for packages |
|
|
CALL PACKAGES_READPARMS( myThid ) |
|
| 132 |
|
|
| 133 |
C-- Check dependances between packages |
C-- Check dependances between packages |
| 134 |
CALL PACKAGES_CHECK( myThid ) |
CALL PACKAGES_CHECK( myThid ) |
| 135 |
|
|
| 136 |
C-- Call fixed data initialization phase of packages |
C-- Set Bo_surf => define the Linear Relation: Phi_surf(eta) |
| 137 |
CALL PACKAGES_INIT_FIXED( myThid ) |
CALL INI_LINEAR_PHISURF( myThid ) |
| 138 |
|
|
| 139 |
#ifdef ALLOW_ZONAL_FILT |
C-- Set coriolis operators |
| 140 |
C-- Latitude circle filter initialisation |
CALL INI_CORI( myThid ) |
|
CALL ZONAL_FILT_INIT(myThid) |
|
|
_BARRIER |
|
|
#endif |
|
| 141 |
|
|
| 142 |
C-- Set laplace operators for use in 2D conjugate gradient solver. |
C-- Set laplace operators for use in 2D conjugate gradient solver. |
| 143 |
CALL INI_CG2D( myThid ) |
CALL INI_CG2D( myThid ) |
| 144 |
|
|
| 145 |
#ifdef ALLOW_NONHYDROSTATIC |
#ifdef ALLOW_NONHYDROSTATIC |
| 146 |
C-- Set laplace operators for use in 3D conjugate gradient solver. |
C-- Set laplace operators for use in 3D conjugate gradient solver. |
| 147 |
|
ceh3 needs an IF ( useNONHYDROSTATIC ) THEN |
| 148 |
CALL INI_CG3D( myThid ) |
CALL INI_CG3D( myThid ) |
| 149 |
#endif |
#endif |
| 150 |
|
|
| 151 |
|
C-- Check parameters and model cofiguration |
| 152 |
|
CALL CONFIG_CHECK( myThid ) |
| 153 |
|
|
| 154 |
C-- Finally summarise the model cofiguration |
C-- Finally summarise the model cofiguration |
| 155 |
CALL CONFIG_SUMMARY( myThid ) |
CALL CONFIG_SUMMARY( myThid ) |
| 156 |
|
|
| 157 |
|
C-- Write grid data and geometry arrays |
| 158 |
|
IF ( debugLevel.GE.debLevA .OR. |
| 159 |
|
& startTime.EQ.baseTime ) CALL WRITE_GRID( myThid ) |
| 160 |
|
|
| 161 |
|
#ifdef COMPONENT_MODULE |
| 162 |
|
C-- Post component-model configuration information to coupler |
| 163 |
|
C and get config. info for other component(s). |
| 164 |
|
IF ( useCoupler ) CALL CPL_EXCH_CONFIGS( myThid ) |
| 165 |
|
#endif |
| 166 |
|
|
| 167 |
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
| 168 |
|
|
| 169 |
|
RETURN |
| 170 |
END |
END |