[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jul 8 06:15:25 PDT 2013


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/9ff8e4bcaa3e/
Changeset:   9ff8e4bcaa3e
Branch:      yt
User:        xarthisius
Date:        2013-07-06 11:36:45
Summary:     Correct dds in covering grid for reduced dimensions in AMR data. Fixes #602
Affected #:  1 file

diff -r 76b555d4075c708d15d5e157921dcd4fc80f364c -r 9ff8e4bcaa3e051fbcabc0bab914e67c23be2c47 yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -3703,7 +3703,8 @@
         self.left_edge = np.array(left_edge)
         self.level = level
         rdx = self.pf.domain_dimensions*self.pf.refine_by**level
-        self.dds = self.pf.domain_width/rdx.astype("float64")
+        rdx[np.where(dims - 2 * num_ghost_zones <= 1)] = 1   # issue 602
+        self.dds = self.pf.domain_width / rdx.astype("float64")
         self.ActiveDimensions = np.array(dims, dtype='int32')
         self.right_edge = self.left_edge + self.ActiveDimensions*self.dds
         self._num_ghost_zones = num_ghost_zones


https://bitbucket.org/yt_analysis/yt/commits/c3e296975053/
Changeset:   c3e296975053
Branch:      yt
User:        MatthewTurk
Date:        2013-07-08 15:15:21
Summary:     Merged in xarthisius/yt (pull request #546)

Correct dds in covering grid for reduced dimensions in AMR data. Fixes #602
Affected #:  1 file

diff -r 5234f53536d4de62f1ba40afc68d7f6e2091bd7f -r c3e296975053621f936fba611bea53b714fa2ae5 yt/data_objects/data_containers.py
--- a/yt/data_objects/data_containers.py
+++ b/yt/data_objects/data_containers.py
@@ -3703,7 +3703,8 @@
         self.left_edge = np.array(left_edge)
         self.level = level
         rdx = self.pf.domain_dimensions*self.pf.refine_by**level
-        self.dds = self.pf.domain_width/rdx.astype("float64")
+        rdx[np.where(dims - 2 * num_ghost_zones <= 1)] = 1   # issue 602
+        self.dds = self.pf.domain_width / rdx.astype("float64")
         self.ActiveDimensions = np.array(dims, dtype='int32')
         self.right_edge = self.left_edge + self.ActiveDimensions*self.dds
         self._num_ghost_zones = num_ghost_zones

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