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

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Sat Jun 21 13:47:25 PDT 2008


Author: mturk
Date: Sat Jun 21 13:47:24 2008
New Revision: 594
URL: http://yt.spacepope.org/changeset/594

Log:
Moved _select_level into AMRHierarchy.



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

Modified: branches/yt-generalization/yt/lagos/HierarchyType.py
==============================================================================
--- branches/yt-generalization/yt/lagos/HierarchyType.py	(original)
+++ branches/yt-generalization/yt/lagos/HierarchyType.py	Sat Jun 21 13:47:24 2008
@@ -189,6 +189,11 @@
         """
         return self.grids[self._select_level(level)]
 
+    def _select_level(self, level):
+        # We return a numarray of the indices of all the grids on a given level
+        indices = na.where(self.gridLevels[:,0] == level)[0]
+        return indices
+
     def get_smallest_dx(self):
         """
         Returns (in code units) the smallest cell size in the simulation.
@@ -713,12 +718,6 @@
                 self.derived_field_list.append(field)
 
 
-
-    def _select_level(self, level):
-        # We return a numarray of the indices of all the grids on a given level
-        indices = na.where(self.gridLevels[:,0] == level)[0]
-        return indices
-
     @time_execution
     def export_particles_pb(self, filename, filter = 1, indexboundary = 0, fields = None, scale=1.0):
         """



More information about the yt-svn mailing list