|
C $Header$ |
|
|
C $Name$ |
|
1 |
|
|
2 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
3 |
|
|
4 |
|
CBOP |
5 |
|
C !ROUTINE: PACKAGES_INIT_VARIABLES |
6 |
|
C !INTERFACE: |
7 |
SUBROUTINE PACKAGES_INIT_VARIABLES( myThid ) |
SUBROUTINE PACKAGES_INIT_VARIABLES( myThid ) |
|
C /==========================================================\ |
|
|
C | SUBROUTINE PACKAGES_INIT_VARIABLES | |
|
|
C | o Does initialisation of package-related variable data | |
|
|
C |==========================================================| |
|
|
C \==========================================================/ |
|
|
IMPLICIT NONE |
|
8 |
|
|
9 |
|
C !DESCRIPTION: \bv |
10 |
|
C *==========================================================* |
11 |
|
C | SUBROUTINE PACKAGES_INIT_VARIABLES |
12 |
|
C | o Does initialisation of package-related variable data |
13 |
|
C *==========================================================* |
14 |
|
C \ev |
15 |
|
|
16 |
|
C !CALLING SEQUENCE: |
17 |
|
C PACKAGES_INIT_VARIABLES |
18 |
|
C | |
19 |
|
C |-- GMREDI_INIT |
20 |
|
C | |
21 |
|
C |-- KPP_INIT |
22 |
|
C |-- KPP_OPEN_DIAGS |
23 |
|
C | |
24 |
|
C |-- SEAICE_INIT |
25 |
|
C | |
26 |
|
C |-- OBCS_INIT_VARIABLES |
27 |
|
C | |
28 |
|
C |-- CTRL_MAP_INI |
29 |
|
C | |
30 |
|
C |-- COST_INIT |
31 |
|
C | |
32 |
|
C |-- ECCO_INIT |
33 |
|
C | |
34 |
|
C |-- INI_FORCING |
35 |
|
|
36 |
|
C !USES: |
37 |
|
IMPLICIT NONE |
38 |
C === Global variables === |
C === Global variables === |
39 |
#include "SIZE.h" |
#include "SIZE.h" |
40 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
41 |
#include "PARAMS.h" |
#include "PARAMS.h" |
42 |
|
|
43 |
|
C !INPUT/OUTPUT PARAMETERS: |
44 |
C === Routine arguments === |
C === Routine arguments === |
45 |
C myThid - Number of this instances |
C myThid - Number of this instances |
46 |
INTEGER myThid |
INTEGER myThid |
47 |
|
CEOP |
48 |
|
|
49 |
#ifdef ALLOW_GMREDI |
#ifdef ALLOW_GMREDI |
50 |
C-- Initialize GM/Redi parameterization |
C-- Initialize GM/Redi parameterization |
59 |
ENDIF |
ENDIF |
60 |
#endif |
#endif |
61 |
|
|
62 |
|
#ifdef ALLOW_SEAICE |
63 |
|
C-- Initialize SEAICE model. |
64 |
|
IF (useSEAICE) CALL SEAICE_INIT( myThid ) |
65 |
|
#endif |
66 |
|
|
67 |
#ifdef ALLOW_OBCS |
#ifdef ALLOW_OBCS |
68 |
C-- Open boundaries data |
C-- Open boundaries data |
69 |
IF (useOBCS) THEN |
IF (useOBCS) THEN |
71 |
ENDIF |
ENDIF |
72 |
#endif |
#endif |
73 |
|
|
74 |
#ifdef ALLOW_AIM |
#ifdef ALLOW_PTRACERS |
75 |
IF ( useAIM ) CALL AIM_INIT( mythid ) |
IF ( usePTRACERS ) CALL PTRACERS_INIT( mythid ) |
76 |
#endif |
#endif |
77 |
|
|
78 |
#ifdef ALLOW_MIT_ADJOINT_RUN |
#if (defined (ALLOW_ADJOINT_RUN) || defined (ALLOW_TANGENTLINEAR_RUN)) |
79 |
c-- Map the control variables onto the model state. |
c-- Map the control variables onto the model state. |
80 |
call ctrl_map_ini( mythid ) |
call ctrl_map_ini( mythid ) |
81 |
_BARRIER |
_BARRIER |
82 |
c-- Initialise the cost function. |
#endif |
83 |
call cost_init( mythid ) |
|
84 |
_BARRIER |
#ifdef INCLUDE_EXTERNAL_FORCING_PACKAGE |
85 |
|
CALL EXF_INIT( mythid ) |
86 |
|
#else |
87 |
|
CALL INI_FORCING( mythid ) |
88 |
#endif |
#endif |
89 |
|
|
90 |
#ifdef INCLUDE_ECCO_PACKAGE |
#ifdef INCLUDE_ECCO_PACKAGE |
92 |
CALL ECCO_INIT( myThid ) |
CALL ECCO_INIT( myThid ) |
93 |
ENDIF |
ENDIF |
94 |
#else |
#else |
95 |
CALL INI_FORCING( myThid ) |
# ifdef ALLOW_COST |
96 |
|
c-- Initialise the cost function. |
97 |
|
call cost_init( mythid ) |
98 |
|
_BARRIER |
99 |
|
# endif |
100 |
#endif |
#endif |
101 |
|
|
102 |
RETURN |
RETURN |