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