1 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/initialise_fixed.F,v 1.3.2.1 2001/01/09 21:26:07 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 |
#ifdef ALLOW_OBCS |
39 |
C-- Open boundaries positions |
40 |
IF (openBoundaries) THEN |
41 |
CALL OBCS_INIT( myThid ) |
42 |
ENDIF |
43 |
#endif |
44 |
_BARRIER |
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 |
#ifdef ALLOW_ZONAL_FILT |
64 |
C-- Latitude circle filter initialisation |
65 |
CALL ZONAL_FILT_INIT(myThid) |
66 |
_BARRIER |
67 |
#endif |
68 |
|
69 |
C-- Set laplace operators for use in 2D conjugate gradient solver. |
70 |
CALL INI_CG2D( myThid ) |
71 |
|
72 |
#ifdef ALLOW_NONHYDROSTATIC |
73 |
C-- Set laplace operators for use in 3D conjugate gradient solver. |
74 |
CALL INI_CG3D( myThid ) |
75 |
#endif |
76 |
|
77 |
C-- Configure packages |
78 |
CALL PACKAGES_BOOT( myThid ) |
79 |
|
80 |
C-- Read configuration parameters for packages |
81 |
CALL PACKAGES_READPARMS( myThid ) |
82 |
|
83 |
C-- Check dependances between packages |
84 |
CALL PACKAGES_CHECK( myThid ) |
85 |
|
86 |
C-- Finally summarise the model cofiguration |
87 |
CALL CONFIG_SUMMARY( myThid ) |
88 |
|
89 |
END |