1 | MODULE len_oce |
---|
2 | !!====================================================================== |
---|
3 | !! *** par_oce *** |
---|
4 | !! Ocean : stores the global and local ocean sizes (includes jpim1 etc) |
---|
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 | !! ! 2018-11 (M. Bell) Stripped down version of par_oce to promote modularity |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | |
---|
12 | IMPLICIT NONE |
---|
13 | PUBLIC |
---|
14 | |
---|
15 | !!--------------------------------------------------------------------- |
---|
16 | !! Domain sizes |
---|
17 | !!--------------------------------------------------------------------- |
---|
18 | |
---|
19 | ! global domain size !!! * total computational domain * |
---|
20 | INTEGER :: jpiglo !: 1st dimension of global domain --> i-direction |
---|
21 | INTEGER :: jpjglo !: 2nd - - --> j-direction |
---|
22 | INTEGER :: jpkglo !: 3nd - - --> k levels |
---|
23 | |
---|
24 | ! local domain size !!! * local computational domain * |
---|
25 | INTEGER, PUBLIC :: jpi ! !: first dimension |
---|
26 | INTEGER, PUBLIC :: jpj ! !: second dimension |
---|
27 | INTEGER, PUBLIC :: jpk ! = jpkglo !: third dimension |
---|
28 | INTEGER, PUBLIC :: jpim1 ! = jpi-1 !: inner domain indices |
---|
29 | INTEGER, PUBLIC :: jpjm1 ! = jpj-1 !: - - - |
---|
30 | INTEGER, PUBLIC :: jpkm1 ! = jpk-1 !: - - - |
---|
31 | INTEGER, PUBLIC :: jpij ! = jpi*jpj !: jpi x jpj |
---|
32 | INTEGER, PUBLIC :: jpimax! = ( jpiglo-2*nn_hls + (jpni-1) ) / jpni + 2*nn_hls !: maximum jpi |
---|
33 | INTEGER, PUBLIC :: jpjmax! = ( jpjglo-2*nn_hls + (jpnj-1) ) / jpnj + 2*nn_hls !: maximum jpj |
---|
34 | |
---|
35 | !!--------------------------------------------------------------------- |
---|
36 | !! Active tracer parameters |
---|
37 | !!--------------------------------------------------------------------- |
---|
38 | INTEGER, PUBLIC, PARAMETER :: jpts = 2 !: Number of active tracers (=2, i.e. T & S ) |
---|
39 | INTEGER, PUBLIC, PARAMETER :: jp_tem = 1 !: indice for temperature |
---|
40 | INTEGER, PUBLIC, PARAMETER :: jp_sal = 2 !: indice for salinity |
---|
41 | |
---|
42 | !!---------------------------------------------------------------------- |
---|
43 | !! Domain decomposition |
---|
44 | !!---------------------------------------------------------------------- |
---|
45 | !! if we dont use massively parallel computer (parameters jpni=jpnj=1) so jpiglo=jpi and jpjglo=jpj |
---|
46 | INTEGER, PUBLIC :: jpni !: number of processors following i |
---|
47 | INTEGER, PUBLIC :: jpnj !: number of processors following j |
---|
48 | INTEGER, PUBLIC :: jpnij !: nb of local domain = nb of processors ( <= jpni x jpnj ) |
---|
49 | INTEGER, PUBLIC, PARAMETER :: jpr2di = 0 !: number of columns for extra outer halo |
---|
50 | INTEGER, PUBLIC, PARAMETER :: jpr2dj = 0 !: number of rows for extra outer halo |
---|
51 | INTEGER, PUBLIC, PARAMETER :: nn_hls = 1 !: halo width (applies to both rows and columns) |
---|
52 | |
---|
53 | !!---------------------------------------------------------------------- |
---|
54 | !! NEMO/OPA 4.0 , NEMO Consortium (2016) |
---|
55 | !! $Id: par_oce.F90 9449 2018-03-30 15:37:02Z smasson $ |
---|
56 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
57 | !!====================================================================== |
---|
58 | END MODULE len_oce |
---|