Commit 6dd3ba55 authored by Martin Bauer's avatar Martin Bauer
Browse files

Datahandling synchronization function: consistent interface

parent e9eb29b9
......@@ -211,7 +211,7 @@ class DataHandling(ABC):
# ------------------------------- Communication --------------------------------------------------------------------
@abstractmethod
def synchronization_function(self, names, stencil, target, **kwargs) -> Callable[[], None]:
def synchronization_function(self, names, stencil=None, target=None, **kwargs) -> Callable[[], None]:
"""Synchronizes ghost layers for distributed arrays.
For serial scenario this has to be called for correct periodicity handling
......
......@@ -281,7 +281,7 @@ class ParallelDataHandling(DataHandling):
def synchronization_function_gpu(self, names, stencil=None, buffered=True, stencil_restricted=False, **_):
return self.synchronization_function(names, stencil, 'gpu', buffered, stencil_restricted)
def synchronization_function(self, names, stencil=None, target='cpu', buffered=True, stencil_restricted=False):
def synchronization_function(self, names, stencil=None, target=None, buffered=True, stencil_restricted=False):
if target is None:
target = self.default_target
......
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