BC: Make node association unique (#25).

This commit is contained in:
Pierre-Antoine Rouby committed 2023-11-27 08:55:38 +01:00
1 parent 01fd7dbec8
commit c69cbdb34e
2 files changed
+15

No files matched your search

@@ -89,3 +89,11 @@ class BoundaryConditionList(PamhyrModelListWithTab):
def copy(self):
return copy(self)
def get_assoc_to_node(self, tab, node):
return next(
filter(
lambda i: i.node is node,
self._tabs[tab]
)
)