[yt-svn] commit/yt: MatthewTurk: Merged in hegan/yt (pull request #1611)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Jun 11 06:02:56 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/aaf2b4a8a158/
Changeset:   aaf2b4a8a158
Branch:      yt
User:        MatthewTurk
Date:        2015-06-11 13:02:46+00:00
Summary:     Merged in hegan/yt (pull request #1611)

small fix to allow enzo AP datasets to load in parallel when no APs present
Affected #:  1 file

diff -r c559a1cb6ea100b364f16eb35042d8ac5981b0c1 -r aaf2b4a8a1587a380805bd6aa9e6c4a362ffeede yt/frontends/enzo/data_structures.py
--- a/yt/frontends/enzo/data_structures.py
+++ b/yt/frontends/enzo/data_structures.py
@@ -452,9 +452,16 @@
             if "AppendActiveParticleType" in self.dataset.parameters:
                 ap_fields = self._detect_active_particle_fields()
                 field_list = list(set(field_list).union(ap_fields))
+            ptypes = self.dataset.particle_types
+            ptypes_raw = self.dataset.particle_types_raw
         else:
             field_list = None
+            ptypes = None
+            ptypes_raw = None
         self.field_list = list(self.comm.mpi_bcast(field_list))
+        self.dataset.particle_types = list(self.comm.mpi_bcast(ptypes))
+        self.dataset.particle_types_raw = list(self.comm.mpi_bcast(ptypes_raw))
+
 
     def _generate_random_grids(self):
         if self.num_grids > 40:

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