1 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/initialise.F,v 1.14 2000/03/27 22:25:45 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 |
#ifdef ALLOW_OBCS |
32 |
INTEGER bi,bj,K |
33 |
#endif |
34 |
|
35 |
C-- Set model parameters. |
36 |
C Parameters are set to defaults and then updates are read from |
37 |
C an input file called data. |
38 |
CALL INI_PARMS( myThid ) |
39 |
_BARRIER |
40 |
|
41 |
#ifdef ALLOW_OBCS |
42 |
C-- Open boundaries positions |
43 |
CALL INI_OBCS( myThid ) |
44 |
#endif |
45 |
_BARRIER |
46 |
|
47 |
C-- Set model grid. |
48 |
C Variables defining model grid spacing are defined. |
49 |
CALL INI_GRID( myThid ) |
50 |
_BARRIER |
51 |
|
52 |
C-- Initialise map of depths |
53 |
CALL INI_DEPTHS( myThid ) |
54 |
_BARRIER |
55 |
|
56 |
C-- Derive masks, lopping factors and recipricols of quantities. |
57 |
C Volumes and areas are set according to grid and depth map. |
58 |
CALL INI_MASKS_ETC( myThid ) |
59 |
_BARRIER |
60 |
|
61 |
#ifdef INCLUDE_LAT_CIRC_FFT_FILTER_CODE |
62 |
C-- Latitude circle filter initialisation |
63 |
CALL FILTER_LATCIRC_FFT_INIT(myThid) |
64 |
_BARRIER |
65 |
#endif |
66 |
|
67 |
C-- Set coriolis operators |
68 |
CALL INI_CORI( myThid ) |
69 |
|
70 |
C-- Set laplace operators for use in 2D conjugate gradient solver. |
71 |
CALL INI_CG2D( myThid ) |
72 |
|
73 |
#ifdef ALLOW_NONHYDROSTATIC |
74 |
C-- Set laplace operators for use in 3D conjugate gradient solver. |
75 |
CALL INI_CG3D( myThid ) |
76 |
#endif |
77 |
|
78 |
C-- Finally summarise the model cofiguration |
79 |
CALL CONFIG_SUMMARY( myThid ) |
80 |
|
81 |
END |