[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Mar 1 12:34:44 PST 2013
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/e1561b661630/
changeset: e1561b661630
branch: stable
user: samskillman
date: 2013-03-01 20:28:58
summary: Fix for 1-indexed grid neighbor finding.
affected #: 1 file
diff -r f62b52c5f89b4eec4b0e90a304238f40cfd8f879 -r e1561b661630d6bf69a99bd1f11095d4af8fe7ec yt/utilities/amr_kdtree/amr_kdtree.py
--- a/yt/utilities/amr_kdtree/amr_kdtree.py
+++ b/yt/utilities/amr_kdtree/amr_kdtree.py
@@ -353,7 +353,8 @@
if (in_grid != True).sum()>0:
grids[in_grid != True] = \
- [self.pf.h.grids[self.locate_brick(new_positions[i]).grid]
+ [self.pf.h.grids[self.locate_brick(new_positions[i]).grid -
+ self._id_offset]
for i in get_them]
cis[in_grid != True] = \
[(new_positions[i]-grids[i].LeftEdge)/
@@ -390,7 +391,8 @@
"""
position = np.array(position)
- grid = self.pf.h.grids[self.locate_brick(position).grid]
+ grid = self.pf.h.grids[self.locate_brick(position).grid -
+ self._id_offset]
ci = ((position-grid.LeftEdge)/grid.dds).astype('int64')
return self.locate_neighbors(grid,ci)
https://bitbucket.org/yt_analysis/yt/commits/5ad9891f2f00/
changeset: 5ad9891f2f00
branch: stable
user: MatthewTurk
date: 2013-03-01 21:34:40
summary: Merged in samskillman/yt/stable (pull request #454)
Neighbor finding
affected #: 1 file
diff -r c5d002a39ba7f41c62a1bdf97a7e2212b9facd55 -r 5ad9891f2f0051b5d6234aafe9d7adc4aa265700 yt/utilities/amr_kdtree/amr_kdtree.py
--- a/yt/utilities/amr_kdtree/amr_kdtree.py
+++ b/yt/utilities/amr_kdtree/amr_kdtree.py
@@ -353,7 +353,8 @@
if (in_grid != True).sum()>0:
grids[in_grid != True] = \
- [self.pf.h.grids[self.locate_brick(new_positions[i]).grid]
+ [self.pf.h.grids[self.locate_brick(new_positions[i]).grid -
+ self._id_offset]
for i in get_them]
cis[in_grid != True] = \
[(new_positions[i]-grids[i].LeftEdge)/
@@ -390,7 +391,8 @@
"""
position = np.array(position)
- grid = self.pf.h.grids[self.locate_brick(position).grid]
+ grid = self.pf.h.grids[self.locate_brick(position).grid -
+ self._id_offset]
ci = ((position-grid.LeftEdge)/grid.dds).astype('int64')
return self.locate_neighbors(grid,ci)
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