mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 06:25:30 -04:00
8 lines
213 B
Python
8 lines
213 B
Python
try:
|
|
from mpi4py import MPI
|
|
comm = MPI.COMM_WORLD
|
|
except ImportError:
|
|
from unittest.mock import Mock
|
|
MPI = Mock()
|
|
from openmc.dummy_comm import DummyCommunicator
|
|
comm = DummyCommunicator()
|