Changes in src/outgrid_init.f90 [92fab65:f3054ea] in flexpart.git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/outgrid_init.f90

    r92fab65 rf3054ea  
    1 ! SPDX-FileCopyrightText: FLEXPART 1998-2019, see flexpart_license.txt
    2 ! SPDX-License-Identifier: GPL-3.0-or-later
    3 
     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!                                                                     *
    422! DJM - 2017-05-09 - added #ifdef USE_MPIINPLACE cpp directive to     *
    523! enable allocation of a gridunc0 array if required by MPI code in    *
     
    297315         maxpointspec_act),stat=stat)
    298316    if (stat.ne.0) write(*,*)'ERROR: could not allocate init_cond'
     317    if (mpi_mode.gt.0) then
     318      if (lroot) then
     319        allocate(init_cond0(0:numxgrid-1,0:numygrid-1,numzgrid,maxspec, &
     320             maxpointspec_act),stat=stat)
     321      else
     322        allocate(init_cond0(1,1,1,1,1))
     323      end if
     324    end if
    299325  endif
    300326
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG