/[MITgcm]/MITgcm/model/src/initialise_fixed.F
ViewVC logotype

Contents of /MITgcm/model/src/initialise_fixed.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8.4.1 - (show annotations) (download)
Mon Apr 8 20:10:37 2002 UTC (22 years, 1 month ago) by heimbach
Branch: release1
CVS Tags: release1_p13_pre, release1_p13, release1_p8, release1_p9, release1_p1, release1_p2, release1_p3, release1_p4, release1_p5, release1_p6, release1_p7, release1_chkpt44d_post, release1_p11, release1_p12, release1_p10, release1_p16, release1_p17, release1_p14, release1_p15, release1_p12_pre
Branch point for: release1_50yr
Changes since 1.8: +7 -2 lines
Changes encapsulated by checkpoint43a-release1mods and chkpt44d_post
on the main trunk.
These are:

 o added missing EXCLUDE_MONITOR flags
 o changed "e" to "_d" in gmredi_slope_limit, gmredi_slope_psi
   (incompatible typ in MIN/MAX expressions caused problems
   on IBM SP3)
 o in genmake added variable MAKEDEPEND
   plus resetting for case SunOS
 o added timer_stats.c routine for IBM SP3
 o removed variables in dynamics
 o real fresh water flux implemented with non-linear free-surface.
 o few fix (mask in shap_s2, EmPmR in external_field_load,
   USE_NATURAL_BCS in solve_for_P);
 o add arguments myIter & myTime to S/R obcs_calc & solve_for_P
 o merge of relevant stuff from the ecco-branch:
   - genmake: removed $S64 overwrite for case SunOS
   - pkg/exf: update and corrections for field swapping and obcs
   - pkg/ecco: parameter lists for the_model_main, the_main_loop
               harmonized between ECCO and MITgcm
   - pkg/autodiff: added flow directives for obcs, mdsio_gl_slice
                   updated checkpointing_lev... lists for obcs
   - model/src: minor changes in forward_step, plot_field
                added directive for divided adjoint in the_main_loop
   - pkg/mdsio: added mdsio_gl_slice
 o check parameters & config (chkpt44a_pre,post)
 o OBC and NonLin_FrSurf.
 o fix bug in mom_vi_del2uv
 o select when filters are applied ; add options to zonal_filter (data.zonfilt)
 o gmredi: fix Pb in the adiabatic form ; add options (.e.g. Bolus advection)
 o update AIM experiments (NCEP input files)
 o improve and extend diagnostics (Monitor, TimeAve with NonLin-FrSurf)
 o added some stuff for AD

These were merged with
cvs co -r release1 -P MITgcm
cd MITgcm
cvs update -kk
cvs update -j checkpoint43a-release1mods -j chkpt44d_post -d -P -kk

1 C $Header$
2 C $Name$
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: INITIALISE_FIXED
8 C !INTERFACE:
9 SUBROUTINE INITIALISE_FIXED(myThid)
10
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE INITIALISE_FIXED
14 C | o Routine for setting fixed model arrays such as
15 C | topography, grid, solver matrices, etc.
16 C *==========================================================*
17 C | INITIALISE_FIXED is invoked at the start of the model to
18 C | set fixed model arrays. It reads data from an input file
19 C | and from various binary files.
20 C | Each thread invokes an instance of this routine as does
21 C | each process in a multi-process parallel environment like
22 C | MPI.
23 C *==========================================================*
24 C \ev
25
26 C !CALLING SEQUENCE:
27 C INITIALISE_FIXED
28 C |
29 C |-- INI_PARMS
30 C |
31 C |-- MON_INIT
32 C |
33 C |-- INI_GRID
34 C |
35 C |-- INI_DEPTHS
36 C |
37 C |-- INI_MASKS_ETC
38 C |
39 C |-- INI_LINEAR_PHSURF
40 C |
41 C |-- INI_CORI
42 C |
43 C |-- PACKAGES_BOOT
44 C |
45 C |-- PACKAGES_READPARMS
46 C |
47 C |-- PACKAGES_CHECK
48 C |
49 C |-- PACKAGES_INIT_FIXED
50 C |
51 C |-- ZONAL_FILT_INIT
52 C |
53 C |-- INI_CG2D
54 C |
55 C |-- INI_CG3D
56 C |
57 C |-- CONFIG_CHECK
58 C |
59 C |-- CONFIG_SUMMARY
60
61 C !USES:
62 IMPLICIT NONE
63 C == Global variables ==
64 #include "SIZE.h"
65 #include "EEPARAMS.h"
66 #include "PARAMS.h"
67
68 C !INPUT/OUTPUT PARAMETERS:
69 C == Routine arguments ==
70 INTEGER myThid
71 CEOP
72
73 C-- Set model parameters.
74 C Parameters are set to defaults and then updates are read from
75 C an input file called data.
76 CALL INI_PARMS( myThid )
77 _BARRIER
78
79 #ifndef EXCLUDE_MONITOR
80 C-- Initialise MONITOR I/O streams so we can report config. info
81 CALL MON_INIT( myThid )
82 _BARRIER
83 #endif
84
85
86 C-- Set model grid.
87 C Variables defining model grid spacing are defined.
88 CALL INI_GRID( myThid )
89 _BARRIER
90
91 C-- Initialise map of depths
92 CALL INI_DEPTHS( myThid )
93 _BARRIER
94
95 C-- Derive masks, lopping factors and recipricols of quantities.
96 C Volumes and areas are set according to grid and depth map.
97 CALL INI_MASKS_ETC( myThid )
98 _BARRIER
99
100 C-- Set Bo_surf => define the Linear Relation: Phi_surf(eta)
101 CALL INI_LINEAR_PHISURF( myThid )
102
103 C-- Set coriolis operators
104 CALL INI_CORI( myThid )
105
106 C-- Configure packages
107 CALL PACKAGES_BOOT( myThid )
108
109 C-- Read configuration parameters for packages
110 CALL PACKAGES_READPARMS( myThid )
111
112 C-- Check dependances between packages
113 CALL PACKAGES_CHECK( myThid )
114
115 C-- Call fixed data initialization phase of packages
116 CALL PACKAGES_INIT_FIXED( myThid )
117
118 #ifdef ALLOW_ZONAL_FILT
119 C-- Latitude circle filter initialisation
120 CALL ZONAL_FILT_INIT(myThid)
121 _BARRIER
122 #endif
123
124 C-- Set laplace operators for use in 2D conjugate gradient solver.
125 CALL INI_CG2D( myThid )
126
127 #ifdef ALLOW_NONHYDROSTATIC
128 C-- Set laplace operators for use in 3D conjugate gradient solver.
129 CALL INI_CG3D( myThid )
130 #endif
131
132 C-- Check parameters and model cofiguration
133 CALL CONFIG_CHECK( myThid )
134
135 C-- Finally summarise the model cofiguration
136 CALL CONFIG_SUMMARY( myThid )
137
138 END

  ViewVC Help
Powered by ViewVC 1.1.22