Changeset 1228ef7 in flexpart.git for src/releaseparticles_mpi.f90
- Timestamp:
- Aug 2, 2021, 12:11:23 PM (3 years ago)
- Branches:
- dev
- Parents:
- 6cb0801
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/releaseparticles_mpi.f90
r92fab65 r1228ef7 51 51 real(kind=dp) :: juldate,julmonday,jul,jullocal,juldiff 52 52 real,parameter :: eps=nxmax/3.e5,eps2=1.e-6 53 integer :: mind2 53 integer :: mind2, numpartcount_mpi 54 54 ! mind2 eso: pointer to 2nd windfield in memory 55 56 55 integer :: idummy = -7 57 56 !save idummy,xmasssave … … 60 59 logical :: first_call=.true. 61 60 62 ! Use different seed for each process.63 !******************************************* *********************************61 ! Use different random seed for each process 62 !******************************************* 64 63 if (first_call) then 65 64 idummy=idummy+mp_seed … … 68 67 69 68 mind2=memind(2) 69 70 ! For mquasilag=1, assign unique particle ID across processes 71 numpartcount_mpi=mp_partid-mp_partgroup_np+1 70 72 71 73 ! Determine the actual date and time in Greenwich (i.e., UTC + correction for daylight savings time) … … 210 212 nclassunc) 211 213 numparticlecount=numparticlecount+1 214 ! Use a stride equal to number of processes for the MPI version 215 numpartcount_mpi=numpartcount_mpi+mp_partgroup_np 212 216 if (mquasilag.eq.0) then 213 217 npoint(ipart)=i 214 218 else 215 npoint(ipart)=numpart iclecount219 npoint(ipart)=numpartcount_mpi 216 220 endif 217 221 idt(ipart)=mintime ! first time step
Note: See TracChangeset
for help on using the changeset viewer.