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