[Yt-svn] yt-commit r1004 - trunk/yt/lagos/hop
sskory at wrangler.dreamhost.com
sskory at wrangler.dreamhost.com
Thu Dec 11 15:48:47 PST 2008
Author: sskory
Date: Thu Dec 11 15:48:46 2008
New Revision: 1004
URL: http://yt.spacepope.org/changeset/1004
Log:
Forgot the padding.
Modified:
trunk/yt/lagos/hop/SS_HopOutput.py
Modified: trunk/yt/lagos/hop/SS_HopOutput.py
==============================================================================
--- trunk/yt/lagos/hop/SS_HopOutput.py (original)
+++ trunk/yt/lagos/hop/SS_HopOutput.py Thu Dec 11 15:48:46 2008
@@ -279,7 +279,7 @@
px, py, pz = [self.particle_fields["particle_position_%s"%ax][group_indices] for ax in 'xyz']
max_dens = (dens[cp:cp_c][md_i], px[md_i], py[md_i], pz[md_i])
# if the most dense particle is in the box, keep it
- if ((max_dens[1:3] >= LE) && (max_dens[1:3] < RE)):
+ if ((max_dens[1:3] >= LE+self.padding) && (max_dens[1:3] < RE-self.padding)):
self._groups.append(HopGroup(self, ii, group_indices)
self._max_dens[ii] = max_dens
cp += counts[ii+1]
More information about the yt-svn
mailing list