/[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.21 - (hide annotations) (download)
Thu Feb 5 00:13:47 2004 UTC (20 years, 3 months ago) by edhill
Branch: MAIN
Changes since 1.20: +13 -6 lines
 o getting closer to a usable MNC package through the "cw" layer:
   - numerous bug fixes
   - global attributes added
   - improved handling of the unlimited dimension
   - "cw" can handle variables with up to 7 dimensions
   - added list of pre-defined grid types

1 edhill 1.21 C $Header: /u/u3/gcmpack/MITgcm/model/src/initialise_fixed.F,v 1.20 2004/02/04 05:45:09 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 edhill 1.17 C |
62 edhill 1.19 C |-- MNC_INIT
63 edhill 1.18 C |-- MNC_W_GRIDINFO
64 cnh 1.8
65     C !USES:
66 adcroft 1.1 IMPLICIT NONE
67     C == Global variables ==
68     #include "SIZE.h"
69     #include "EEPARAMS.h"
70     #include "PARAMS.h"
71    
72 cnh 1.8 C !INPUT/OUTPUT PARAMETERS:
73 adcroft 1.1 C == Routine arguments ==
74     INTEGER myThid
75 cnh 1.8 CEOP
76 adcroft 1.1
77     C-- Set model parameters.
78     C Parameters are set to defaults and then updates are read from
79     C an input file called data.
80 adcroft 1.2 CALL INI_PARMS( myThid )
81 adcroft 1.1 _BARRIER
82 cnh 1.6
83 edhill 1.14 #ifdef ALLOW_MONITOR
84 cnh 1.6 C-- Initialise MONITOR I/O streams so we can report config. info
85     CALL MON_INIT( myThid )
86     _BARRIER
87     #endif
88    
89 adcroft 1.1
90     C-- Set model grid.
91     C Variables defining model grid spacing are defined.
92     CALL INI_GRID( myThid )
93 mlosch 1.10 _BARRIER
94    
95     C-- Set equation of state parameters.
96     CALL INI_EOS( myThid )
97 adcroft 1.1 _BARRIER
98    
99     C-- Initialise map of depths
100     CALL INI_DEPTHS( myThid )
101     _BARRIER
102    
103     C-- Derive masks, lopping factors and recipricols of quantities.
104     C Volumes and areas are set according to grid and depth map.
105     CALL INI_MASKS_ETC( myThid )
106     _BARRIER
107 jmc 1.7
108 adcroft 1.4 C-- Configure packages
109     CALL PACKAGES_BOOT( myThid )
110    
111     C-- Read configuration parameters for packages
112     CALL PACKAGES_READPARMS( myThid )
113    
114 jmc 1.15 C-- Call fixed data initialization phase of packages
115     CALL PACKAGES_INIT_FIXED( myThid )
116    
117 adcroft 1.4 C-- Check dependances between packages
118     CALL PACKAGES_CHECK( myThid )
119 adcroft 1.1
120 jmc 1.12 C-- Set Bo_surf => define the Linear Relation: Phi_surf(eta)
121     CALL INI_LINEAR_PHISURF( myThid )
122    
123     C-- Set coriolis operators
124     CALL INI_CORI( myThid )
125    
126 adcroft 1.1 C-- Set laplace operators for use in 2D conjugate gradient solver.
127     CALL INI_CG2D( myThid )
128    
129     #ifdef ALLOW_NONHYDROSTATIC
130     C-- Set laplace operators for use in 3D conjugate gradient solver.
131 edhill 1.13 ceh3 needs an IF ( useNONHYDROSTATIC ) THEN
132 adcroft 1.1 CALL INI_CG3D( myThid )
133     #endif
134 jmc 1.9
135     C-- Check parameters and model cofiguration
136     CALL CONFIG_CHECK( myThid )
137 heimbach 1.3
138 adcroft 1.1 C-- Finally summarise the model cofiguration
139     CALL CONFIG_SUMMARY( myThid )
140 jmc 1.16
141     #ifdef COMPONENT_MODULE
142     C-- Post component-model configuration information to coupler
143     C and get config. info for other component(s).
144     IF ( useCoupler ) CALL CPL_EXCH_CONFIGS( myThid )
145 edhill 1.17 #endif
146    
147 edhill 1.18 #ifdef ALLOW_MNC
148 edhill 1.21 C Test the MNC package
149 edhill 1.18 CALL MNC_INIT(myThid)
150 edhill 1.20 CALL MNC_CW_INIT(myThid, sNx,sNy, OLx,OLy, nSx,nSy, nPx,nPy, Nr)
151    
152 edhill 1.21 CALL MNC_CW_ADD_VNAME(myThid, 'iter', '-_-_--__-__t', 0,0)
153     CALL MNC_CW_ADD_VATTR_TEXT(myThid, 'iter', 1,
154     & 'units', 's')
155     CALL MNC_CW_ADD_VATTR_TEXT(myThid, 'iter', 1,
156     & 'mitgcm_grid', '-_-_--__-__t')
157    
158     CALL MNC_CW_ADD_VNAME(myThid, 'U', 'U_xy_Hn__C__t', 4,5)
159     CALL MNC_CW_ADD_VATTR_TEXT(myThid, 'U', 1,
160     & 'units', 'm/s')
161     CALL MNC_CW_ADD_VATTR_TEXT(myThid, 'U', 1,
162     & 'mitgcm_grid', 'U_xy_Hn__C__t')
163 jmc 1.16 #endif
164 adcroft 1.1
165 jmc 1.12 RETURN
166 adcroft 1.1 END

  ViewVC Help
Powered by ViewVC 1.1.22