Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functions on subdomains (WIP) #1380

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
.
rhodrin committed Nov 4, 2020
commit 05e56b7435c426f6057883cae8e7fa5d48120b9c
7 changes: 6 additions & 1 deletion devito/types/dense.py
Original file line number Diff line number Diff line change
@@ -330,14 +330,17 @@ def _size_outhalo(self):
if not self._distributor.is_boundary_rank:
warning(warning_msg)
else:
for i, j, k, l in zip(left, right, self._distributor.mycoords,
for i, j, k, l in zip(left[-len(self._distributor.dimensions):],
right[-len(self._distributor.dimensions):],
self._distributor.mycoords,
self._distributor.topology):
if l > 1 and ((j > 0 and k == 0) or (i > 0 and k == l-1)):
warning(warning_msg)
break
except AttributeError:
pass

#from IPython import embed; embed()
return DimensionTuple(*sizes, getters=self.dimensions, left=left, right=right)

@property
@@ -723,6 +726,8 @@ def _halo_exchange(self):
raise RuntimeError("`%s` cannot perform a halo exchange as it has "
"no Grid attached" % self.name)

if self.name == 'u':
from IPython import embed; embed()
neighborhood = self._distributor.neighborhood
comm = self._distributor.comm