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 | |
---|
28 | module 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 | real,allocatable, dimension (:,:,:,:,:,:,:) :: griduncn0 |
---|
41 | #endif |
---|
42 | real,allocatable, dimension (:,:,:,:,:,:,:) :: griduncn |
---|
43 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygridunc |
---|
44 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygriduncn |
---|
45 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgridunc |
---|
46 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgriduncn |
---|
47 | |
---|
48 | ! For sum of individual contributions, used for the MPI version |
---|
49 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygridunc0 |
---|
50 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: drygriduncn0 |
---|
51 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgridunc0 |
---|
52 | real(dep_prec),allocatable, dimension (:,:,:,:,:,:) :: wetgriduncn0 |
---|
53 | |
---|
54 | real,allocatable, dimension (:,:,:,:,:) :: init_cond |
---|
55 | |
---|
56 | end module unc_mod |
---|