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 utils/tools_dev_r12970_AGRIF_CMEMS/DOMAINcfg/src – NEMO

source: utils/tools_dev_r12970_AGRIF_CMEMS/DOMAINcfg/src/par_oce.f90 @ 13056

Last change on this file since 13056 was 13056, checked in by rblod, 4 years ago

ticket #2129 : cleaning domcfg

File size: 6.6 KB
Line 
1MODULE par_oce
2   !!======================================================================
3   !!                        ***  par_oce  ***
4   !! Ocean :   set the ocean parameters
5   !!======================================================================
6   !! History :  OPA  !  1991     (Imbard, Levy, Madec)  Original code
7   !!   NEMO     1.0  !  2004-01  (G. Madec, J.-M. Molines)  Free form and module
8   !!            3.3  !  2010-09  (C. Ethe) TRA-TRC merge: add jpts, jp_tem & jp_sal
9   !!----------------------------------------------------------------------
10   USE par_kind          ! kind parameters
11
12   IMPLICIT NONE
13   PUBLIC
14
15   INTEGER , PUBLIC                                      ::   nn_dttrc      !: frequency of step on passive tracers
16   CHARACTER(lc) ::   cp_cfg           !: name of the configuration
17   CHARACTER(lc) ::   cp_cfz           !: name of the zoom of configuration
18   INTEGER       ::   jp_cfg           !: resolution of the configuration
19
20   ! data size                                       !!! * size of all input files *
21   INTEGER       ::   jpidta           !: 1st lateral dimension ( >= jpi )
22   INTEGER       ::   jpjdta           !: 2nd    "         "    ( >= jpj )
23   INTEGER       ::   jpkdta           !: number of levels      ( >= jpk )
24   LOGICAL       ::   ln_e3_dep        ! e3. definition flag
25   REAL(wp)      ::   pp_not_used       = 999999._wp   !: vertical grid parameter
26   REAL(wp)      ::   pp_to_be_computed = 999999._wp   !:    -      -       -
27   !!----------------------------------------------------------------------
28   !!                   namcfg namelist parameters
29   !!----------------------------------------------------------------------
30   LOGICAL       ::   ln_read_cfg      !: (=T) read the domain configuration file or (=F) not
31   CHARACTER(lc) ::      cn_domcfg        !: filename the configuration file to be read
32   LOGICAL       ::   ln_write_cfg     !: (=T) create the domain configuration file
33   CHARACTER(lc) ::      cn_domcfg_out    !: filename the configuration file to be read
34   !
35   LOGICAL       ::   ln_use_jattr     !: input file read offset
36   !                                   !  Use file global attribute: open_ocean_jstart to determine start j-row
37   !                                   !  when reading input from those netcdf files that have the
38   !                                   !  attribute defined. This is designed to enable input files associated
39   !                                   !  with the extended grids used in the under ice shelf configurations to
40   !                                   !  be used without redundant rows when the ice shelves are not in use.
41   !
42
43   !!---------------------------------------------------------------------
44   !! Domain Matrix size
45   !!---------------------------------------------------------------------
46   ! configuration name & resolution   (required only in ORCA family case)
47   CHARACTER(lc) ::   cn_cfg           !: name of the configuration
48   INTEGER       ::   nn_cfg           !: resolution of the configuration
49
50   ! global domain size               !!! * total computational domain *
51   INTEGER       ::   jpiglo           !: 1st dimension of global domain --> i-direction
52   INTEGER       ::   jpjglo           !: 2nd    -                  -    --> j-direction
53   INTEGER       ::   jpkglo           !: 3nd    -                  -    --> k levels
54
55   ! global domain size for AGRIF     !!! * total AGRIF computational domain *
56   INTEGER, PUBLIC            ::   nbug_in_agrif_conv_do_not_remove_or_modify = 1 - 1
57   INTEGER, PUBLIC, PARAMETER ::   nbghostcells = 3 !: number of ghost cells: default value
58   INTEGER, PUBLIC            ::   nbghostcells_x   !: number of ghost cells in i-direction
59   INTEGER, PUBLIC            ::   nbghostcells_y_s   !: number of ghost cells in j-direction at south
60   INTEGER, PUBLIC            ::   nbghostcells_y_n   !: number of ghost cells in j-direction at north
61   INTEGER, PUBLIC            ::   nbcellsx   ! = jpiglo - 2 - 2*nbghostcells_x   !: number of cells in i-direction
62   INTEGER, PUBLIC            ::   nbcellsy   ! = jpjglo - 2 - 2*nbghostcells_y   !: number of cells in j-direction
63
64   ! local domain size                !!! * local computational domain *
65   INTEGER, PUBLIC ::   jpi   !                                                    !: first  dimension
66   INTEGER, PUBLIC ::   jpj   !                                                    !: second dimension
67   INTEGER, PUBLIC ::   jpk   ! = jpkglo                                           !: third  dimension
68   INTEGER, PUBLIC ::   jpim1 ! = jpi-1                                            !: inner domain indices
69   INTEGER, PUBLIC ::   jpjm1 ! = jpj-1                                            !:   -     -      -
70   INTEGER, PUBLIC ::   jpkm1 ! = jpk-1                                            !:   -     -      -
71   INTEGER, PUBLIC ::   jpij  ! = jpi*jpj                                          !:  jpi x jpj
72   INTEGER, PUBLIC ::   jpimax! = ( jpiglo-2*nn_hls + (jpni-1) ) / jpni + 2*nn_hls !: maximum jpi
73   INTEGER, PUBLIC ::   jpjmax! = ( jpjglo-2*nn_hls + (jpnj-1) ) / jpnj + 2*nn_hls !: maximum jpj
74
75   !!---------------------------------------------------------------------
76   !! Active tracer parameters
77   !!---------------------------------------------------------------------
78   INTEGER, PUBLIC, PARAMETER ::   jpts   = 2    !: Number of active tracers (=2, i.e. T & S )
79   INTEGER, PUBLIC, PARAMETER ::   jp_tem = 1    !: indice for temperature
80   INTEGER, PUBLIC, PARAMETER ::   jp_sal = 2    !: indice for salinity
81
82   !!----------------------------------------------------------------------
83   !!   Domain decomposition
84   !!----------------------------------------------------------------------
85   !! if we dont use massively parallel computer (parameters jpni=jpnj=1) so jpiglo=jpi and jpjglo=jpj
86   INTEGER, PUBLIC            ::   jpni         !: number of processors following i
87   INTEGER, PUBLIC            ::   jpnj         !: number of processors following j
88   INTEGER, PUBLIC            ::   jpnij        !: nb of local domain = nb of processors ( <= jpni x jpnj )
89   INTEGER, PUBLIC, PARAMETER ::   jpr2di = 0   !: number of columns for extra outer halo
90   INTEGER, PUBLIC, PARAMETER ::   jpr2dj = 0   !: number of rows    for extra outer halo
91   INTEGER, PUBLIC, PARAMETER ::   nn_hls = 1   !: halo width (applies to both rows and columns)
92
93   !!----------------------------------------------------------------------
94   !! NEMO/OCE 4.0 , NEMO Consortium (2018)
95   !! $Id: par_oce.F90 10068 2018-08-28 14:09:04Z nicolasmartin $
96   !! Software governed by the CeCILL license (see ./LICENSE)
97   !!======================================================================
98END MODULE par_oce
Note: See TracBrowser for help on using the repository browser.