[92fab65] | 1 | ! SPDX-FileCopyrightText: FLEXPART 1998-2019, see flexpart_license.txt |
---|
| 2 | ! SPDX-License-Identifier: GPL-3.0-or-later |
---|
| 3 | |
---|
[6ecb30a] | 4 | ! DJM - 2017-05-09 - added #ifdef USE_MPIINPLACE cpp directive to * |
---|
| 5 | ! enable declaration of a gridunc0 array if required by MPI code in * |
---|
| 6 | ! mpi_mod.f90 * |
---|
| 7 | ! * |
---|
| 8 | !********************************************************************** |
---|
[e200b7a] | 9 | |
---|
| 10 | module unc_mod |
---|
| 11 | |
---|
[6a678e3] | 12 | use par_mod, only:dep_prec |
---|
[fdc0f03] | 13 | |
---|
[e200b7a] | 14 | implicit none |
---|
| 15 | |
---|
[4c64400] | 16 | real,allocatable, dimension (:,:,:,:,:,:,:) :: gridunc |
---|
[6ecb30a] | 17 | #ifdef USE_MPIINPLACE |
---|
| 18 | #else |
---|
| 19 | ! If MPI_IN_PLACE option is not used in mpi_mod.f90::mpif_tm_reduce_grid(), |
---|
| 20 | ! then an aux array is needed for parallel grid reduction |
---|
| 21 | real,allocatable, dimension (:,:,:,:,:,:,:) :: gridunc0 |
---|
[0ecc1fe] | 22 | real,allocatable, dimension (:,:,:,:,:,:,:) :: griduncn0 |
---|
[6ecb30a] | 23 | #endif |
---|
[e200b7a] | 24 | real,allocatable, dimension (:,:,:,:,:,:,:) :: griduncn |
---|
[6a678e3] | 25 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygridunc |
---|
| 26 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygriduncn |
---|
| 27 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgridunc |
---|
| 28 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgriduncn |
---|
[e200b7a] | 29 | |
---|
[8a65cb0] | 30 | ! For sum of individual contributions, used for the MPI version |
---|
[6a678e3] | 31 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygridunc0 |
---|
| 32 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygriduncn0 |
---|
| 33 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgridunc0 |
---|
| 34 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgriduncn0 |
---|
[8a65cb0] | 35 | |
---|
[e200b7a] | 36 | real,allocatable, dimension (:,:,:,:,:) :: init_cond |
---|
| 37 | |
---|
| 38 | end module unc_mod |
---|