Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Plewinski
pystencils
Commits
6dd3ba55
Commit
6dd3ba55
authored
Jan 11, 2019
by
Martin Bauer
Browse files
Datahandling synchronization function: consistent interface
parent
e9eb29b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
datahandling/datahandling_interface.py
View file @
6dd3ba55
...
...
@@ -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
...
...
datahandling/parallel_datahandling.py
View file @
6dd3ba55
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment