diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py index 413b79df12e4de064e40cfbb38afca0fdba7a88e..237bc2c45317d6d9f9d1b98ec06e7ab9c18a47c7 100644 --- a/meshmode/mesh/__init__.py +++ b/meshmode/mesh/__init__.py @@ -381,6 +381,27 @@ class NodalAdjacency(Record): # }}} +# {{{ partition adjacency + +class InterPartitionAdjacency(): + """ + Describes adjacency information of elements between partitions. + """ + + def __init__(self): + self.elements = [] + self.element_faces = [] + self.neighbors = [] + self.neighbor_faces = [] + + def add_connection(self, elem, face, neighbor, neighbor_face): + self.elements.append(elem) + self.element_faces.append(face) + self.neighbors.append(neighbor) + self.neighbor_faces.append(neighbor_face) + +# }}} + # {{{ facial adjacency