MODULE len_oce !!====================================================================== !! *** par_oce *** !! Ocean : stores the global and local ocean sizes (includes jpim1 etc) !!====================================================================== !! History : OPA ! 1991 (Imbard, Levy, Madec) Original code !! NEMO 1.0 ! 2004-01 (G. Madec, J.-M. Molines) Free form and module !! 3.3 ! 2010-09 (C. Ethe) TRA-TRC merge: add jpts, jp_tem & jp_sal !! ! 2018-11 (M. Bell) Stripped down version of par_oce to promote modularity !!---------------------------------------------------------------------- IMPLICIT NONE PUBLIC !!--------------------------------------------------------------------- !! Domain sizes !!--------------------------------------------------------------------- ! global domain size !!! * total computational domain * INTEGER :: jpiglo !: 1st dimension of global domain --> i-direction INTEGER :: jpjglo !: 2nd - - --> j-direction INTEGER :: jpkglo !: 3nd - - --> k levels ! local domain size !!! * local computational domain * INTEGER, PUBLIC :: jpi ! !: first dimension INTEGER, PUBLIC :: jpj ! !: second dimension INTEGER, PUBLIC :: jpk ! = jpkglo !: third dimension INTEGER, PUBLIC :: jpim1 ! = jpi-1 !: inner domain indices INTEGER, PUBLIC :: jpjm1 ! = jpj-1 !: - - - INTEGER, PUBLIC :: jpkm1 ! = jpk-1 !: - - - INTEGER, PUBLIC :: jpij ! = jpi*jpj !: jpi x jpj INTEGER, PUBLIC :: jpimax! = ( jpiglo-2*nn_hls + (jpni-1) ) / jpni + 2*nn_hls !: maximum jpi INTEGER, PUBLIC :: jpjmax! = ( jpjglo-2*nn_hls + (jpnj-1) ) / jpnj + 2*nn_hls !: maximum jpj !!--------------------------------------------------------------------- !! Active tracer parameters !!--------------------------------------------------------------------- INTEGER, PUBLIC, PARAMETER :: jpts = 2 !: Number of active tracers (=2, i.e. T & S ) INTEGER, PUBLIC, PARAMETER :: jp_tem = 1 !: indice for temperature INTEGER, PUBLIC, PARAMETER :: jp_sal = 2 !: indice for salinity !!---------------------------------------------------------------------- !! Domain decomposition !!---------------------------------------------------------------------- !! if we dont use massively parallel computer (parameters jpni=jpnj=1) so jpiglo=jpi and jpjglo=jpj INTEGER, PUBLIC :: jpni !: number of processors following i INTEGER, PUBLIC :: jpnj !: number of processors following j INTEGER, PUBLIC :: jpnij !: nb of local domain = nb of processors ( <= jpni x jpnj ) INTEGER, PUBLIC, PARAMETER :: jpr2di = 0 !: number of columns for extra outer halo INTEGER, PUBLIC, PARAMETER :: jpr2dj = 0 !: number of rows for extra outer halo INTEGER, PUBLIC, PARAMETER :: nn_hls = 1 !: halo width (applies to both rows and columns) !!---------------------------------------------------------------------- !! NEMO/OPA 4.0 , NEMO Consortium (2016) !! $Id: par_oce.F90 9449 2018-03-30 15:37:02Z smasson $ !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) !!====================================================================== END MODULE len_oce