[Yt-svn] yt-commit r691 - branches/yt-generalization/yt/lagos

joishi at wrangler.dreamhost.com joishi at wrangler.dreamhost.com
Mon Jul 21 14:05:50 PDT 2008


Author: joishi
Date: Mon Jul 21 14:05:49 2008
New Revision: 691
URL: http://yt.spacepope.org/changeset/691

Log:
* fixed error due to improper child masking on the right edge. 
   -- this was the infamous "12 cell" error


Modified:
   branches/yt-generalization/yt/lagos/BaseGridType.py

Modified: branches/yt-generalization/yt/lagos/BaseGridType.py
==============================================================================
--- branches/yt-generalization/yt/lagos/BaseGridType.py	(original)
+++ branches/yt-generalization/yt/lagos/BaseGridType.py	Mon Jul 21 14:05:49 2008
@@ -267,7 +267,8 @@
             # Now let's get our overlap
             startIndex = na.rint((child.LeftEdge - self.LeftEdge)/self.dx)
             endIndex = na.minimum(na.rint((child.RightEdge - self.LeftEdge)/self.dx),
-                                  startIndex + self.ActiveDimensions)
+                                  self.ActiveDimensions)
+                                  #startIndex + self.ActiveDimensions)
             startIndex = na.maximum(0, startIndex)
             self.__child_mask[startIndex[0]:endIndex[0],
                               startIndex[1]:endIndex[1],



More information about the yt-svn mailing list