Changeset 18adf60 in flexpart.git for src/timemanager.f90


Ignore:
Timestamp:
May 9, 2016, 9:35:01 AM (8 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:
3b80e98, 93786a1
Parents:
62e65c7
Message:

Bug found in the MQUASILAG=1 option, xmass array accessed with out-of-bounds index. Quick fix implemented (see changes in timemanager and advance).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/timemanager.f90

    r05cf28d r18adf60  
    589589            endif
    590590
    591 
    592             if (mdomainfill.eq.0) then
     591! Skip check on mass fraction when npoint represents particle number
     592            if (mdomainfill.eq.0.and.mquasilag.eq.0) then
    593593              if (xmass(npoint(j),ks).gt.0.) &
    594594                   xmassfract=max(xmassfract,real(npart(npoint(j)))* &
     
    605605!ZHG 2015
    606606            else
    607               xmassfract=1.
    608             endif
     607              xmassfract=1.0
     608            end if
    609609          end do
    610610
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG