Commit 006ed9a3 authored by theos's avatar theos

distributed_data_object now uses the d2o_configuration in order to determine...

distributed_data_object now uses the d2o_configuration in order to determine the default communicator.
parent fd33af41
......@@ -167,11 +167,9 @@ class distributed_data_object(object):
def __init__(self, global_data=None, global_shape=None, dtype=None,
local_data=None, local_shape=None,
distribution_strategy=None, hermitian=False,
alias=None, path=None, comm=MPI.COMM_WORLD,
alias=None, path=None, comm=getattr(MPI, gc['default_comm']),
copy=True, *args, **kwargs):
# TODO: allow init with empty shape
if isinstance(global_data, tuple) or isinstance(global_data, list):
global_data = np.array(global_data, copy=False)
if isinstance(local_data, tuple) or isinstance(local_data, list):
......
Markdown is supported
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