/[MITgcm]/MITgcm/model/src/packages_init_fixed.F
ViewVC logotype

Annotation of /MITgcm/model/src/packages_init_fixed.F

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


Revision 1.25 - (hide annotations) (download)
Wed Jul 7 22:23:12 2004 UTC (19 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint54d_post, checkpoint54e_post, checkpoint54b_post, checkpoint54c_post
Changes since 1.24: +17 -3 lines
needs valid U,V in halo region for multi-Dim-Advec; do Exch(U,V) if staggerTimeStep

1 jmc 1.25 C $Header: /u/gcmpack/MITgcm/model/src/packages_init_fixed.F,v 1.24 2004/03/29 22:14:49 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 jmc 1.25 C |-- GRIDALT_INITIALISE
33     C |
34     C |-- FIZHI_INIT_FIXED
35     C |
36 jmc 1.7 C |-- LAND_INITIALISE
37 jmc 1.25 C |
38     C |-- ECCO_COST_INIT_FIXED
39     C |
40     C |-- CTRL_INIT
41     C |
42     C |-- GCHEM_INIT_FIXED
43     C |
44     C |-- DIAGNOSTICS_INITIALISE
45 cnh 1.4
46     C !USES:
47 adcroft 1.2 IMPLICIT NONE
48     C === Global variables ===
49     #include "SIZE.h"
50     #include "EEPARAMS.h"
51     #include "PARAMS.h"
52    
53 cnh 1.4 C !INPUT/OUTPUT PARAMETERS:
54 adcroft 1.2 C === Routine arguments ===
55     C myThid - Number of this instances
56     INTEGER myThid
57 cnh 1.4 CEOP
58 edhill 1.21
59     C-- Initialize fixed params for GAD
60     CALL GAD_INIT( myThid )
61 adcroft 1.2
62     C-- Initialize fixed arrays for OBCS
63     #ifdef ALLOW_OBCS
64     IF (useOBCS) THEN
65     CALL OBCS_INIT_FIXED( myThid )
66 adcroft 1.3 ENDIF
67     #endif
68     #ifdef ALLOW_FLT
69     C-- Initialise Float positions
70 jmc 1.6 IF (useFLT) THEN
71 adcroft 1.3 CALL FLT_INIT(nIter0,startTime,myThid )
72 jmc 1.6 _BARRIER
73     ENDIF
74     #endif
75     #ifdef ALLOW_ZONAL_FILT
76     C-- Latitude circle filter initialisation
77     IF (useZONAL_FILT) THEN
78     CALL ZONAL_FILT_INIT(myThid)
79 adcroft 1.3 _BARRIER
80 adcroft 1.2 ENDIF
81 jmc 1.7 #endif
82    
83     #ifdef ALLOW_AIM
84     C-- Initialise & Read AIM physical parameters
85     IF (useAIM) CALL AIM_INITIALISE( myThid )
86     #endif
87 molod 1.15
88     C AMM
89     #ifdef ALLOW_GRIDALT
90     C-- Initialise GRIDALT parameters - the alternative grid
91 molod 1.24 IF (useGRIDALT) then
92     CALL TIMER_START('GRIDALT_INITIALISE [PACKAGES_INIT_F]',mythid)
93     CALL GRIDALT_INITIALISE( myThid )
94     CALL TIMER_STOP ('GRIDALT_INITIALISE [PACKAGES_INIT_F]',mythid)
95     ENDIF
96    
97 molod 1.15 #endif
98    
99     #ifdef ALLOW_FIZHI
100     C-- Initialise & Read FIZHI physical parameters
101     IF (useFIZHI) CALL FIZHI_INIT_FIXED( myThid )
102 molod 1.16 #endif
103     C AMM
104    
105 jmc 1.7 #ifdef ALLOW_LAND
106     C-- Initialise & Read Land package parameters
107     IF (useLand) CALL LAND_INITIALISE( myThid )
108 heimbach 1.8 #endif
109    
110 heimbach 1.14 #if (defined (ALLOW_ECCO) && defined (ALLOW_COST))
111     C-- Initialise ecco-specific cost function.
112     C-- This needs to preceed the call ctrl_init
113     C-- in order to provide the weight files
114     IF (useECCO) CALL ECCO_COST_INIT_FIXED( myThid )
115     #endif
116    
117 heimbach 1.13 #ifdef ALLOW_AUTODIFF
118 heimbach 1.8 C-- Initialise the control variables
119     CALL CTRL_INIT( myThid )
120     _BARRIER
121 adcroft 1.2 #endif
122 stephd 1.10
123     #ifdef ALLOW_PTRACERS
124 jmc 1.25 IF (usePTRACERS) CALL PTRACERS_INITIALISE(mythid)
125     #endif
126    
127     #ifdef ALLOW_PTRACERS
128 stephd 1.10 #ifdef ALLOW_GCHEM
129     IF (usePTRACERS) then
130     call GCHEM_INIT_FIXED(mythid)
131     ENDIF
132     #endif
133     #endif
134    
135 molod 1.18 CAMM
136     #ifdef ALLOW_DIAGNOSTICS
137     IF (usediagnostics) then
138 molod 1.19 call diagnostics_initialise(mythid)
139 molod 1.18 ENDIF
140     #endif
141     CAMM
142 adcroft 1.2
143     RETURN
144     END

  ViewVC Help
Powered by ViewVC 1.1.22