[Yt-svn] commit/yt: MatthewTurk: Fixing refine_by issue. Should fix the build.
Bitbucket
commits-noreply at bitbucket.org
Thu Sep 8 09:45:38 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/2b30cf976589/
changeset: 2b30cf976589
branch: yt
user: MatthewTurk
date: 2011-09-08 18:45:07
summary: Fixing refine_by issue. Should fix the build.
affected #: 1 file (39 bytes)
--- a/yt/data_objects/data_containers.py Thu Sep 08 11:45:30 2011 -0400
+++ b/yt/data_objects/data_containers.py Thu Sep 08 12:45:07 2011 -0400
@@ -3157,6 +3157,7 @@
def _update_level_state(self, level, field = None):
dx = ((self.pf.domain_right_edge - self.pf.domain_left_edge) /
self.pf.domain_dimensions.astype("float64"))
+ dx /= self.pf.refine_by**level
for ax, v in zip('xyz', dx): self['cd%s'%ax] = v
LL = self.left_edge - self.pf.domain_left_edge
self._old_global_startindex = self.global_startindex
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