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