[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 | |
---|
[7646] | 15 | !!--------------------------------------------------------------------- |
---|
| 16 | !! Domain Matrix size |
---|
| 17 | !!--------------------------------------------------------------------- |
---|
[10009] | 18 | ! time dimension and index |
---|
| 19 | INTEGER, PUBLIC :: Nt !: number of time-level used |
---|
| 20 | INTEGER, PUBLIC :: Nbb, Nnn, Naa !: before, now, after time-level indices |
---|
[3] | 21 | |
---|
[7646] | 22 | ! global domain size !!! * total computational domain * |
---|
| 23 | INTEGER :: jpiglo !: 1st dimension of global domain --> i-direction |
---|
| 24 | INTEGER :: jpjglo !: 2nd - - --> j-direction |
---|
| 25 | INTEGER :: jpkglo !: 3nd - - --> k levels |
---|
[10009] | 26 | !!gm to be used in futur (?): |
---|
| 27 | !! INTEGER, PUBLIC :: Niglo , Njglo , Nkglo !: global domain size |
---|
[3294] | 28 | |
---|
[7646] | 29 | ! global domain size for AGRIF !!! * total AGRIF computational domain * |
---|
[9449] | 30 | INTEGER, PUBLIC :: nbug_in_agrif_conv_do_not_remove_or_modify = 1 - 1 |
---|
[9787] | 31 | INTEGER, PUBLIC, PARAMETER :: nbghostcells = 3 !: number of ghost cells |
---|
[9449] | 32 | INTEGER, PUBLIC :: nbcellsx ! = jpiglo - 2 - 2*nbghostcells !: number of cells in i-direction |
---|
| 33 | INTEGER, PUBLIC :: nbcellsy ! = jpjglo - 2 - 2*nbghostcells !: number of cells in j-direction |
---|
[5118] | 34 | |
---|
[7646] | 35 | ! local domain size !!! * local computational domain * |
---|
[9449] | 36 | INTEGER, PUBLIC :: jpi ! !: first dimension |
---|
| 37 | INTEGER, PUBLIC :: jpj ! !: second dimension |
---|
| 38 | INTEGER, PUBLIC :: jpk ! = jpkglo !: third dimension |
---|
[7646] | 39 | INTEGER, PUBLIC :: jpim1 ! = jpi-1 !: inner domain indices |
---|
| 40 | INTEGER, PUBLIC :: jpjm1 ! = jpj-1 !: - - - |
---|
| 41 | INTEGER, PUBLIC :: jpkm1 ! = jpk-1 !: - - - |
---|
| 42 | INTEGER, PUBLIC :: jpij ! = jpi*jpj !: jpi x jpj |
---|
[9449] | 43 | INTEGER, PUBLIC :: jpimax! = ( jpiglo-2*nn_hls + (jpni-1) ) / jpni + 2*nn_hls !: maximum jpi |
---|
| 44 | INTEGER, PUBLIC :: jpjmax! = ( jpjglo-2*nn_hls + (jpnj-1) ) / jpnj + 2*nn_hls !: maximum jpj |
---|
[10009] | 45 | !!gm to be used in futur (?): |
---|
| 46 | !! INTEGER, PUBLIC :: Ni , Nj , Nk !: local domain size |
---|
[15] | 47 | |
---|
[3] | 48 | !!--------------------------------------------------------------------- |
---|
[2528] | 49 | !! Active tracer parameters |
---|
| 50 | !!--------------------------------------------------------------------- |
---|
| 51 | INTEGER, PUBLIC, PARAMETER :: jpts = 2 !: Number of active tracers (=2, i.e. T & S ) |
---|
| 52 | INTEGER, PUBLIC, PARAMETER :: jp_tem = 1 !: indice for temperature |
---|
| 53 | INTEGER, PUBLIC, PARAMETER :: jp_sal = 2 !: indice for salinity |
---|
[3] | 54 | |
---|
[7646] | 55 | !!---------------------------------------------------------------------- |
---|
| 56 | !! Domain decomposition |
---|
| 57 | !!---------------------------------------------------------------------- |
---|
| 58 | !! if we dont use massively parallel computer (parameters jpni=jpnj=1) so jpiglo=jpi and jpjglo=jpj |
---|
| 59 | INTEGER, PUBLIC :: jpni !: number of processors following i |
---|
| 60 | INTEGER, PUBLIC :: jpnj !: number of processors following j |
---|
| 61 | INTEGER, PUBLIC :: jpnij !: nb of local domain = nb of processors ( <= jpni x jpnj ) |
---|
| 62 | INTEGER, PUBLIC, PARAMETER :: jpr2di = 0 !: number of columns for extra outer halo |
---|
| 63 | INTEGER, PUBLIC, PARAMETER :: jpr2dj = 0 !: number of rows for extra outer halo |
---|
[9019] | 64 | INTEGER, PUBLIC, PARAMETER :: nn_hls = 1 !: halo width (applies to both rows and columns) |
---|
[3] | 65 | |
---|
[10023] | 66 | !!gm thsi should be move in dom_oce |
---|
| 67 | |
---|
[2528] | 68 | !!---------------------------------------------------------------------- |
---|
[10009] | 69 | !! namcfg namelist parameters |
---|
| 70 | !!---------------------------------------------------------------------- |
---|
| 71 | LOGICAL :: ln_read_cfg !: (=T) read the domain configuration file or (=F) not |
---|
| 72 | CHARACTER(lc) :: cn_domcfg !: filename the configuration file to be read |
---|
| 73 | LOGICAL :: ln_write_cfg !: (=T) create the domain configuration file |
---|
| 74 | CHARACTER(lc) :: cn_domcfg_out !: filename the configuration file to be read |
---|
| 75 | LOGICAL :: ln_use_jattr !: input file read offset |
---|
| 76 | ! ! Use file global attribute: open_ocean_jstart to determine start j-row |
---|
| 77 | ! ! when reading input from those netcdf files that have the |
---|
| 78 | ! ! attribute defined. This is designed to enable input files associated |
---|
| 79 | ! ! with the extended grids used in the under ice shelf configurations to |
---|
| 80 | ! ! be used without redundant rows when the ice shelves are not in use. |
---|
| 81 | |
---|
| 82 | ! configuration name & resolution (required only in ORCA family case) |
---|
| 83 | CHARACTER(lc) :: cn_cfg !: name of the configuration |
---|
| 84 | INTEGER :: nn_cfg !: resolution of the configuration |
---|
| 85 | |
---|
[10023] | 86 | !!gm end |
---|
| 87 | |
---|
[10009] | 88 | !!---------------------------------------------------------------------- |
---|
[9598] | 89 | !! NEMO/OCE 4.0 , NEMO Consortium (2018) |
---|
[2528] | 90 | !! $Id$ |
---|
[9598] | 91 | !! Software governed by the CeCILL licence (./LICENSE) |
---|
[3] | 92 | !!====================================================================== |
---|
| 93 | END MODULE par_oce |
---|