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