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

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

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


Revision 1.11 - (hide annotations) (download)
Mon Mar 4 17:26:41 2002 UTC (22 years, 3 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint44f_post, checkpoint44h_pre, checkpoint45a_post, checkpoint44g_post, checkpoint45b_post, checkpoint44h_post, checkpoint45
Changes since 1.10: +5 -1 lines
Added PTRACERS package

This allows an arbitrary number of passive tracers to be integrated
forward simultaneously with the dynamicaly model.
 + Implemented so far:
    - basic forward algorithm (time-stepping, advection, diffusion, convection)
    - I/O and checkpointing
    - GM/Redi  *but*  using the GM/Redi coefficient of Salt
 + Not implemented so far:
    - KPP
    - OBCS
 + No specific example supplied (yet) but global_ocean.90x40x15 has the
   necessary data.ptracer file. Simply use -enable=ptracers and uncomment
   line in data.pkg. PTRACER01 then reproduces Salt exactly.
 + This package is disabled by default since it increases storage.

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

  ViewVC Help
Powered by ViewVC 1.1.22