mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
minor changes that should also be cherry-picked to shikhar413::cmfd-capi
This commit is contained in:
parent
1633d5a749
commit
91180f08a7
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue