1 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/initialise_fixed.F,v 1.5 2001/02/04 14:38:48 cnh Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CStartOfInterface |
7 |
SUBROUTINE INITIALISE_FIXED(myThid) |
8 |
C /==========================================================\ |
9 |
C | SUBROUTINE INITIALISE_FIXED | |
10 |
C | o Routine for setting fixed model arrays such as | |
11 |
C | topography, grid, solver matrices, etc. | |
12 |
C |==========================================================| |
13 |
C | INITIALISE_FIXED is invoked at the start of the model to | |
14 |
C | set fixed model arrays. It reads data from an input file | |
15 |
C | and from various binary files. | |
16 |
C | Each thread invokes an instance of this routine as does | |
17 |
C | each process in a multi-process parallel environment like| |
18 |
C | MPI. | |
19 |
C \==========================================================/ |
20 |
IMPLICIT NONE |
21 |
|
22 |
C == Global variables == |
23 |
#include "SIZE.h" |
24 |
#include "EEPARAMS.h" |
25 |
#include "PARAMS.h" |
26 |
|
27 |
C == Routine arguments == |
28 |
INTEGER myThid |
29 |
CEndOfInterface |
30 |
|
31 |
C == Local variables == |
32 |
|
33 |
C-- Set model parameters. |
34 |
C Parameters are set to defaults and then updates are read from |
35 |
C an input file called data. |
36 |
CALL INI_PARMS( myThid ) |
37 |
_BARRIER |
38 |
|
39 |
#ifndef EXCLUDE_MONITOR |
40 |
C-- Initialise MONITOR I/O streams so we can report config. info |
41 |
CALL MON_INIT( myThid ) |
42 |
_BARRIER |
43 |
#endif |
44 |
|
45 |
|
46 |
C-- Set model grid. |
47 |
C Variables defining model grid spacing are defined. |
48 |
CALL INI_GRID( myThid ) |
49 |
_BARRIER |
50 |
|
51 |
C-- Initialise map of depths |
52 |
CALL INI_DEPTHS( myThid ) |
53 |
_BARRIER |
54 |
|
55 |
C-- Derive masks, lopping factors and recipricols of quantities. |
56 |
C Volumes and areas are set according to grid and depth map. |
57 |
CALL INI_MASKS_ETC( myThid ) |
58 |
_BARRIER |
59 |
|
60 |
C-- Set coriolis operators |
61 |
CALL INI_CORI( myThid ) |
62 |
|
63 |
C-- Configure packages |
64 |
CALL PACKAGES_BOOT( myThid ) |
65 |
|
66 |
C-- Read configuration parameters for packages |
67 |
CALL PACKAGES_READPARMS( myThid ) |
68 |
|
69 |
C-- Check dependances between packages |
70 |
CALL PACKAGES_CHECK( myThid ) |
71 |
|
72 |
C-- Call fixed data initialization phase of packages |
73 |
CALL PACKAGES_INIT_FIXED( myThid ) |
74 |
|
75 |
#ifdef ALLOW_ZONAL_FILT |
76 |
C-- Latitude circle filter initialisation |
77 |
CALL ZONAL_FILT_INIT(myThid) |
78 |
_BARRIER |
79 |
#endif |
80 |
|
81 |
C-- Set laplace operators for use in 2D conjugate gradient solver. |
82 |
CALL INI_CG2D( myThid ) |
83 |
|
84 |
#ifdef ALLOW_NONHYDROSTATIC |
85 |
C-- Set laplace operators for use in 3D conjugate gradient solver. |
86 |
CALL INI_CG3D( myThid ) |
87 |
#endif |
88 |
|
89 |
C-- Finally summarise the model cofiguration |
90 |
CALL CONFIG_SUMMARY( myThid ) |
91 |
|
92 |
END |