[Yt-svn] yt-commit r1380 - branches/yt-1.5/yt/lagos trunk/yt/lagos

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Sat Jul 18 20:19:27 PDT 2009


Author: mturk
Date: Sat Jul 18 20:19:26 2009
New Revision: 1380
URL: http://yt.spacepope.org/changeset/1380

Log:
Fixing bug that ... I'm not sure the origin of.  Somehow the LeftEdge of 2D and
1D datasets got set to NaN in some circumstances.



Modified:
   branches/yt-1.5/yt/lagos/HierarchyType.py
   trunk/yt/lagos/HierarchyType.py

Modified: branches/yt-1.5/yt/lagos/HierarchyType.py
==============================================================================
--- branches/yt-1.5/yt/lagos/HierarchyType.py	(original)
+++ branches/yt-1.5/yt/lagos/HierarchyType.py	Sat Jul 18 20:19:26 2009
@@ -1080,6 +1080,7 @@
 class EnzoHierarchy1D(EnzoHierarchy):
     def __init__(self, *args, **kwargs):
         EnzoHierarchy.__init__(self, *args, **kwargs)
+        self.gridLeftEdge[:,1:3] = 0.0
         self.gridRightEdge[:,1:3] = 1.0
         self.gridDimensions[:,1:3] = 1.0
         self.gridDys[:,0] = 1.0
@@ -1091,6 +1092,7 @@
 class EnzoHierarchy2D(EnzoHierarchy):
     def __init__(self, *args, **kwargs):
         EnzoHierarchy.__init__(self, *args, **kwargs)
+        self.gridLeftEdge[:,2] = 0.0
         self.gridRightEdge[:,2] = 1.0
         self.gridDimensions[:,2] = 1.0
         self.gridDzs[:,0] = 1.0

Modified: trunk/yt/lagos/HierarchyType.py
==============================================================================
--- trunk/yt/lagos/HierarchyType.py	(original)
+++ trunk/yt/lagos/HierarchyType.py	Sat Jul 18 20:19:26 2009
@@ -1068,6 +1068,7 @@
 class EnzoHierarchy1D(EnzoHierarchy):
     def __init__(self, *args, **kwargs):
         EnzoHierarchy.__init__(self, *args, **kwargs)
+        self.gridLeftEdge[:,1:3] = 0.0
         self.gridRightEdge[:,1:3] = 1.0
         self.gridDimensions[:,1:3] = 1.0
         self.gridDys[:,0] = 1.0
@@ -1079,6 +1080,7 @@
 class EnzoHierarchy2D(EnzoHierarchy):
     def __init__(self, *args, **kwargs):
         EnzoHierarchy.__init__(self, *args, **kwargs)
+        self.gridLeftEdge[:,2] = 0.0
         self.gridRightEdge[:,2] = 1.0
         self.gridDimensions[:,2] = 1.0
         self.gridDzs[:,0] = 1.0



More information about the yt-svn mailing list