C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/model/src/initialise_fixed.F,v 1.7 2001/07/06 21:39:37 jmc Exp $ C $Name: $ #include "CPP_OPTIONS.h" CStartOfInterface 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 C == Global variables == #include "SIZE.h" #include "EEPARAMS.h" #include "PARAMS.h" C == Routine arguments == INTEGER myThid CEndOfInterface C == Local variables == C-- Set model parameters. C Parameters are set to defaults and then updates are read from C an input file called data. CALL INI_PARMS( myThid ) _BARRIER #ifndef EXCLUDE_MONITOR C-- Initialise MONITOR I/O streams so we can report config. info CALL MON_INIT( myThid ) _BARRIER #endif C-- Set model grid. C Variables defining model grid spacing are defined. CALL INI_GRID( myThid ) _BARRIER C-- Initialise map of depths CALL INI_DEPTHS( myThid ) _BARRIER C-- Derive masks, lopping factors and recipricols of quantities. C Volumes and areas are set according to grid and depth map. CALL INI_MASKS_ETC( myThid ) _BARRIER C-- Set Bo_surf => define the Linear Relation: Phi_surf(eta) CALL INI_LINEAR_PHISURF( myThid ) C-- Set coriolis operators CALL INI_CORI( myThid ) C-- Configure packages CALL PACKAGES_BOOT( myThid ) C-- Read configuration parameters for packages CALL PACKAGES_READPARMS( myThid ) C-- Check dependances between packages CALL PACKAGES_CHECK( myThid ) C-- Call fixed data initialization phase of packages CALL PACKAGES_INIT_FIXED( myThid ) #ifdef ALLOW_ZONAL_FILT C-- Latitude circle filter initialisation CALL ZONAL_FILT_INIT(myThid) _BARRIER #endif C-- Set laplace operators for use in 2D conjugate gradient solver. CALL INI_CG2D( myThid ) #ifdef ALLOW_NONHYDROSTATIC C-- Set laplace operators for use in 3D conjugate gradient solver. CALL INI_CG3D( myThid ) #endif C-- Finally summarise the model cofiguration CALL CONFIG_SUMMARY( myThid ) END