Changeset 6ecb30a in flexpart.git for src/outgrid_init.f90


Ignore:
Timestamp:
Aug 17, 2017, 4:39:17 PM (7 years ago)
Author:
Espen Sollum ATMOS <eso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
5b34509
Parents:
61e07ba
Message:

Merged changes from CTBTO project

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/outgrid_init.f90

    r6b22af9 r6ecb30a  
    1919! along with FLEXPART.  If not, see <http://www.gnu.org/licenses/>.   *
    2020!**********************************************************************
     21!                                                                     *
     22! DJM - 2017-05-09 - added #ifdef USE_MPIINPLACE cpp directive to     *
     23! enable allocation of a gridunc0 array if required by MPI code in    *
     24! mpi_mod.f90                                                         *
     25!                                                                     *
     26!**********************************************************************
     27
    2128
    2229subroutine outgrid_init
     
    215222! Extra field for totals at MPI root process
    216223  if (lroot.and.mpi_mode.gt.0) then
    217     ! allocate(gridunc0(0:numxgrid-1,0:numygrid-1,numzgrid,maxspec, &
    218     !      maxpointspec_act,nclassunc,maxageclass),stat=stat)
    219     ! if (stat.ne.0) write(*,*)'ERROR: could not allocate gridunc0'
     224
     225#ifdef USE_MPIINPLACE
     226#else
     227    ! If MPI_IN_PLACE option is not used in mpi_mod.f90::mpif_tm_reduce_grid(),
     228    ! then an aux array is needed for parallel grid reduction
     229    allocate(gridunc0(0:numxgrid-1,0:numygrid-1,numzgrid,maxspec, &
     230         maxpointspec_act,nclassunc,maxageclass),stat=stat)
     231    if (stat.ne.0) write(*,*)'ERROR: could not allocate gridunc0'
     232#endif
    220233    if (ldirect.gt.0) then
    221234      allocate(wetgridunc0(0:numxgrid-1,0:numygrid-1,maxspec, &
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG