1 |
cnh |
1.5 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/initialise_fixed.F,v 1.4 2001/02/02 21:04:48 adcroft Exp $ |
2 |
|
|
C $Name: $ |
3 |
adcroft |
1.1 |
|
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 |
adcroft |
1.2 |
CALL INI_PARMS( myThid ) |
37 |
adcroft |
1.1 |
_BARRIER |
38 |
|
|
|
39 |
|
|
C-- Set model grid. |
40 |
|
|
C Variables defining model grid spacing are defined. |
41 |
|
|
CALL INI_GRID( myThid ) |
42 |
|
|
_BARRIER |
43 |
|
|
|
44 |
|
|
C-- Initialise map of depths |
45 |
|
|
CALL INI_DEPTHS( myThid ) |
46 |
|
|
_BARRIER |
47 |
|
|
|
48 |
|
|
C-- Derive masks, lopping factors and recipricols of quantities. |
49 |
|
|
C Volumes and areas are set according to grid and depth map. |
50 |
|
|
CALL INI_MASKS_ETC( myThid ) |
51 |
|
|
_BARRIER |
52 |
|
|
|
53 |
heimbach |
1.3 |
C-- Set coriolis operators |
54 |
|
|
CALL INI_CORI( myThid ) |
55 |
|
|
|
56 |
adcroft |
1.4 |
C-- Configure packages |
57 |
|
|
CALL PACKAGES_BOOT( myThid ) |
58 |
|
|
|
59 |
|
|
C-- Read configuration parameters for packages |
60 |
|
|
CALL PACKAGES_READPARMS( myThid ) |
61 |
|
|
|
62 |
|
|
C-- Check dependances between packages |
63 |
|
|
CALL PACKAGES_CHECK( myThid ) |
64 |
|
|
|
65 |
|
|
C-- Call fixed data initialization phase of packages |
66 |
|
|
CALL PACKAGES_INIT_FIXED( myThid ) |
67 |
|
|
|
68 |
|
|
#ifdef ALLOW_ZONAL_FILT |
69 |
adcroft |
1.1 |
C-- Latitude circle filter initialisation |
70 |
adcroft |
1.4 |
CALL ZONAL_FILT_INIT(myThid) |
71 |
adcroft |
1.1 |
_BARRIER |
72 |
|
|
#endif |
73 |
|
|
|
74 |
|
|
C-- Set laplace operators for use in 2D conjugate gradient solver. |
75 |
|
|
CALL INI_CG2D( myThid ) |
76 |
|
|
|
77 |
|
|
#ifdef ALLOW_NONHYDROSTATIC |
78 |
|
|
C-- Set laplace operators for use in 3D conjugate gradient solver. |
79 |
|
|
CALL INI_CG3D( myThid ) |
80 |
|
|
#endif |
81 |
heimbach |
1.3 |
|
82 |
adcroft |
1.1 |
C-- Finally summarise the model cofiguration |
83 |
|
|
CALL CONFIG_SUMMARY( myThid ) |
84 |
|
|
|
85 |
|
|
END |