Skip to content

Commit

Permalink
misc: Update inhalo property aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Apr 22, 2024
1 parent 63a7fe0 commit a12e411
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions devito/types/dense.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,20 @@ def shape_with_halo(self):
"""
return tuple(j + i + k for i, (j, k) in zip(self.shape, self._size_outhalo))

_shape_with_outhalo = shape_with_halo
@property
def _shape_with_outhalo(self):
"""
Shape of the domain+outhalo region. The outhalo is the region
surrounding the domain that may be read by an Operator.
Notes
-----
In an MPI context, this is the *local* with_halo region shape.
Further, note that the outhalo of inner ranks is typically empty, while
the outhalo of boundary ranks contains a number of elements depending
on the rank position in the decomposed grid (corner, side, ...).
"""
return self.shape_with_halo

@cached_property
def _shape_with_inhalo(self):
Expand Down Expand Up @@ -310,8 +323,15 @@ def size_global(self):
"""
return reduce(mul, self.shape_global)

_offset_inhalo = AbstractFunction._offset_halo
_size_inhalo = AbstractFunction._size_halo
@property
def _offset_inhalo(self):
"""Number of points before the first and last inner halo elements."""
return AbstractFunction._offset_halo

@property
def _size_inhalo(self):
"""Number of points in the inner halo region."""
return AbstractFunction._size_halo

@cached_property
def _size_outhalo(self):
Expand Down

0 comments on commit a12e411

Please sign in to comment.