Commit 95e57a70 authored by Somnath, Suhas's avatar Somnath, Suhas
Browse files

Added mpi imports that were missing

parent c758f0d1
......@@ -17,6 +17,14 @@ from import Dimension
from .fft import get_noise_floor, are_compatible_filters, build_composite_freq_filter
from .gmode_utils import test_filter
from mpi4py import MPI
if MPI.COMM_WORLD.Get_size() == 1:
# mpi4py available but NOT called via mpirun or mpiexec => single node
MPI = None
except ImportError:
# mpi4py not even present! Single node by default:
MPI = None
# TODO: correct implementation of num_pix
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment