1 |
stephd |
1.10 |
C $Header: /u/gcmpack/MITgcm/model/src/packages_init_fixed.F,v 1.9 2003/06/23 22:32:02 heimbach Exp $ |
2 |
adcroft |
1.3 |
C $Name: $ |
3 |
adcroft |
1.2 |
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
|
6 |
cnh |
1.4 |
CBOP |
7 |
|
|
C !ROUTINE: PACKAGES_INIT_FIXED |
8 |
|
|
C !INTERFACE: |
9 |
adcroft |
1.2 |
SUBROUTINE PACKAGES_INIT_FIXED( myThid ) |
10 |
cnh |
1.4 |
|
11 |
|
|
C !DESCRIPTION: \bv |
12 |
|
|
C *==========================================================* |
13 |
|
|
C | SUBROUTINE PACKAGES_INIT_FIXED |
14 |
|
|
C | o Does initialisation of package-related fixed fields |
15 |
|
|
C *==========================================================* |
16 |
|
|
C \ev |
17 |
|
|
|
18 |
|
|
C !CALLING SEQUENCE: |
19 |
|
|
C PACKAGES_INIT_FIXED |
20 |
|
|
C | |
21 |
jmc |
1.5 |
C |-- GAD_INIT |
22 |
|
|
C | |
23 |
cnh |
1.4 |
C |-- OBCS_INIT_FIXED |
24 |
|
|
C | |
25 |
|
|
C |-- FLT_INIT |
26 |
jmc |
1.6 |
C | |
27 |
|
|
C |-- ZONAL_FILT_INIT |
28 |
jmc |
1.7 |
C | |
29 |
|
|
C |-- AIM_INITIALISE |
30 |
|
|
C | |
31 |
|
|
C |-- LAND_INITIALISE |
32 |
cnh |
1.4 |
|
33 |
|
|
C !USES: |
34 |
adcroft |
1.2 |
IMPLICIT NONE |
35 |
|
|
C === Global variables === |
36 |
|
|
#include "SIZE.h" |
37 |
|
|
#include "EEPARAMS.h" |
38 |
|
|
#include "PARAMS.h" |
39 |
|
|
|
40 |
cnh |
1.4 |
C !INPUT/OUTPUT PARAMETERS: |
41 |
adcroft |
1.2 |
C === Routine arguments === |
42 |
|
|
C myThid - Number of this instances |
43 |
|
|
INTEGER myThid |
44 |
cnh |
1.4 |
CEOP |
45 |
jmc |
1.5 |
|
46 |
|
|
C-- Initialize fixed params for GAD |
47 |
|
|
CALL GAD_INIT( myThid ) |
48 |
adcroft |
1.2 |
|
49 |
|
|
C-- Initialize fixed arrays for OBCS |
50 |
|
|
#ifdef ALLOW_OBCS |
51 |
|
|
IF (useOBCS) THEN |
52 |
|
|
CALL OBCS_INIT_FIXED( myThid ) |
53 |
adcroft |
1.3 |
ENDIF |
54 |
|
|
#endif |
55 |
|
|
#ifdef ALLOW_FLT |
56 |
|
|
C-- Initialise Float positions |
57 |
jmc |
1.6 |
IF (useFLT) THEN |
58 |
adcroft |
1.3 |
CALL FLT_INIT(nIter0,startTime,myThid ) |
59 |
jmc |
1.6 |
_BARRIER |
60 |
|
|
ENDIF |
61 |
|
|
#endif |
62 |
|
|
#ifdef ALLOW_ZONAL_FILT |
63 |
|
|
C-- Latitude circle filter initialisation |
64 |
|
|
IF (useZONAL_FILT) THEN |
65 |
|
|
CALL ZONAL_FILT_INIT(myThid) |
66 |
adcroft |
1.3 |
_BARRIER |
67 |
adcroft |
1.2 |
ENDIF |
68 |
jmc |
1.7 |
#endif |
69 |
|
|
|
70 |
|
|
#ifdef ALLOW_AIM |
71 |
|
|
C-- Initialise & Read AIM physical parameters |
72 |
|
|
IF (useAIM) CALL AIM_INITIALISE( myThid ) |
73 |
|
|
#endif |
74 |
|
|
|
75 |
|
|
#ifdef ALLOW_LAND |
76 |
|
|
C-- Initialise & Read Land package parameters |
77 |
|
|
IF (useLand) CALL LAND_INITIALISE( myThid ) |
78 |
heimbach |
1.8 |
#endif |
79 |
|
|
|
80 |
|
|
#if (defined (ALLOW_ADJOINT_RUN) || \ |
81 |
|
|
defined (ALLOW_TANGENTLINEAR_RUN) || \ |
82 |
|
|
defined (ALLOW_ECCO_OPTIMIZATION)) |
83 |
|
|
C-- Initialise the control variables |
84 |
|
|
CALL CTRL_INIT( myThid ) |
85 |
|
|
_BARRIER |
86 |
|
|
#endif |
87 |
|
|
|
88 |
|
|
#ifdef INCLUDE_ECCO_PACKAGE |
89 |
heimbach |
1.9 |
# ifdef ALLOW_COST |
90 |
heimbach |
1.8 |
C-- Initialise ecco-specific cost function. |
91 |
heimbach |
1.9 |
IF (useECCO) CALL COST_INIT_FIXED( myThid ) |
92 |
|
|
# endif |
93 |
adcroft |
1.2 |
#endif |
94 |
stephd |
1.10 |
|
95 |
|
|
#ifdef ALLOW_PTRACERS |
96 |
|
|
#ifdef ALLOW_GCHEM |
97 |
|
|
IF (usePTRACERS) then |
98 |
|
|
call GCHEM_INIT_FIXED(mythid) |
99 |
|
|
ENDIF |
100 |
|
|
#endif |
101 |
|
|
#endif |
102 |
|
|
|
103 |
adcroft |
1.2 |
|
104 |
|
|
RETURN |
105 |
|
|
END |