mirror of https://gitlab.com/pamhyr/pamhyr2
debug
parent
5aef0bbf3c
commit
3e8132646d
|
|
@ -463,11 +463,14 @@ class InitialConditions(SQLSubModel):
|
||||||
if not compute_height:
|
if not compute_height:
|
||||||
height = data_height[profile.rk]
|
height = data_height[profile.rk]
|
||||||
else:
|
else:
|
||||||
height = (
|
if abs(incline) <= 0:
|
||||||
discharge
|
height = 0.0
|
||||||
/
|
else:
|
||||||
((width * 0.8) * strickler * (abs(incline) ** (0.5)))
|
height = (
|
||||||
) ** (0.6)
|
discharge
|
||||||
|
/
|
||||||
|
((width * 0.8) * strickler * (abs(incline) ** (0.5)))
|
||||||
|
) ** (0.6)
|
||||||
|
|
||||||
elevation = max(
|
elevation = max(
|
||||||
profile.z_min() + height,
|
profile.z_min() + height,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue