Changeset 18adf60 in flexpart.git for src/timemanager_mpi.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_mpi.f90

    r05cf28d r18adf60  
    546546! Decide whether to write an estimate of the number of particles released,
    547547! or exact number (require MPI reduce operation)
    548         numpart_tot_mpi = numpart*mp_partgroup_np
    549 
    550         if (mp_exact_numpart.and..not.(lmpreader.and.lmp_use_reader)) then
     548        if (mp_dev_mode) then
     549          numpart_tot_mpi = numpart
     550        else
     551          numpart_tot_mpi = numpart*mp_partgroup_np
     552        end if
     553
     554        if (mp_exact_numpart.and..not.(lmpreader.and.lmp_use_reader).and.&
     555             &.not.mp_dev_mode) then
    551556          call MPI_Reduce(numpart, numpart_tot_mpi, 1, MPI_INTEGER, MPI_SUM, id_root, &
    552557               & mp_comm_used, mp_ierr)
     
    738743            endif
    739744
    740 
    741             if (mdomainfill.eq.0) then
     745! Skip check on mass fraction when npoint represents particle number
     746            if (mdomainfill.eq.0.and.mquasilag.eq.0) then
    742747              if (xmass(npoint(j),ks).gt.0.)then
    743748                   xmassfract=max(xmassfract,real(npart(npoint(j)))* &
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG