/[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.28 - (hide annotations) (download)
Tue Mar 23 05:24:43 2004 UTC (20 years, 2 months ago) by edhill
Branch: MAIN
Changes since 1.27: +2 -2 lines
 o per AJA & JMC request, re-write the MNC directory creation code:
   - directory names (strings) are passed, encoded using integers
   - everything is run-time optional with flags in "data.mnc"
   - tested and works but would benefit from some cleanup

1 edhill 1.28 C $Header: /u/gcmpack/MITgcm/model/src/initialise_fixed.F,v 1.27 2004/03/21 03:44:23 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     C |-- MON_INIT
33     C |
34     C |-- INI_GRID
35     C |
36 mlosch 1.10 C |-- INI_EOS
37     C |
38 cnh 1.8 C |-- INI_DEPTHS
39     C |
40     C |-- INI_MASKS_ETC
41     C |
42     C |-- PACKAGES_BOOT
43     C |
44     C |-- PACKAGES_READPARMS
45     C |
46 jmc 1.15 C |-- PACKAGES_INIT_FIXED
47     C |
48 cnh 1.8 C |-- PACKAGES_CHECK
49     C |
50 jmc 1.12 C |-- INI_LINEAR_PHSURF
51     C |
52     C |-- INI_CORI
53 cnh 1.8 C |
54     C |-- INI_CG2D
55     C |
56     C |-- INI_CG3D
57     C |
58 jmc 1.9 C |-- CONFIG_CHECK
59     C |
60 cnh 1.8 C |-- CONFIG_SUMMARY
61    
62     C !USES:
63 adcroft 1.1 IMPLICIT NONE
64     C == Global variables ==
65     #include "SIZE.h"
66     #include "EEPARAMS.h"
67     #include "PARAMS.h"
68    
69 cnh 1.8 C !INPUT/OUTPUT PARAMETERS:
70 adcroft 1.1 C == Routine arguments ==
71     INTEGER myThid
72 cnh 1.8 CEOP
73 adcroft 1.1
74     C-- Set model parameters.
75     C Parameters are set to defaults and then updates are read from
76     C an input file called data.
77 adcroft 1.2 CALL INI_PARMS( myThid )
78 adcroft 1.1 _BARRIER
79 cnh 1.6
80 edhill 1.26 #ifdef ALLOW_MNC
81     C Initialize MNC look-up tables
82     IF (useMNC) THEN
83     CALL MNC_INIT(myThid)
84     CALL MNC_CW_INIT(sNx,sNy,OLx,OLy,nSx,nSy,nPx,nPy,Nr, myThid)
85     CALL INI_MNC_IO(myThid)
86 edhill 1.28 IF ( mnc_echo_gvtypes ) THEN
87 edhill 1.26 CALL MNC_CW_DUMP( myThid )
88     ENDIF
89     ENDIF
90     #endif
91    
92 edhill 1.14 #ifdef ALLOW_MONITOR
93 cnh 1.6 C-- Initialise MONITOR I/O streams so we can report config. info
94     CALL MON_INIT( myThid )
95     _BARRIER
96     #endif
97 adcroft 1.1
98     C-- Set model grid.
99     C Variables defining model grid spacing are defined.
100     CALL INI_GRID( myThid )
101 mlosch 1.10 _BARRIER
102    
103     C-- Set equation of state parameters.
104     CALL INI_EOS( myThid )
105 adcroft 1.1 _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 jmc 1.7
116 adcroft 1.4 C-- Configure packages
117     CALL PACKAGES_BOOT( myThid )
118    
119     C-- Read configuration parameters for packages
120     CALL PACKAGES_READPARMS( myThid )
121    
122 jmc 1.15 C-- Call fixed data initialization phase of packages
123     CALL PACKAGES_INIT_FIXED( myThid )
124    
125 adcroft 1.4 C-- Check dependances between packages
126     CALL PACKAGES_CHECK( myThid )
127 adcroft 1.1
128 jmc 1.12 C-- Set Bo_surf => define the Linear Relation: Phi_surf(eta)
129     CALL INI_LINEAR_PHISURF( myThid )
130    
131     C-- Set coriolis operators
132     CALL INI_CORI( myThid )
133    
134 adcroft 1.1 C-- Set laplace operators for use in 2D conjugate gradient solver.
135     CALL INI_CG2D( myThid )
136    
137     #ifdef ALLOW_NONHYDROSTATIC
138     C-- Set laplace operators for use in 3D conjugate gradient solver.
139 edhill 1.13 ceh3 needs an IF ( useNONHYDROSTATIC ) THEN
140 adcroft 1.1 CALL INI_CG3D( myThid )
141     #endif
142 jmc 1.9
143     C-- Check parameters and model cofiguration
144     CALL CONFIG_CHECK( myThid )
145 heimbach 1.3
146 adcroft 1.1 C-- Finally summarise the model cofiguration
147     CALL CONFIG_SUMMARY( myThid )
148 jmc 1.16
149     #ifdef COMPONENT_MODULE
150     C-- Post component-model configuration information to coupler
151     C and get config. info for other component(s).
152     IF ( useCoupler ) CALL CPL_EXCH_CONFIGS( myThid )
153 edhill 1.17 #endif
154    
155 edhill 1.23 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
156 adcroft 1.1
157 jmc 1.12 RETURN
158 adcroft 1.1 END

  ViewVC Help
Powered by ViewVC 1.1.22