Changeset d2a5a83 in flexpart.git for src/outgrid_init_nest.f90


Ignore:
Timestamp:
Dec 4, 2017, 1:18:12 PM (6 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:
01e6052
Parents:
0ecc1fe
Message:

Fixed an issue with allocation in previous commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/outgrid_init_nest.f90

    r0ecc1fe rd2a5a83  
    8383  end if
    8484#endif
    85   if (ldirect.gt.0) then
    86   if (lroot.and.mpi_mode.gt.0) then
    87     allocate(wetgriduncn0(0:numxgridn-1,0:numygridn-1,maxspec, &
    88          maxpointspec_act,nclassunc,maxageclass),stat=stat)
    89     if (stat.ne.0) write(*,*)'ERROR:could not allocate nested gridunc'
    90     allocate(drygriduncn0(0:numxgridn-1,0:numygridn-1,maxspec, &
    91          maxpointspec_act,nclassunc,maxageclass),stat=stat)
    92     if (stat.ne.0) write(*,*)'ERROR:could not allocate nested gridunc'
     85  if (ldirect.gt.0) then
     86    if (lroot.and.mpi_mode.gt.0) then
     87      allocate(wetgriduncn0(0:numxgridn-1,0:numygridn-1,maxspec, &
     88           maxpointspec_act,nclassunc,maxageclass),stat=stat)
     89      if (stat.ne.0) write(*,*)'ERROR:could not allocate nested gridunc'
     90      allocate(drygriduncn0(0:numxgridn-1,0:numygridn-1,maxspec, &
     91           maxpointspec_act,nclassunc,maxageclass),stat=stat)
     92      if (stat.ne.0) write(*,*)'ERROR:could not allocate nested gridunc'
    9393!  endif
    9494! allocate a dummy to avoid compilator complaints
    95   else if (.not.lroot.and.mpi_mode.gt.0) then
    96     allocate(wetgriduncn0(1,1,1,1,1,1),stat=stat)
    97     allocate(drygriduncn0(1,1,1,1,1,1),stat=stat)
     95    else if (.not.lroot.and.mpi_mode.gt.0) then
     96      allocate(wetgriduncn0(1,1,1,1,1,1),stat=stat)
     97      allocate(drygriduncn0(1,1,1,1,1,1),stat=stat)
     98    end if
    9899  end if
    99100
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG