| 1 |
edhill |
1.20 |
C $Header: /u/u3/gcmpack/MITgcm/model/src/packages_init_fixed.F,v 1.19 2004/02/26 19:41:48 molod Exp $ |
| 2 |
adcroft |
1.3 |
C $Name: $ |
| 3 |
adcroft |
1.2 |
|
| 4 |
edhill |
1.11 |
#include "PACKAGES_CONFIG.h" |
| 5 |
adcroft |
1.2 |
#include "CPP_OPTIONS.h" |
| 6 |
|
|
|
| 7 |
cnh |
1.4 |
CBOP |
| 8 |
|
|
C !ROUTINE: PACKAGES_INIT_FIXED |
| 9 |
|
|
C !INTERFACE: |
| 10 |
adcroft |
1.2 |
SUBROUTINE PACKAGES_INIT_FIXED( myThid ) |
| 11 |
cnh |
1.4 |
|
| 12 |
|
|
C !DESCRIPTION: \bv |
| 13 |
|
|
C *==========================================================* |
| 14 |
|
|
C | SUBROUTINE PACKAGES_INIT_FIXED |
| 15 |
|
|
C | o Does initialisation of package-related fixed fields |
| 16 |
|
|
C *==========================================================* |
| 17 |
|
|
C \ev |
| 18 |
|
|
|
| 19 |
|
|
C !CALLING SEQUENCE: |
| 20 |
|
|
C PACKAGES_INIT_FIXED |
| 21 |
|
|
C | |
| 22 |
jmc |
1.5 |
C |-- GAD_INIT |
| 23 |
|
|
C | |
| 24 |
cnh |
1.4 |
C |-- OBCS_INIT_FIXED |
| 25 |
|
|
C | |
| 26 |
|
|
C |-- FLT_INIT |
| 27 |
jmc |
1.6 |
C | |
| 28 |
|
|
C |-- ZONAL_FILT_INIT |
| 29 |
jmc |
1.7 |
C | |
| 30 |
|
|
C |-- AIM_INITIALISE |
| 31 |
|
|
C | |
| 32 |
|
|
C |-- LAND_INITIALISE |
| 33 |
cnh |
1.4 |
|
| 34 |
|
|
C !USES: |
| 35 |
adcroft |
1.2 |
IMPLICIT NONE |
| 36 |
|
|
C === Global variables === |
| 37 |
|
|
#include "SIZE.h" |
| 38 |
|
|
#include "EEPARAMS.h" |
| 39 |
|
|
#include "PARAMS.h" |
| 40 |
|
|
|
| 41 |
cnh |
1.4 |
C !INPUT/OUTPUT PARAMETERS: |
| 42 |
adcroft |
1.2 |
C === Routine arguments === |
| 43 |
|
|
C myThid - Number of this instances |
| 44 |
|
|
INTEGER myThid |
| 45 |
cnh |
1.4 |
CEOP |
| 46 |
jmc |
1.5 |
|
| 47 |
|
|
C-- Initialize fixed params for GAD |
| 48 |
|
|
CALL GAD_INIT( myThid ) |
| 49 |
edhill |
1.20 |
|
| 50 |
|
|
C-- Initialize MNC look-up tables |
| 51 |
|
|
#ifdef ALLOW_MNC |
| 52 |
|
|
CEH3 NEED RUN-TIME SWITCH: IF (useOBCS) THEN |
| 53 |
|
|
CALL MNC_INIT(myThid) |
| 54 |
|
|
CALL MNC_CW_INIT(myThid, sNx,sNy, OLx,OLy, nSx,nSy, nPx,nPy, Nr) |
| 55 |
|
|
|
| 56 |
|
|
CALL INI_MNC_IO(myThid) |
| 57 |
|
|
CEH3 NEED RUN-TIME SWITCH: ENDIF |
| 58 |
|
|
#endif |
| 59 |
adcroft |
1.2 |
|
| 60 |
|
|
C-- Initialize fixed arrays for OBCS |
| 61 |
|
|
#ifdef ALLOW_OBCS |
| 62 |
|
|
IF (useOBCS) THEN |
| 63 |
|
|
CALL OBCS_INIT_FIXED( myThid ) |
| 64 |
adcroft |
1.3 |
ENDIF |
| 65 |
|
|
#endif |
| 66 |
|
|
#ifdef ALLOW_FLT |
| 67 |
|
|
C-- Initialise Float positions |
| 68 |
jmc |
1.6 |
IF (useFLT) THEN |
| 69 |
adcroft |
1.3 |
CALL FLT_INIT(nIter0,startTime,myThid ) |
| 70 |
jmc |
1.6 |
_BARRIER |
| 71 |
|
|
ENDIF |
| 72 |
|
|
#endif |
| 73 |
|
|
#ifdef ALLOW_ZONAL_FILT |
| 74 |
|
|
C-- Latitude circle filter initialisation |
| 75 |
|
|
IF (useZONAL_FILT) THEN |
| 76 |
|
|
CALL ZONAL_FILT_INIT(myThid) |
| 77 |
adcroft |
1.3 |
_BARRIER |
| 78 |
adcroft |
1.2 |
ENDIF |
| 79 |
jmc |
1.7 |
#endif |
| 80 |
|
|
|
| 81 |
|
|
#ifdef ALLOW_AIM |
| 82 |
|
|
C-- Initialise & Read AIM physical parameters |
| 83 |
|
|
IF (useAIM) CALL AIM_INITIALISE( myThid ) |
| 84 |
|
|
#endif |
| 85 |
molod |
1.15 |
|
| 86 |
|
|
C AMM |
| 87 |
|
|
#ifdef ALLOW_GRIDALT |
| 88 |
|
|
C-- Initialise GRIDALT parameters - the alternative grid |
| 89 |
|
|
IF (useGRIDALT) CALL GRIDALT_INITIALISE( myThid ) |
| 90 |
|
|
#endif |
| 91 |
|
|
|
| 92 |
|
|
#ifdef ALLOW_FIZHI |
| 93 |
|
|
C-- Initialise & Read FIZHI physical parameters |
| 94 |
|
|
IF (useFIZHI) CALL FIZHI_INIT_FIXED( myThid ) |
| 95 |
molod |
1.16 |
#endif |
| 96 |
|
|
C AMM |
| 97 |
|
|
|
| 98 |
jmc |
1.7 |
#ifdef ALLOW_LAND |
| 99 |
|
|
C-- Initialise & Read Land package parameters |
| 100 |
|
|
IF (useLand) CALL LAND_INITIALISE( myThid ) |
| 101 |
heimbach |
1.8 |
#endif |
| 102 |
|
|
|
| 103 |
heimbach |
1.14 |
#if (defined (ALLOW_ECCO) && defined (ALLOW_COST)) |
| 104 |
|
|
C-- Initialise ecco-specific cost function. |
| 105 |
|
|
C-- This needs to preceed the call ctrl_init |
| 106 |
|
|
C-- in order to provide the weight files |
| 107 |
|
|
IF (useECCO) CALL ECCO_COST_INIT_FIXED( myThid ) |
| 108 |
|
|
#endif |
| 109 |
|
|
|
| 110 |
heimbach |
1.13 |
#ifdef ALLOW_AUTODIFF |
| 111 |
heimbach |
1.8 |
C-- Initialise the control variables |
| 112 |
|
|
CALL CTRL_INIT( myThid ) |
| 113 |
|
|
_BARRIER |
| 114 |
adcroft |
1.2 |
#endif |
| 115 |
stephd |
1.10 |
|
| 116 |
|
|
#ifdef ALLOW_PTRACERS |
| 117 |
|
|
#ifdef ALLOW_GCHEM |
| 118 |
|
|
IF (usePTRACERS) then |
| 119 |
|
|
call GCHEM_INIT_FIXED(mythid) |
| 120 |
|
|
ENDIF |
| 121 |
|
|
#endif |
| 122 |
|
|
#endif |
| 123 |
|
|
|
| 124 |
molod |
1.18 |
CAMM |
| 125 |
|
|
#ifdef ALLOW_DIAGNOSTICS |
| 126 |
|
|
IF (usediagnostics) then |
| 127 |
molod |
1.19 |
call diagnostics_initialise(mythid) |
| 128 |
molod |
1.18 |
ENDIF |
| 129 |
|
|
#endif |
| 130 |
|
|
CAMM |
| 131 |
adcroft |
1.2 |
|
| 132 |
|
|
RETURN |
| 133 |
|
|
END |