mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
debug auto BC without node
This commit is contained in:
1 parent
9a7c264ee6
commit
83c03c998a
1 file changed
+4
@@ -331,6 +331,8 @@ class EditBoundaryConditionWindow(PamhyrWindow):
|
||||
def generate_uniform(self):
|
||||
if self._data.has_node:
|
||||
node = self._data.node
|
||||
if node is None:
|
||||
return
|
||||
reach = self._data.reach(self._study.river)[0]
|
||||
profile = reach.profiles[-1]
|
||||
incline = abs(reach.get_incline_median_mean())
|
||||
@@ -360,6 +362,8 @@ class EditBoundaryConditionWindow(PamhyrWindow):
|
||||
def generate_critical(self):
|
||||
if self._data.has_node:
|
||||
node = self._data.node
|
||||
if node is None:
|
||||
return
|
||||
reach = self._data.reach(self._study.river)[0]
|
||||
profile = reach.profiles[-1]
|
||||
z_min = profile.z_min()
|
||||
|
||||
Reference in new issue
Block a user