[Yt-svn] yt-commit r1298 - trunk/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Thu May 7 11:23:51 PDT 2009
Author: mturk
Date: Thu May 7 11:23:51 2009
New Revision: 1298
URL: http://yt.spacepope.org/changeset/1298
Log:
Particles now respect _is_fully_enclosed. This should speed things up
considerably.
Modified:
trunk/yt/lagos/BaseDataTypes.py
Modified: trunk/yt/lagos/BaseDataTypes.py
==============================================================================
--- trunk/yt/lagos/BaseDataTypes.py (original)
+++ trunk/yt/lagos/BaseDataTypes.py Thu May 7 11:23:51 2009
@@ -1341,6 +1341,8 @@
return na.where(k)
def _get_cut_particle_mask(self, grid):
+ if self._is_fully_enclosed(grid):
+ return True
fake_grid = FakeGridForParticles(grid)
return self._get_cut_mask(fake_grid)
More information about the yt-svn
mailing list