[Yt-svn] commit/yt: MatthewTurk: Adding option to specify a particular comm for the PAI.

Bitbucket commits-noreply at bitbucket.org
Mon Oct 24 11:43:50 PDT 2011


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/0b9dfdb3b8e8/
changeset:   0b9dfdb3b8e8
branch:      yt
user:        MatthewTurk
date:        2011-10-24 20:43:33
summary:     Adding option to specify a particular comm for the PAI.
affected #:  1 file

diff -r 6267774e2f347fa0b17b14985f1963f5639dbe0e -r 0b9dfdb3b8e8d1002f4d9a2653c2c87fe7b71e0a 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
@@ -741,8 +741,11 @@
     _grids = None
     _distributed = None
 
-    def __init__(self):
-        self.comm = communication_system.communicators[-1]
+    def __init__(self, comm = None):
+        if comm is None:
+            self.comm = communication_system.communicators[-1]
+        else:
+            self.comm = comm
         self._grids = self.comm._grids
         self._distributed = self.comm._distributed

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