/[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.37 - (show annotations) (download)
Thu Oct 14 13:44:54 2004 UTC (19 years, 7 months ago) by edhill
Branch: MAIN
CVS Tags: checkpoint56b_post, checkpoint56, checkpoint55i_post, checkpoint55j_post, checkpoint55h_post, checkpoint56a_post, checkpoint56c_post
Changes since 1.36: +10 -25 lines
 o do package initialization earlier in the boot-up sequence
   - make MNC follow the package guidelines

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

  ViewVC Help
Powered by ViewVC 1.1.22