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

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Jul 12 11:41:01 PDT 2017


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/bce56d1e04db/
Changeset:   bce56d1e04db
User:        ngoldbaum
Date:        2017-07-11 20:01:01+00:00
Summary:     fix parallel projections when there are less than nprocs io chunks. Closes #1483
Affected #:  1 file

diff -r fc58054806fe06993c0fc585939e8fd48552c117 -r bce56d1e04db24cca385c676899c92c5d039affe yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -342,6 +342,10 @@
                     self._initialize_projected_units(fields, chunk)
                     _units_initialized = True
                 self._handle_chunk(chunk, fields, tree)
+        # if there's less than nprocs chunks, units won't be initialized
+        # on all processors, so sync with _projected_units on rank 0
+        projected_units = self.comm.mpi_bcast(self._projected_units)
+        self._projected_units = projected_units
         # Note that this will briefly double RAM usage
         if self.method == "mip":
             merge_style = -1


https://bitbucket.org/yt_analysis/yt/commits/ec4fad030063/
Changeset:   ec4fad030063
User:        ngoldbaum
Date:        2017-07-12 18:40:49+00:00
Summary:     Merge pull request #1488 from ngoldbaum/par-proj-units

Fix parallel projections when there are less than nprocs io chunks.
Affected #:  1 file

diff -r 41f22e5d10cbe6cd5a029b315a774d78513e43b1 -r ec4fad03006330ef2c2591ab717527830d8e4ecf yt/data_objects/construction_data_containers.py
--- a/yt/data_objects/construction_data_containers.py
+++ b/yt/data_objects/construction_data_containers.py
@@ -342,6 +342,10 @@
                     self._initialize_projected_units(fields, chunk)
                     _units_initialized = True
                 self._handle_chunk(chunk, fields, tree)
+        # if there's less than nprocs chunks, units won't be initialized
+        # on all processors, so sync with _projected_units on rank 0
+        projected_units = self.comm.mpi_bcast(self._projected_units)
+        self._projected_units = projected_units
         # Note that this will briefly double RAM usage
         if self.method == "mip":
             merge_style = -1

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