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

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

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


Revision 1.43 - (hide annotations) (download)
Thu Nov 3 16:20:24 2005 UTC (18 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57w_post, checkpoint57x_post
Changes since 1.42: +9 -9 lines
call ini_model_io.F earlier

1 jmc 1.43 C $Header: /u/gcmpack/MITgcm/model/src/initialise_fixed.F,v 1.42 2005/09/06 02:16:10 edhill Exp $
2 jmc 1.11 C $Name: $
3 adcroft 1.1
4 edhill 1.13 #include "PACKAGES_CONFIG.h"
5 adcroft 1.1 #include "CPP_OPTIONS.h"
6    
7 cnh 1.8 CBOP
8     C !ROUTINE: INITIALISE_FIXED
9     C !INTERFACE:
10 adcroft 1.1 SUBROUTINE INITIALISE_FIXED(myThid)
11 cnh 1.8
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 jmc 1.38 C |-- INI_PARMS
31     C |
32 edhill 1.37 C |-- PACKAGES_BOOT
33     C |
34     C |-- PACKAGES_READPARMS
35 jmc 1.38 C | |
36 jmc 1.43 C | | - MNC_INIT + MNC_CW_INIT
37 jmc 1.38 C | |
38     C | | - ${PKG}_READPARMS
39 edhill 1.32 C |
40 jmc 1.43 C |-- INI_MODEL_IO
41     C |
42 cnh 1.8 C |-- MON_INIT
43     C |
44     C |-- INI_GRID
45     C |
46 jmc 1.38 C |-- INI_DEPTHS
47     C |
48 mlosch 1.10 C |-- INI_EOS
49     C |
50 cnh 1.8 C |-- INI_MASKS_ETC
51     C |
52 jmc 1.15 C |-- PACKAGES_INIT_FIXED
53     C |
54 cnh 1.8 C |-- PACKAGES_CHECK
55     C |
56 jmc 1.12 C |-- INI_LINEAR_PHSURF
57     C |
58     C |-- INI_CORI
59 cnh 1.8 C |
60     C |-- INI_CG2D
61     C |
62     C |-- INI_CG3D
63     C |
64 jmc 1.9 C |-- CONFIG_CHECK
65     C |
66 cnh 1.8 C |-- CONFIG_SUMMARY
67 adcroft 1.33 C |
68     C |-- WRITE_GRID
69 jmc 1.38 C |
70     C |-- CPL_EXCH_CONFIGS
71 cnh 1.8
72     C !USES:
73 adcroft 1.1 IMPLICIT NONE
74     C == Global variables ==
75     #include "SIZE.h"
76     #include "EEPARAMS.h"
77     #include "PARAMS.h"
78    
79 cnh 1.8 C !INPUT/OUTPUT PARAMETERS:
80 adcroft 1.1 C == Routine arguments ==
81     INTEGER myThid
82 cnh 1.8 CEOP
83 adcroft 1.1
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 adcroft 1.2 CALL INI_PARMS( myThid )
88 adcroft 1.1 _BARRIER
89 cnh 1.6
90 edhill 1.37 C-- Configure packages
91     CALL PACKAGES_BOOT( myThid )
92    
93     C-- Read configuration parameters for packages
94     CALL PACKAGES_READPARMS( myThid )
95 edhill 1.26
96 jmc 1.43 C-- Write units/set precision/etc for I/O of variables/arrays belonging
97     C to the core dynamical model
98     CALL INI_MODEL_IO( myThid )
99    
100 edhill 1.14 #ifdef ALLOW_MONITOR
101 cnh 1.6 C-- Initialise MONITOR I/O streams so we can report config. info
102     CALL MON_INIT( myThid )
103     _BARRIER
104     #endif
105 adcroft 1.1
106     C-- Set model grid.
107     C Variables defining model grid spacing are defined.
108     CALL INI_GRID( myThid )
109 mlosch 1.10 _BARRIER
110 edhill 1.29
111 mlosch 1.10 C-- Set equation of state parameters.
112     CALL INI_EOS( myThid )
113 adcroft 1.1 _BARRIER
114    
115     C-- Initialise map of depths
116     CALL INI_DEPTHS( myThid )
117     _BARRIER
118    
119     C-- Derive masks, lopping factors and recipricols of quantities.
120     C Volumes and areas are set according to grid and depth map.
121     CALL INI_MASKS_ETC( myThid )
122     _BARRIER
123 jmc 1.7
124 jmc 1.15 C-- Call fixed data initialization phase of packages
125     CALL PACKAGES_INIT_FIXED( myThid )
126    
127 adcroft 1.4 C-- Check dependances between packages
128     CALL PACKAGES_CHECK( myThid )
129 adcroft 1.1
130 jmc 1.12 C-- Set Bo_surf => define the Linear Relation: Phi_surf(eta)
131     CALL INI_LINEAR_PHISURF( myThid )
132    
133     C-- Set coriolis operators
134     CALL INI_CORI( myThid )
135    
136 adcroft 1.1 C-- Set laplace operators for use in 2D conjugate gradient solver.
137     CALL INI_CG2D( myThid )
138    
139     #ifdef ALLOW_NONHYDROSTATIC
140     C-- Set laplace operators for use in 3D conjugate gradient solver.
141 edhill 1.13 ceh3 needs an IF ( useNONHYDROSTATIC ) THEN
142 adcroft 1.1 CALL INI_CG3D( myThid )
143     #endif
144 jmc 1.9
145     C-- Check parameters and model cofiguration
146     CALL CONFIG_CHECK( myThid )
147 heimbach 1.3
148 adcroft 1.1 C-- Finally summarise the model cofiguration
149     CALL CONFIG_SUMMARY( myThid )
150 adcroft 1.30
151     C-- Write grid data and geometry arrays
152 jmc 1.43 IF ( debugLevel.GE.debLevA .OR.
153 jmc 1.41 & startTime.EQ.baseTime ) CALL WRITE_GRID( myThid )
154 jmc 1.16
155     #ifdef COMPONENT_MODULE
156     C-- Post component-model configuration information to coupler
157     C and get config. info for other component(s).
158     IF ( useCoupler ) CALL CPL_EXCH_CONFIGS( myThid )
159 edhill 1.17 #endif
160    
161 edhill 1.23 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
162 adcroft 1.1
163 jmc 1.12 RETURN
164 adcroft 1.1 END

  ViewVC Help
Powered by ViewVC 1.1.22