[Yt-svn] yt-commit r956 - trunk/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Thu Nov 20 10:38:44 PST 2008
Author: mturk
Date: Thu Nov 20 10:38:42 2008
New Revision: 956
URL: http://yt.spacepope.org/changeset/956
Log:
In the case of a DM-only run where the final grid has no FileName attribute,
this should fix a bug.
Modified:
trunk/yt/lagos/HierarchyType.py
Modified: trunk/yt/lagos/HierarchyType.py
==============================================================================
--- trunk/yt/lagos/HierarchyType.py (original)
+++ trunk/yt/lagos/HierarchyType.py Thu Nov 20 10:38:42 2008
@@ -551,6 +551,7 @@
# Now we search backwards from the end of the file to find out how many
# grids we have, which allows us to preallocate memory
self.__hierarchy_string = open(self.hierarchy_filename).read()
+ testGrid = testGridID = None
for line in rlines(open(self.hierarchy_filename, "rb")):
if line.startswith("BaryonFileName") or \
line.startswith("FileName "):
More information about the yt-svn
mailing list