source: flexpart.git/src/unc_mod.f90 @ 02095e3

devrelease-10univie
Last change on this file since 02095e3 was 6ecb30a, checked in by Espen Sollum ATMOS <eso@…>, 2 years ago

Merged changes from CTBTO project

  • Property mode set to 100644
File size: 2.9 KB
Line 
1!**********************************************************************
2! Copyright 1998,1999,2000,2001,2002,2005,2007,2008,2009,2010         *
3! Andreas Stohl, Petra Seibert, A. Frank, Gerhard Wotawa,             *
4! Caroline Forster, Sabine Eckhardt, John Burkhart, Harald Sodemann   *
5!                                                                     *
6! This file is part of FLEXPART.                                      *
7!                                                                     *
8! FLEXPART is free software: you can redistribute it and/or modify    *
9! it under the terms of the GNU General Public License as published by*
10! the Free Software Foundation, either version 3 of the License, or   *
11! (at your option) any later version.                                 *
12!                                                                     *
13! FLEXPART is distributed in the hope that it will be useful,         *
14! but WITHOUT ANY WARRANTY; without even the implied warranty of      *
15! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the       *
16! GNU General Public License for more details.                        *
17!                                                                     *
18! You should have received a copy of the GNU General Public License   *
19! along with FLEXPART.  If not, see <http://www.gnu.org/licenses/>.   *
20!**********************************************************************
21!                                                                     *
22! DJM - 2017-05-09 - added #ifdef USE_MPIINPLACE cpp directive to     *
23! enable declaration of a gridunc0 array if required by MPI code in   *
24! mpi_mod.f90                                                         *
25!                                                                     *
26!**********************************************************************
27
28module unc_mod
29
30  use par_mod, only:dep_prec
31
32  implicit none
33
34  real,allocatable, dimension (:,:,:,:,:,:,:) :: gridunc
35#ifdef USE_MPIINPLACE
36#else
37  ! If MPI_IN_PLACE option is not used in mpi_mod.f90::mpif_tm_reduce_grid(),
38  ! then an aux array is needed for parallel grid reduction
39  real,allocatable, dimension (:,:,:,:,:,:,:) :: gridunc0
40#endif
41  real,allocatable, dimension (:,:,:,:,:,:,:) :: griduncn
42  real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygridunc
43  real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygriduncn
44  real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgridunc
45  real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgriduncn
46
47! For sum of individual contributions, used for the MPI version
48  real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygridunc0
49  real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygriduncn0
50  real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgridunc0
51  real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgriduncn0
52
53  real,allocatable, dimension (:,:,:,:,:) :: init_cond
54
55end module unc_mod
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG