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

Contents of /MITgcm/model/src/initialise_fixed.F

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


Revision 1.39 - (show annotations) (download)
Thu Dec 9 19:45:53 2004 UTC (19 years, 5 months ago) by dimitri
Branch: MAIN
CVS Tags: checkpoint57b_post, checkpoint57d_post, checkpoint57a_post, checkpoint57c_post, checkpoint57c_pre, checkpoint57e_post, eckpoint57e_pre, checkpoint57f_pre, checkpoint57a_pre
Changes since 1.38: +5 -1 lines
Reduced output when CPP option MINIMAL_TAVE_OUTPUT is set to speed-up
start-up time for large configurations.

1 C $Header: /u/gcmpack/MITgcm/model/src/initialise_fixed.F,v 1.38 2004/12/09 17:17:00 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 |-- MON_INIT
41 C |
42 C |-- INI_GRID
43 C |
44 C |-- INI_DEPTHS
45 C |
46 C |-- INI_EOS
47 C |
48 C |-- INI_MASKS_ETC
49 C |
50 C |-- PACKAGES_INIT_FIXED
51 C |
52 C |-- PACKAGES_CHECK
53 C |
54 C |-- INI_LINEAR_PHSURF
55 C |
56 C |-- INI_CORI
57 C |
58 C |-- INI_CG2D
59 C |
60 C |-- INI_CG3D
61 C |
62 C |-- CONFIG_CHECK
63 C |
64 C |-- CONFIG_SUMMARY
65 C |
66 C |-- INI_MODEL_IO
67 C |
68 C |-- WRITE_GRID
69 C |
70 C |-- CPL_EXCH_CONFIGS
71
72 C !USES:
73 IMPLICIT NONE
74 C == Global variables ==
75 #include "SIZE.h"
76 #include "EEPARAMS.h"
77 #include "PARAMS.h"
78
79 C !INPUT/OUTPUT PARAMETERS:
80 C == Routine arguments ==
81 INTEGER myThid
82 CEOP
83
84 C-- Set model parameters.
85 C Parameters are set to defaults and then updates are read from
86 C an input file called data.
87 CALL INI_PARMS( myThid )
88 _BARRIER
89
90 C-- Configure packages
91 CALL PACKAGES_BOOT( myThid )
92
93 C-- Read configuration parameters for packages
94 CALL PACKAGES_READPARMS( myThid )
95
96 #ifdef ALLOW_MONITOR
97 C-- Initialise MONITOR I/O streams so we can report config. info
98 CALL MON_INIT( myThid )
99 _BARRIER
100 #endif
101
102 C-- Set model grid.
103 C Variables defining model grid spacing are defined.
104 CALL INI_GRID( myThid )
105 _BARRIER
106
107 C-- Set equation of state parameters.
108 CALL INI_EOS( myThid )
109 _BARRIER
110
111 C-- Initialise map of depths
112 CALL INI_DEPTHS( myThid )
113 _BARRIER
114
115 C-- Derive masks, lopping factors and recipricols of quantities.
116 C Volumes and areas are set according to grid and depth map.
117 CALL INI_MASKS_ETC( myThid )
118 _BARRIER
119
120 C-- Call fixed data initialization phase of packages
121 CALL PACKAGES_INIT_FIXED( myThid )
122
123 C-- Check dependances between packages
124 CALL PACKAGES_CHECK( myThid )
125
126 C-- Set Bo_surf => define the Linear Relation: Phi_surf(eta)
127 CALL INI_LINEAR_PHISURF( myThid )
128
129 C-- Set coriolis operators
130 CALL INI_CORI( myThid )
131
132 C-- Set laplace operators for use in 2D conjugate gradient solver.
133 CALL INI_CG2D( myThid )
134
135 #ifdef ALLOW_NONHYDROSTATIC
136 C-- Set laplace operators for use in 3D conjugate gradient solver.
137 ceh3 needs an IF ( useNONHYDROSTATIC ) THEN
138 CALL INI_CG3D( myThid )
139 #endif
140
141 C-- Check parameters and model cofiguration
142 CALL CONFIG_CHECK( myThid )
143
144 C-- Finally summarise the model cofiguration
145 CALL CONFIG_SUMMARY( myThid )
146
147 C-- Write units/set precision/etc for I/O of variables/arrays belonging
148 C to the core dynamical model
149 CALL INI_MODEL_IO( myThid )
150
151 C-- Write grid data and geometry arrays
152 #ifdef MINIMAL_TAVE_OUTPUT
153 IF ( startTime .EQ. 0.0 ) CALL WRITE_GRID( myThid )
154 #else
155 CALL WRITE_GRID( myThid )
156 #endif /* MINIMAL_TAVE_OUTPUT */
157
158 #ifdef COMPONENT_MODULE
159 C-- Post component-model configuration information to coupler
160 C and get config. info for other component(s).
161 IF ( useCoupler ) CALL CPL_EXCH_CONFIGS( myThid )
162 #endif
163
164 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
165
166 RETURN
167 END

  ViewVC Help
Powered by ViewVC 1.1.22