Skip to content

Commit

Permalink
[discretizers] re-add and deprecate neighbours
Browse files Browse the repository at this point in the history
  • Loading branch information
pmli committed Oct 19, 2023
1 parent 82a1586 commit aab4ea8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pymor/discretizers/builtin/grids/interfaces.py
Expand Up @@ -10,6 +10,7 @@
from pymor.core.logger import getLogger
from pymor.discretizers.builtin.inverse import inv_transposed_two_by_two
from pymor.discretizers.builtin.relations import inverse_relation
from pymor.tools.deprecated import Deprecated


class ReferenceElement(CacheableObject):
Expand Down Expand Up @@ -240,6 +241,10 @@ def _superentities_with_indices(self, codim, superentity_codim):
SE = self.subentities(superentity_codim, codim)
return inverse_relation(SE, size_rhs=self.size(codim), with_indices=True)

@Deprecated('neighbors')
def neighbours(self, *args, **kwargs):
self.neighbors(*args, **kwargs)

def neighbors(self, codim, neighbor_codim, intersection_codim=None):
"""Maps entity index and local neighbor index to global neighbor index.
Expand Down

0 comments on commit aab4ea8

Please sign in to comment.