[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sat Aug 12 04:27:19 PDT 2017
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/52d263d1c1db/
Changeset: 52d263d1c1db
User: brittonsmith
Date: 2017-08-11 23:58:58+00:00
Summary: Ensure integer division for index calculation.
Affected #: 1 file
diff -r c936506c614c44a06411902dfc4b898ad83e8bb3 -r 52d263d1c1db2a4c7940769314d593755d7c203d 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
@@ -1188,7 +1188,7 @@
return True, LE, RE, self.ds.region(self.center, LE, RE)
cc = MPI.Compute_dims(self.comm.size / rank_ratio, 3)
- mi = self.comm.rank % (self.comm.size / rank_ratio)
+ mi = self.comm.rank % (self.comm.size // rank_ratio)
cx, cy, cz = np.unravel_index(mi, cc)
x = np.mgrid[LE[0]:RE[0]:(cc[0]+1)*1j][cx:cx+2]
y = np.mgrid[LE[1]:RE[1]:(cc[1]+1)*1j][cy:cy+2]
@@ -1216,7 +1216,7 @@
return LE, RE #, re
cc = MPI.Compute_dims(self.comm.size / rank_ratio, 3)
- mi = self.comm.rank % (self.comm.size / rank_ratio)
+ mi = self.comm.rank % (self.comm.size // rank_ratio)
cx, cy, cz = np.unravel_index(mi, cc)
x = np.mgrid[LE[0]:RE[0]:(cc[0]+1)*1j][cx:cx+2]
y = np.mgrid[LE[1]:RE[1]:(cc[1]+1)*1j][cy:cy+2]
https://bitbucket.org/yt_analysis/yt/commits/adcaf554545b/
Changeset: adcaf554545b
User: MatthewTurk
Date: 2017-08-12 11:26:41+00:00
Summary: Merge pull request #1538 from brittonsmith/mpipy3
Ensure integer division for index calculation.
Affected #: 1 file
diff -r c936506c614c44a06411902dfc4b898ad83e8bb3 -r adcaf554545b2ef5f441351dc42ed255a2d3f177 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
@@ -1188,7 +1188,7 @@
return True, LE, RE, self.ds.region(self.center, LE, RE)
cc = MPI.Compute_dims(self.comm.size / rank_ratio, 3)
- mi = self.comm.rank % (self.comm.size / rank_ratio)
+ mi = self.comm.rank % (self.comm.size // rank_ratio)
cx, cy, cz = np.unravel_index(mi, cc)
x = np.mgrid[LE[0]:RE[0]:(cc[0]+1)*1j][cx:cx+2]
y = np.mgrid[LE[1]:RE[1]:(cc[1]+1)*1j][cy:cy+2]
@@ -1216,7 +1216,7 @@
return LE, RE #, re
cc = MPI.Compute_dims(self.comm.size / rank_ratio, 3)
- mi = self.comm.rank % (self.comm.size / rank_ratio)
+ mi = self.comm.rank % (self.comm.size // rank_ratio)
cx, cy, cz = np.unravel_index(mi, cc)
x = np.mgrid[LE[0]:RE[0]:(cc[0]+1)*1j][cx:cx+2]
y = np.mgrid[LE[1]:RE[1]:(cc[1]+1)*1j][cy:cy+2]
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