Re: modifying the particle list on multiple processors

From: Mark Baumann <markb_at_physics.utexas.edu>
Date: Tue, 8 Mar 2011 10:50:40 -0600 (CST)

My apologies, there was a typo at a key point in my previous email:


> loop through all particles (i in the range 0..NumPart) on the local processor
> and find the STAR particles
>
> for each STAR particle found:
> loop through all Gas particles (i in the range 0..N_gas) on the
> local processor
> if Gas particle i is within predefined distance of STAR particle,
> flag it by setting its particle type to -1 and increment
> the variable "numcoll"
>
> if numcoll > 0:
> create a new particle array with size MaxPart
> create a new SPH array with size MaxPartSph
> copy all particles of type -1 into the new particle array and the
> new SPH array

This meant to say "copy all particles of type != -1"
Received on 2011-03-08 18:05:03

This archive was generated by hypermail 2.3.0 : 2022-09-01 14:03:42 CEST