Changeset b5127f9 in flexpart.git for src/init_domainfill_mpi.f90


Ignore:
Timestamp:
Aug 4, 2017, 2:18:03 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:
61e07ba, 1d072c0
Parents:
5184a7c
Message:

Fixed an inconsistency (serial vs parallel) with domain-filling option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/init_domainfill_mpi.f90

    r16b61a5 rb5127f9  
    370370!***********************************************
    371371
    372 !    do j=1,numpart
    373     do j=1,npoint(1)
     372    do j=1,numpart
    374373      if ((xtra1_tmp(j).lt.0.).or.(xtra1_tmp(j).ge.real(nxmin1)).or. &
    375374           (ytra1_tmp(j).lt.0.).or.(ytra1_tmp(j).ge.real(nymin1))) then
     
    475474    endif
    476475
    477     numpart = npart(1)/mp_partgroup_np
     476    numpart = numpart/mp_partgroup_np
    478477    if (mod(numpart,mp_partgroup_np).ne.0) numpart=numpart+1
    479478
     
    488487
    489488! Distribute particles to other processes (numpart is 'per-process', not total)
    490     call MPI_Bcast(numpart, 1, MPI_INTEGER, id_root, mp_comm_used, mp_ierr)
     489  call MPI_Bcast(numpart, 1, MPI_INTEGER, id_root, mp_comm_used, mp_ierr)
    491490! eso TODO: xmassperparticle: not necessary to send
    492     call MPI_Bcast(xmassperparticle, 1, mp_sp, id_root, mp_comm_used, mp_ierr)
    493     call mpif_send_part_properties(numpart)
     491  call MPI_Bcast(xmassperparticle, 1, mp_sp, id_root, mp_comm_used, mp_ierr)
     492  call mpif_send_part_properties(numpart)
    494493
    495494! Deallocate the temporary arrays used for all particles
    496     deallocate(itra1_tmp,npoint_tmp,nclass_tmp,idt_tmp,itramem_tmp,&
     495  deallocate(itra1_tmp,npoint_tmp,nclass_tmp,idt_tmp,itramem_tmp,&
    497496         & itrasplit_tmp,xtra1_tmp,ytra1_tmp,ztra1_tmp,xmass1_tmp)
    498497
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG