/[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.32 - (hide annotations) (download)
Fri Jul 9 02:41:52 2004 UTC (19 years, 11 months ago) by edhill
Branch: MAIN
Changes since 1.31: +4 -9 lines
 o remove the "Nphys"-related MNC grid type definitions from MNC
     and place them in the fizhi package per the discussions
     with AM and JMC
 o the code compiles cleanly but has not been run
 o the two files added to fizhi do not (yet) interact with any of the
     other fizhi routines--no changes to existing fizhi code

1 edhill 1.32 C $Header: /u/gcmpack/MITgcm/model/src/initialise_fixed.F,v 1.31 2004/07/06 01:58:41 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     C |-- INI_PARMS
31     C |
32 edhill 1.32 C |-- MNC_INIT + MNC_CW_INIT
33     C |
34 cnh 1.8 C |-- MON_INIT
35     C |
36     C |-- INI_GRID
37     C |
38 mlosch 1.10 C |-- INI_EOS
39     C |
40 cnh 1.8 C |-- INI_DEPTHS
41     C |
42     C |-- INI_MASKS_ETC
43     C |
44     C |-- PACKAGES_BOOT
45     C |
46     C |-- PACKAGES_READPARMS
47     C |
48 jmc 1.15 C |-- PACKAGES_INIT_FIXED
49     C |
50 cnh 1.8 C |-- PACKAGES_CHECK
51     C |
52 jmc 1.12 C |-- INI_LINEAR_PHSURF
53     C |
54     C |-- INI_CORI
55 cnh 1.8 C |
56     C |-- INI_CG2D
57     C |
58     C |-- INI_CG3D
59     C |
60 jmc 1.9 C |-- CONFIG_CHECK
61     C |
62 cnh 1.8 C |-- CONFIG_SUMMARY
63    
64     C !USES:
65 adcroft 1.1 IMPLICIT NONE
66     C == Global variables ==
67     #include "SIZE.h"
68     #include "EEPARAMS.h"
69     #include "PARAMS.h"
70    
71 cnh 1.8 C !INPUT/OUTPUT PARAMETERS:
72 adcroft 1.1 C == Routine arguments ==
73     INTEGER myThid
74 cnh 1.8 CEOP
75 adcroft 1.1
76     C-- Set model parameters.
77     C Parameters are set to defaults and then updates are read from
78     C an input file called data.
79 adcroft 1.2 CALL INI_PARMS( myThid )
80 adcroft 1.1 _BARRIER
81 cnh 1.6
82 edhill 1.26 #ifdef ALLOW_MNC
83     C Initialize MNC look-up tables
84     IF (useMNC) THEN
85     CALL MNC_INIT(myThid)
86 edhill 1.31 CALL MNC_CW_INIT(sNx,sNy,OLx,OLy,nSx,nSy,nPx,nPy,
87 edhill 1.32 & Nr,myThid)
88 edhill 1.28 IF ( mnc_echo_gvtypes ) THEN
89 edhill 1.26 CALL MNC_CW_DUMP( myThid )
90     ENDIF
91     ENDIF
92     #endif
93    
94 edhill 1.14 #ifdef ALLOW_MONITOR
95 cnh 1.6 C-- Initialise MONITOR I/O streams so we can report config. info
96     CALL MON_INIT( myThid )
97     _BARRIER
98     #endif
99 adcroft 1.1
100     C-- Set model grid.
101     C Variables defining model grid spacing are defined.
102     CALL INI_GRID( myThid )
103 mlosch 1.10 _BARRIER
104 edhill 1.29
105 mlosch 1.10 C-- Set equation of state parameters.
106     CALL INI_EOS( myThid )
107 adcroft 1.1 _BARRIER
108    
109     C-- Initialise map of depths
110     CALL INI_DEPTHS( myThid )
111     _BARRIER
112    
113     C-- Derive masks, lopping factors and recipricols of quantities.
114     C Volumes and areas are set according to grid and depth map.
115     CALL INI_MASKS_ETC( myThid )
116     _BARRIER
117 jmc 1.7
118 adcroft 1.4 C-- Configure packages
119     CALL PACKAGES_BOOT( myThid )
120    
121     C-- Read configuration parameters for packages
122     CALL PACKAGES_READPARMS( myThid )
123    
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 units/set precision/etc for I/O of variables/arrays belonging
152     C to the core dynamical model
153     CALL INI_MODEL_IO( myThid )
154    
155     C-- Write grid data and geometry arrays
156     CALL WRITE_GRID( myThid )
157 jmc 1.16
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 edhill 1.17 #endif
163    
164 edhill 1.23 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
165 adcroft 1.1
166 jmc 1.12 RETURN
167 adcroft 1.1 END

  ViewVC Help
Powered by ViewVC 1.1.22