1 |
C $Header: /u/gcmpack/models/MITgcmUV/model/src/initialise_fixed.F,v 1.1 2000/04/05 19:04:14 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 |
C-- Configure packages |
42 |
CALL PACKAGE_INIT( myThid ) |
43 |
|
44 |
#ifdef ALLOW_OBCS |
45 |
C-- Open boundaries positions |
46 |
CALL INI_OBCS( myThid ) |
47 |
#endif |
48 |
_BARRIER |
49 |
|
50 |
C-- Set model grid. |
51 |
C Variables defining model grid spacing are defined. |
52 |
CALL INI_GRID( myThid ) |
53 |
_BARRIER |
54 |
|
55 |
C-- Initialise map of depths |
56 |
CALL INI_DEPTHS( myThid ) |
57 |
_BARRIER |
58 |
|
59 |
C-- Derive masks, lopping factors and recipricols of quantities. |
60 |
C Volumes and areas are set according to grid and depth map. |
61 |
CALL INI_MASKS_ETC( myThid ) |
62 |
_BARRIER |
63 |
|
64 |
#ifdef INCLUDE_LAT_CIRC_FFT_FILTER_CODE |
65 |
C-- Latitude circle filter initialisation |
66 |
CALL FILTER_LATCIRC_FFT_INIT(myThid) |
67 |
_BARRIER |
68 |
#endif |
69 |
|
70 |
C-- Set coriolis operators |
71 |
CALL INI_CORI( myThid ) |
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 |
C-- Check dependances between packages |
85 |
CALL PACKAGE_CHECK( myThid ) |
86 |
|
87 |
END |