Re: modifying the particle list on multiple processors
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
: 2023-01-10 10:01:31 CET