From 91180f08a747c57f5c9dc437111ac06d3fa703b7 Mon Sep 17 00:00:00 2001 From: Shikhar Kumar Date: Wed, 19 Sep 2018 20:20:31 -0400 Subject: [PATCH] minor changes that should also be cherry-picked to shikhar413::cmfd-capi --- openmc/cmfd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmc/cmfd.py b/openmc/cmfd.py index d5002279c5..cbec331999 100644 --- a/openmc/cmfd.py +++ b/openmc/cmfd.py @@ -1548,7 +1548,7 @@ class CMFDRun(object): # Check and raise error if source sites exist outside of CMFD mesh if openmc.capi.master() and outside: - raise OpenMCError('Source sites outside of the CMFD mesh!') + raise OpenMCError('Source sites outside of the CMFD mesh') # Have master compute weight factors, ignore any zeros in # sourcecounts or cmfd_src @@ -1656,9 +1656,9 @@ class CMFDRun(object): if have_mpi: # Collect values of count from all processors - self._intracomm.Reduce(count, self._sourcecounts, MPI.SUM, 0) + self._intracomm.Reduce(count, self._sourcecounts, MPI.SUM, root=0) # Check if there were sites outside the mesh for any processor - self._intracomm.Reduce(outside, sites_outside, MPI.LOR, 0) + self._intracomm.Reduce(outside, sites_outside, MPI.LOR, root=0) # Deal with case if MPI not defined (only one proc) else: sites_outside = outside