[yt-svn] commit/yt: MatthewTurk: Make ncell^3 more precise.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Apr 3 08:24:13 PDT 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/c47c7659453c/
Changeset: c47c7659453c
Branch: yt-3.0
User: MatthewTurk
Date: 2014-04-03 17:23:54
Summary: Make ncell^3 more precise.
Affected #: 1 file
diff -r 2177f9babc9ef261132a58655cf2564e7223a2db -r c47c7659453c1f01297ae8ff8113ab2f29619e79 yt/geometry/grid_geometry_handler.py
--- a/yt/geometry/grid_geometry_handler.py
+++ b/yt/geometry/grid_geometry_handler.py
@@ -182,7 +182,7 @@
print "% 3i\t% 6i\t% 14i\t% 14i" % \
(level, self.level_stats['numgrids'][level],
self.level_stats['numcells'][level],
- self.level_stats['numcells'][level]**(1./3))
+ np.ceil(self.level_stats['numcells'][level]**(1./3)))
dx = self.select_grids(level)[0].dds[0]
print "-" * 46
print " \t% 6i\t% 14i" % (self.level_stats['numgrids'].sum(), self.level_stats['numcells'].sum())
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