/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/code_shallow_openad/initialise_fixed.F
ViewVC logotype

Annotation of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad/initialise_fixed.F

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


Revision 1.1 - (hide annotations) (download)
Wed Jan 18 23:43:11 2006 UTC (20 years, 9 months ago) by utke
Branch: MAIN
deal with renaming

1 utke 1.1 C $Header: /u/gcmpack/MITgcm/model/src/initialise_fixed.F,v 1.44 2005/12/05 14:37:41 jmc Exp $
2     C $Name: $
3    
4     #include "PACKAGES_CONFIG.h"
5     #include "CPP_OPTIONS.h"
6    
7     CBOP
8     C !ROUTINE: INITIALISE_FIXED
9     C !INTERFACE:
10     SUBROUTINE INITIALISE_FIXED(myThid)
11    
12     C !DESCRIPTION: \bv
13     C *==========================================================*
14     C | SUBROUTINE INITIALISE_FIXED
15     C | o Routine for setting fixed model arrays such as
16     C | topography, grid, solver matrices, etc.
17     C *==========================================================*
18     C | INITIALISE_FIXED is invoked at the start of the model to
19     C | set fixed model arrays. It reads data from an input file
20     C | and from various binary files.
21     C | Each thread invokes an instance of this routine as does
22     C | each process in a multi-process parallel environment like
23     C | MPI.
24     C *==========================================================*
25     C \ev
26    
27     C !CALLING SEQUENCE:
28     C INITIALISE_FIXED
29     C |
30     C |-- INI_PARMS
31     C |
32     C |-- PACKAGES_BOOT
33     C |
34     C |-- PACKAGES_READPARMS
35     C | |
36     C | | - MNC_INIT + MNC_CW_INIT
37     C | |
38     C | | - ${PKG}_READPARMS
39     C |
40     C |-- INI_MODEL_IO
41     C |
42     C |-- MON_INIT
43     C |
44     C |-- INI_GRID
45     C |
46     C |-- INI_EOS
47     C |
48     C |-- INI_PHIREF
49     C |
50     C |-- INI_DEPTHS
51     C |
52     C |-- INI_MASKS_ETC
53     C |
54     C |-- PACKAGES_INIT_FIXED
55     C |
56     C |-- PACKAGES_CHECK
57     C |
58     C |-- INI_LINEAR_PHSURF
59     C |
60     C |-- INI_CORI
61     C |
62     C |-- INI_CG2D
63     C |
64     C |-- INI_CG3D
65     C |
66     C |-- CONFIG_CHECK
67     C |
68     C |-- CONFIG_SUMMARY
69     C |
70     C |-- WRITE_GRID
71     C |
72     C |-- CPL_EXCH_CONFIGS
73    
74     C !USES:
75     IMPLICIT NONE
76     C == Global variables ==
77     #include "SIZE.h"
78     #include "EEPARAMS.h"
79     #include "PARAMS.h"
80    
81     C !INPUT/OUTPUT PARAMETERS:
82     C == Routine arguments ==
83     INTEGER myThid
84     CEOP
85    
86     C-- Set model parameters.
87     C Parameters are set to defaults and then updates are read from
88     C an input file called data.
89     CALL INI_PARMS( myThid )
90     _BARRIER
91    
92     C-- Configure packages
93     CALL PACKAGES_BOOT( myThid )
94    
95     C-- Read configuration parameters for packages
96     CALL PACKAGES_READPARMS( myThid )
97    
98     C-- Write units/set precision/etc for I/O of variables/arrays belonging
99     C to the core dynamical model
100     CALL INI_MODEL_IO( myThid )
101    
102     #ifdef ALLOW_MONITOR
103     C-- Initialise MONITOR I/O streams so we can report config. info
104     CALL MON_INIT( myThid )
105     _BARRIER
106     #endif
107    
108     C-- Set model grid.
109     C Variables defining model grid spacing are defined.
110     CALL OpenAD_INI_GRID( myThid )
111     _BARRIER
112    
113     C-- Set equation of state parameters.
114     CALL INI_EOS( myThid )
115     _BARRIER
116    
117     C-- Set pressure/geopotential reference profile
118     CALL INI_PHIREF( myThid )
119     _BARRIER
120    
121     C-- Initialise map of depths
122     CALL OpenAD_INI_DEPTHS( myThid )
123     _BARRIER
124    
125     C-- Derive masks, lopping factors and recipricols of quantities.
126     C Volumes and areas are set according to grid and depth map.
127     CALL OpenAD_INI_MASKS_ETC( myThid )
128     _BARRIER
129    
130     C-- Call fixed data initialization phase of packages
131     CALL PACKAGES_INIT_FIXED( myThid )
132    
133     C-- Check dependances between packages
134     CALL PACKAGES_CHECK( myThid )
135    
136     C-- Set Bo_surf => define the Linear Relation: Phi_surf(eta)
137     CALL OpenAD_INI_LINEAR_PHISURF( myThid )
138    
139     C-- Set coriolis operators
140     CALL OpenAD_INI_CORI( myThid )
141    
142     C-- Set laplace operators for use in 2D conjugate gradient solver.
143     CALL OpenAD_INI_CG2D( myThid )
144    
145     #ifdef ALLOW_NONHYDROSTATIC
146     C-- Set laplace operators for use in 3D conjugate gradient solver.
147     ceh3 needs an IF ( useNONHYDROSTATIC ) THEN
148     CALL INI_CG3D( myThid )
149     #endif
150    
151     C-- Check parameters and model cofiguration
152     CALL CONFIG_CHECK( myThid )
153    
154     C-- Finally summarise the model cofiguration
155     CALL CONFIG_SUMMARY( myThid )
156    
157     C-- Write grid data and geometry arrays
158     IF ( debugLevel.GE.debLevA .OR.
159     & startTime.EQ.baseTime ) CALL WRITE_GRID( myThid )
160    
161     #ifdef COMPONENT_MODULE
162     C-- Post component-model configuration information to coupler
163     C and get config. info for other component(s).
164     IF ( useCoupler ) CALL CPL_EXCH_CONFIGS( myThid )
165     #endif
166    
167     C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
168    
169     RETURN
170     END

  ViewVC Help
Powered by ViewVC 1.1.22