[Yt-svn] yt-commit r468 - trunk/yt/lagos
    mturk at wrangler.dreamhost.com 
    mturk at wrangler.dreamhost.com
       
    Tue May 13 16:55:10 PDT 2008
    
    
  
Author: mturk
Date: Tue May 13 16:55:09 2008
New Revision: 468
URL: http://yt.spacepope.org/changeset/468
Log:
A check on the number of grids.  If it's less than a thousand, it doesn't
bother serializing.  This is useful for situations where there are *very* few
grids.
Modified:
   trunk/yt/lagos/HierarchyType.py
Modified: trunk/yt/lagos/HierarchyType.py
==============================================================================
--- trunk/yt/lagos/HierarchyType.py	(original)
+++ trunk/yt/lagos/HierarchyType.py	Tue May 13 16:55:09 2008
@@ -376,7 +376,9 @@
             self.cpu_map = defaultdict(lambda: [][:])
             self.file_access = {}
         harray = self.get_data("/", "Hierarchy")
-        if harray:
+        if self.num_grids <= 1000:
+            mylog.info("Skipping serialization!")
+        if harray and self.num_grids > 1000:
             self.__deserialize_hierarchy(harray)
         else:
             self.__parse_hierarchy_file()
    
    
More information about the yt-svn
mailing list