[Yt-svn] yt-commit r1445 - trunk/yt/lagos
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Thu Sep 10 15:12:52 PDT 2009
Author: mturk
Date: Thu Sep 10 15:12:51 2009
New Revision: 1445
URL: http://yt.spacepope.org/changeset/1445
Log:
Adding a clear_all_data routine
Modified:
trunk/yt/lagos/HierarchyType.py
Modified: trunk/yt/lagos/HierarchyType.py
==============================================================================
--- trunk/yt/lagos/HierarchyType.py (original)
+++ trunk/yt/lagos/HierarchyType.py Thu Sep 10 15:12:51 2009
@@ -129,6 +129,14 @@
self.__data_filename = fn
self._data_file = h5py.File(fn, self._data_mode)
+ def clear_all_data(self):
+ """
+ This routine clears all the data currently being held onto by the grids
+ and the data queue.
+ """
+ for g in self.grids: g.clear_data()
+ self.queue.queue.clear()
+
@parallel_root_only
def __create_data_file(self, fn):
f = h5py.File(fn, 'a')
More information about the yt-svn
mailing list