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

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

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


Revision 1.2 - (hide annotations) (download)
Wed Jun 21 19:02:52 2000 UTC (23 years, 10 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint29, checkpoint30
Changes since 1.1: +8 -2 lines
Introduced calls to package_init() and package_check() to
begin process of packaging model.

1 adcroft 1.2 C $Header: /u/gcmpack/models/MITgcmUV/model/src/initialise_fixed.F,v 1.1 2000/04/05 19:04:14 adcroft Exp $
2 adcroft 1.1
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 adcroft 1.2 CALL INI_PARMS( myThid )
39 adcroft 1.1 _BARRIER
40    
41 adcroft 1.2 C-- Configure packages
42     CALL PACKAGE_INIT( myThid )
43    
44 adcroft 1.1 #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 adcroft 1.2
84     C-- Check dependances between packages
85     CALL PACKAGE_CHECK( myThid )
86 adcroft 1.1
87     END

  ViewVC Help
Powered by ViewVC 1.1.22