One possibility if you don't need the time history is to set the particles' block number to NONEXISTENT, and then sort the particles data structure before you continue processing.<br><br><div class="gmail_quote">On Tue, Aug 31, 2010 at 9:22 AM, Seyit Hocuk <span dir="ltr"><<a href="mailto:seyit@astro.rug.nl">seyit@astro.rug.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear Community,<br>
<br>
I have a simple question, one that we discussed before, I think.<br>
<br>
Here goes:<br>
If you have a certain amount of particles, and want to reduce/destroy some of them during simulation, what is the best approach to do this. I alwas was placing them outside the box (negative x,y,z-positions), however, this causes occasional crashes (coming from "pt_mapFromMeshWeighted" line 146), and running in debug mode already was showing this. I think that putting 0 mass is also not a good solution.<br>
<br>
Is there any other way?<br>
<br>
Kind regards,<br><font color="#888888">
Seyit<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Anshu Dubey<br>Associate Director and CS/Applications Group Leader<br>ASC/Flash Center<br>Fellow, Computation Institute<br>University of Chicago and Argonne National Laboratory<br>
773 834 2999 (office)<br>312 420 0033 (mobile)<br>773 834 3230 (fax)<br>