source: flexpart.git/src/unc_mod.f90 @ a803521

GFS_025dev
Last change on this file since a803521 was a803521, checked in by Espen Sollum ATMOS <eso@…>, 4 years ago

Merge branch 'dev' into espen

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[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
10module 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
[f3054ea]37  real,allocatable, dimension (:,:,:,:,:) :: init_cond0 ! for MPI
[e200b7a]38
39end module unc_mod
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG