[3] | 1 | MODULE par_oce |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** par_oce *** |
---|
| 4 | !! Ocean : set the ocean parameters |
---|
| 5 | !!====================================================================== |
---|
[2528] | 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 |
---|
[3] | 9 | !!---------------------------------------------------------------------- |
---|
[15] | 10 | USE par_kind ! kind parameters |
---|
[3] | 11 | |
---|
| 12 | IMPLICIT NONE |
---|
| 13 | PUBLIC |
---|
| 14 | |
---|
| 15 | !!---------------------------------------------------------------------- |
---|
[4147] | 16 | !! namcfg namelist parameters |
---|
| 17 | !!---------------------------------------------------------------------- |
---|
[6667] | 18 | LOGICAL :: ln_read_cfg !: (=T) read the domain configuration in 'domain_cfg.nc" file |
---|
| 19 | LOGICAL :: ln_write_cfg !: (=T) create the domain configuration file |
---|
| 20 | ! |
---|
[4147] | 21 | CHARACTER(lc) :: cp_cfg !: name of the configuration |
---|
[6667] | 22 | INTEGER :: jp_cfg !: resolution of the configuration |
---|
| 23 | LOGICAL :: ln_use_jattr !: input file read offset |
---|
| 24 | ! ! Use file global attribute: open_ocean_jstart to determine start j-row |
---|
| 25 | ! ! when reading input from those netcdf files that have the |
---|
| 26 | ! ! attribute defined. This is designed to enable input files associated |
---|
| 27 | ! ! with the extended grids used in the under ice shelf configurations to |
---|
| 28 | ! ! be used without redundant rows when the ice shelves are not in use. |
---|
[3] | 29 | |
---|
[6596] | 30 | !!--------------------------------------------------------------------- |
---|
| 31 | !! Domain Matrix size |
---|
| 32 | !!--------------------------------------------------------------------- |
---|
[3] | 33 | |
---|
[6596] | 34 | ! global domain size !!! * total computational domain * |
---|
[6595] | 35 | INTEGER :: jpiglo !: 1st dimension of global domain --> i-direction |
---|
| 36 | INTEGER :: jpjglo !: 2nd - - --> j-direction |
---|
| 37 | INTEGER :: jpkglo !: 3nd - - --> k levels |
---|
[3294] | 38 | |
---|
[6596] | 39 | #if defined key_agrif |
---|
[3] | 40 | |
---|
[6596] | 41 | !!gm BUG ? I'm surprised by the calculation below of nbcellsx and nbcellsy before jpiglo,jpjglo |
---|
| 42 | !!gm has been assigned to a value.... |
---|
| 43 | !!gm |
---|
| 44 | |
---|
| 45 | ! global domain size for AGRIF !!! * total AGRIF computational domain * |
---|
| 46 | INTEGER, PUBLIC, PARAMETER :: nbghostcells = 1 !: number of ghost cells |
---|
| 47 | INTEGER, PUBLIC :: nbcellsx = jpiglo - 2 - 2*nbghostcells !: number of cells in i-direction |
---|
| 48 | INTEGER, PUBLIC :: nbcellsy = jpjglo - 2 - 2*nbghostcells !: number of cells in j-direction |
---|
| 49 | #endif |
---|
| 50 | |
---|
| 51 | ! local domain size !!! * local computational domain * |
---|
| 52 | INTEGER, PUBLIC :: jpi ! = ( jpiglo-2*jpreci + (jpni-1) ) / jpni + 2*jpreci !: first dimension |
---|
| 53 | INTEGER, PUBLIC :: jpj ! = ( jpjglo-2*jprecj + (jpnj-1) ) / jpnj + 2*jprecj !: second dimension |
---|
[6667] | 54 | INTEGER, PUBLIC :: jpk ! = jpkglo |
---|
[6596] | 55 | INTEGER, PUBLIC :: jpim1 ! = jpi-1 !: inner domain indices |
---|
| 56 | INTEGER, PUBLIC :: jpjm1 ! = jpj-1 !: - - - |
---|
| 57 | INTEGER, PUBLIC :: jpkm1 ! = jpk-1 !: - - - |
---|
| 58 | INTEGER, PUBLIC :: jpij ! = jpi*jpj !: jpi x jpj |
---|
| 59 | |
---|
[3] | 60 | !!--------------------------------------------------------------------- |
---|
[2528] | 61 | !! Active tracer parameters |
---|
| 62 | !!--------------------------------------------------------------------- |
---|
| 63 | INTEGER, PUBLIC, PARAMETER :: jpts = 2 !: Number of active tracers (=2, i.e. T & S ) |
---|
| 64 | INTEGER, PUBLIC, PARAMETER :: jp_tem = 1 !: indice for temperature |
---|
| 65 | INTEGER, PUBLIC, PARAMETER :: jp_sal = 2 !: indice for salinity |
---|
[3] | 66 | |
---|
[6667] | 67 | !!---------------------------------------------------------------------- |
---|
| 68 | !! Domain decomposition |
---|
| 69 | !!---------------------------------------------------------------------- |
---|
| 70 | !! if we dont use massively parallel computer (parameters jpni=jpnj=1) so jpiglo=jpi and jpjglo=jpj |
---|
| 71 | INTEGER, PUBLIC :: jpni !: number of processors following i |
---|
| 72 | INTEGER, PUBLIC :: jpnj !: number of processors following j |
---|
| 73 | INTEGER, PUBLIC :: jpnij !: nb of local domain = nb of processors ( <= jpni x jpnj ) |
---|
| 74 | INTEGER, PUBLIC, PARAMETER :: jpr2di = 0 !: number of columns for extra outer halo |
---|
| 75 | INTEGER, PUBLIC, PARAMETER :: jpr2dj = 0 !: number of rows for extra outer halo |
---|
| 76 | INTEGER, PUBLIC, PARAMETER :: jpreci = 1 !: number of columns for overlap |
---|
| 77 | INTEGER, PUBLIC, PARAMETER :: jprecj = 1 !: number of rows for overlap |
---|
[3] | 78 | |
---|
[2528] | 79 | !!---------------------------------------------------------------------- |
---|
[6667] | 80 | !! NEMO/OPA 4.0 , NEMO Consortium (2016) |
---|
[2528] | 81 | !! $Id$ |
---|
| 82 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
[3] | 83 | !!====================================================================== |
---|
| 84 | END MODULE par_oce |
---|