New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
par_oce.F90 in trunk/NEMO/OPA_SRC – NEMO

source: trunk/NEMO/OPA_SRC/par_oce.F90 @ 176

Last change on this file since 176 was 176, checked in by opalod, 19 years ago

CT : BUGFIX121 : correct a syntax error on the initialization of jpjdta parameter in the default case

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.0 KB
Line 
1MODULE par_oce
2   !!======================================================================
3   !!                        ***  par_oce  ***
4   !! Ocean :   set the ocean parameters
5   !!======================================================================
6   !! History :
7   !!   4.0  !  91     (Imbard, Levy, Madec)  Original code
8   !!   9.0  !  04-01  (G. Madec, J.-M. Molines)  Free form and module
9   !!----------------------------------------------------------------------
10   !!  OPA 9.0, LODYC-IPSL (2004)
11   !!----------------------------------------------------------------------
12   !! * Modules used
13   USE par_kind          ! kind parameters
14
15   IMPLICIT NONE
16   PUBLIC
17
18   !!----------------------------------------------------------------------
19   !!   Domain decomposition
20   !!----------------------------------------------------------------------
21   !! * if we dont use massively parallel computer (parameters jpni=jpnj=1)
22   !!      so jpiglo=jpi and jpjglo=jpj
23
24   INTEGER, PUBLIC, PARAMETER ::    &  !:
25      jpni   = 1,                   &  !: number of processors following i
26      jpnj   = 1,                   &  !: number of processors following j
27      jpnij  = 1,                   &  !: nb of local domain = nb of processors
28      !                                !  ( <= jpni x jpnj )
29      jpreci = 1,                   &  !: number of columns for overlap
30      jprecj = 1                       !: number of rows    for overlap
31
32   !! Ocean Domain sizes
33   !! ------------------
34   !!   data           domain   (jpidta,jpjdta)
35   !!   global or zoom domain   (jpiglo,jpjglo)
36   !!   local          domain   ( jpi  , jpj  )
37   
38#if   defined key_orca_r4
39   !!---------------------------------------------------------------------
40   !!   'key_orca_r4'   :                           global ocean : ORCA R4
41   !!---------------------------------------------------------------------
42#             include "par_ORCA_R4.h90"
43#elif defined key_orca_r2
44   !!---------------------------------------------------------------------
45   !!   'key_orca_r2'   :                           global ocean : ORCA R4
46   !!---------------------------------------------------------------------
47#             include "par_ORCA_R2.h90"
48#elif defined key_orca_r05
49   !!---------------------------------------------------------------------
50   !!   'key_orca_r05'  :                          global ocean : ORCA R05
51   !!---------------------------------------------------------------------
52#             include "par_ORCA_R05.h90"
53#elif defined key_orca_r025
54   !!---------------------------------------------------------------------
55   !!   'key_orca_r025' :                         global ocean : ORCA R025
56   !!---------------------------------------------------------------------
57#             include "par_ORCA_R025.h90"
58#elif defined key_eel_r2
59   !!---------------------------------------------------------------------
60   !!   'key_eel_r2'    :                                 channel : EEL R2
61   !!---------------------------------------------------------------------
62#             include "par_EEL_R2.h90"
63#elif defined key_eel_r5
64   !!---------------------------------------------------------------------
65   !!   'key_eel_r5'    :                                 channel : EEL R5
66   !!---------------------------------------------------------------------
67#             include "par_EEL_R5.h90"
68#elif defined key_eel_r6
69   !!---------------------------------------------------------------------
70   !!   'key_eel_r6'    :                                 channel : EEL R6
71   !!---------------------------------------------------------------------
72#             include "par_EEL_R6.h90"
73#elif defined key_gyre
74   !!---------------------------------------------------------------------
75   !!   'key_gyre'      :                         midlatidude basin : GYRE
76   !!---------------------------------------------------------------------
77#             include "par_GYRE.h90"
78#else
79   !!---------------------------------------------------------------------
80   !!   default option  :                               small closed basin
81   !!---------------------------------------------------------------------
82   CHARACTER(len=16), PUBLIC, PARAMETER ::   &  !:
83      cp_cfg = "default"               !: name of the configuration
84   INTEGER, PARAMETER ::            &  !:
85      jp_cfg = 0  ,                 &  !: resolution of the configuration
86
87      ! data size                     !!! * size of all input files *
88      jpidta  = 10,                 &  !: 1st lateral dimension ( >= jpi )
89      jpjdta  = 12,                 &  !: 2nd    "         "    ( >= jpj )
90      jpkdta  = 31,                 &  !: number of levels      ( >= jpk )
91
92      ! global or zoom domain size    !!! * computational domain *
93      jpiglo  = jpidta,             &  !: 1st dimension of global domain --> i
94      jpjglo  = jpjdta,             &  !: 2nd    "                  "    --> j
95      jpk     = jpkdta,             &  !: number of vertical levels
96      ! zoom starting position
97      jpizoom =   1   ,             &  !: left bottom (i,j) indices of the zoom
98      jpjzoom =   1   ,             &  !: in data domain indices
99
100      ! Domain characteristics
101      jperio  =  0,                 &  !: lateral cond. type (between 0 and 6)
102         !                             !  = 0 closed
103         !                             !  = 1 cyclic East-West
104         !                             !  = 2 equatorial symmetric
105         !                             !  = 3 North fold T-point pivot
106         !                             !  = 4 cyclic East-West AND North fold T-point pivot
107         !                             !  = 5 North fold F-point pivot
108         !                             !  = 6 cyclic East-West AND North fold F-point pivot
109      jpisl   =  0,                 &  !: number of islands (rigid-lid only)
110      jpnisl  =  0                     !: maximum number of points per island
111
112      !!  Values set to pp_not_used indicates that this parameter is not used in THIS config.
113      !!  Values set to pp_to_be_computed  indicates that variables will be computed in domzgr
114      REAL(wp), PARAMETER ::   &  !:
115         pp_not_used       = 999999._wp , &  !:
116         pp_to_be_computed = 999999._wp      !:
117
118
119   !! Horizontal grid parameters for domhgr
120   !! =====================================
121
122   INTEGER, PUBLIC, PARAMETER   ::   &  !:
123      jphgr_msh = 0            !: type of horizontal mesh
124      !                        !  = 0 curvilinear coordinate on the sphere
125      !                        !      read in coordinate.nc file
126      !                        !  = 1 geographical mesh on the sphere
127      !                        !      with regular grid-spacing
128      !                        !  = 2 f-plane with regular grid-spacing
129      !                        !  = 3 beta-plane with regular grid-spacing
130      !                        !  = 4 Mercator grid with T/U point at the equator  with
131      !                        !      isotropic resolution (e1_deg)
132
133   REAL(wp) , PUBLIC, PARAMETER ::   &   !:
134      ppglam0  =    0.0_wp,   &  !: longitude of first raw and column T-point (jphgr_msh = 1)
135      ppgphi0  =  -35.0_wp,   &  !: latitude  of first raw and column T-point (jphgr_msh = 1)
136      !                          !  latitude for the Coriolis or Beta parameter (jphgr_msh = 2 or 3)
137      ppe1_deg =    1.0_wp,   &  !: zonal      grid-spacing (degrees)
138      ppe2_deg =    0.5_wp,   &  !: meridional grid-spacing (degrees)
139      ppe1_m   = 5000.0_wp,   &  !: zonal      grid-spacing (degrees)
140      ppe2_m   = 5000.0_wp       !: meridional grid-spacing (degrees)
141
142   !! Vertical grid parameter for domzgr
143   !! ==================================
144
145   REAL(wp), PUBLIC, PARAMETER  ::   &  !:
146      &     ppsur = -4762.96143546300_wp ,  &  !: ORCA r4, r2 and r05 coefficients
147      &     ppa0  =   255.58049070440_wp ,  &  !: (default coefficients)
148      &     ppa1  =   245.58132232490_wp ,  &  !:
149      &     ppkth =    21.43336197938_wp ,  &  !:
150      &     ppacr =     3.00000000000_wp       !:
151
152   !!  If both ppa0 ppa1 and ppsur are specified to 0, then
153   !!  they are computed from ppdzmin, pphmax , ppkth, ppacr in dom_zgr
154
155   REAL(wp), PUBLIC, PARAMETER ::   &  !:
156      &     ppdzmin = 10._wp             ,  &  !: Minimum vertical spacing
157      &     pphmax  = 5000._wp                 !: Maximum depth
158
159   !!---------------------------------------------------------------------
160#endif
161
162   !!---------------------------------------------------------------------
163   !! Domain Matrix size
164   !!---------------------------------------------------------------------
165   INTEGER, PUBLIC, PARAMETER ::   &  !:
166      jpi = ( jpiglo-2*jpreci + (jpni-1) ) / jpni + 2*jpreci ,   &  !: first  dimension
167      jpj = ( jpjglo-2*jprecj + (jpnj-1) ) / jpnj + 2*jprecj ,   &  !: second dimension
168      jpim1 = jpi-1,                                             &  !: inner domain indices
169      jpjm1 = jpj-1,                                             &  !:   "            "
170      jpkm1 = jpk-1,                                             &  !:   "            "
171      jpij  = jpi*jpj                                               !:  jpi x jpj
172
173   !!---------------------------------------------------------------------
174   !! Optimization/control flags
175   !!---------------------------------------------------------------------
176#if defined key_esopa
177   LOGICAL, PUBLIC, PARAMETER ::   lk_esopa     = .TRUE.   !: flag to activate the all options
178#else
179   LOGICAL, PUBLIC, PARAMETER ::   lk_esopa     = .FALSE.  !: flag to activate the all options
180#endif
181
182#if defined key_vectopt_memory
183   LOGICAL, PUBLIC, PARAMETER ::   lk_vopt_mem  = .TRUE.   !: vector optimization flag
184#else
185   LOGICAL, PUBLIC, PARAMETER ::   lk_vopt_mem  = .FALSE.  !: vector optimization flag
186#endif
187
188#if defined key_vectopt_loop
189   LOGICAL, PUBLIC, PARAMETER ::   lk_vopt_loop = .TRUE.   !: vector optimization flag
190#else
191   LOGICAL, PUBLIC, PARAMETER ::   lk_vopt_loop = .FALSE.  !: vector optimization flag
192#endif
193
194   !!======================================================================
195END MODULE par_oce
Note: See TracBrowser for help on using the repository browser.