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

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

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

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

Legend:
Removed from v.1.3.2.3  
changed lines
  Added in v.1.12.2.1

  ViewVC Help
Powered by ViewVC 1.1.22