[Yt-svn] yt-commit r1409 - trunk/yt/lagos
jwise at wrangler.dreamhost.com
jwise at wrangler.dreamhost.com
Mon Aug 24 18:37:43 PDT 2009
Author: jwise
Date: Mon Aug 24 18:37:43 2009
New Revision: 1409
URL: http://yt.spacepope.org/changeset/1409
Log:
Include prism for grids was too big by a factor of 2.
Modified:
trunk/yt/lagos/BaseDataTypes.py
Modified: trunk/yt/lagos/BaseDataTypes.py
==============================================================================
--- trunk/yt/lagos/BaseDataTypes.py (original)
+++ trunk/yt/lagos/BaseDataTypes.py Mon Aug 24 18:37:43 2009
@@ -1021,10 +1021,10 @@
na.all(D>0,axis=0) ))[0]
# Now restrict these grids to a rect. prism that bounds the slice
sliceCorners = na.array([ \
- self.center + self.width * (+self._x_vec + self._y_vec),
- self.center + self.width * (+self._x_vec - self._y_vec),
- self.center + self.width * (-self._x_vec - self._y_vec),
- self.center + self.width * (-self._x_vec + self._y_vec) ])
+ self.center + 0.5*self.width * (+self._x_vec + self._y_vec),
+ self.center + 0.5*self.width * (+self._x_vec - self._y_vec),
+ self.center + 0.5*self.width * (-self._x_vec - self._y_vec),
+ self.center + 0.5*self.width * (-self._x_vec + self._y_vec) ])
sliceLeftEdge = sliceCorners.min(axis=0)
sliceRightEdge = sliceCorners.max(axis=0)
# Check for bounding box and grid overlap
More information about the yt-svn
mailing list