1 | ! SPDX-FileCopyrightText: FLEXPART 1998-2019, see flexpart_license.txt |
---|
2 | ! SPDX-License-Identifier: GPL-3.0-or-later |
---|
3 | |
---|
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 | !********************************************************************** |
---|
9 | |
---|
10 | module unc_mod |
---|
11 | |
---|
12 | use par_mod, only:dep_prec |
---|
13 | |
---|
14 | implicit none |
---|
15 | |
---|
16 | real,allocatable, dimension (:,:,:,:,:,:,:) :: gridunc |
---|
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 |
---|
22 | real,allocatable, dimension (:,:,:,:,:,:,:) :: griduncn0 |
---|
23 | #endif |
---|
24 | real,allocatable, dimension (:,:,:,:,:,:,:) :: griduncn |
---|
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 |
---|
29 | |
---|
30 | ! For sum of individual contributions, used for the MPI version |
---|
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 |
---|
35 | |
---|
36 | real,allocatable, dimension (:,:,:,:,:) :: init_cond |
---|
37 | |
---|
38 | end module unc_mod |
---|