[yt-svn] commit/yt: MatthewTurk: Change level_stats to have Int64 fields and add an early-exit for preload.
Bitbucket
commits-noreply at bitbucket.org
Thu May 3 07:17:40 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/e70f9f0de802/
changeset: e70f9f0de802
branch: yt
user: MatthewTurk
date: 2012-05-03 16:17:32
summary: Change level_stats to have Int64 fields and add an early-exit for preload.
affected #: 2 files
diff -r 39cfea952be1f77e33e05b99c781aa3ecc7edc7c -r e70f9f0de8025801cc05fded6f5c5383e7381670 yt/data_objects/hierarchy.py
--- a/yt/data_objects/hierarchy.py
+++ b/yt/data_objects/hierarchy.py
@@ -354,7 +354,7 @@
# 1 = number of cells
# 2 = blank
desc = {'names': ['numgrids','numcells','level'],
- 'formats':['Int32']*3}
+ 'formats':['Int64']*3}
self.level_stats = blankRecordArray(desc, MAXLEVEL)
self.level_stats['level'] = [i for i in range(MAXLEVEL)]
self.level_stats['numgrids'] = [0 for i in range(MAXLEVEL)]
diff -r 39cfea952be1f77e33e05b99c781aa3ecc7edc7c -r e70f9f0de8025801cc05fded6f5c5383e7381670 yt/utilities/parallel_tools/parallel_analysis_interface.py
--- a/yt/utilities/parallel_tools/parallel_analysis_interface.py
+++ b/yt/utilities/parallel_tools/parallel_analysis_interface.py
@@ -530,6 +530,7 @@
def preload(self, grids, fields, io_handler):
# This will preload if it detects we are parallel capable and
# if so, we load *everything* that we need. Use with some care.
+ if len(fields) == 0: return
mylog.debug("Preloading %s from %s grids", fields, len(grids))
if not self._distributed: return
io_handler.preload(grids, fields)
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list