mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
IC: Minor change.
This commit is contained in:
1 parent
366baa737a
commit
30b3b8800e
1 file changed
+5
-6
@@ -390,11 +390,11 @@ class InitialConditions(SQLSubModel):
|
|||||||
discharge = data_discharge[profile.kp]
|
discharge = data_discharge[profile.kp]
|
||||||
else:
|
else:
|
||||||
discharge = (
|
discharge = (
|
||||||
((width * 0.8)
|
((width * 0.8)
|
||||||
* strickler
|
* strickler
|
||||||
* (height ** (5/3))
|
* (height ** (5/3))
|
||||||
* (abs(incline) ** (0.5)))
|
* (abs(incline) ** (0.5)))
|
||||||
)
|
)
|
||||||
|
|
||||||
elevation = max(
|
elevation = max(
|
||||||
profile.z_min() + height,
|
profile.z_min() + height,
|
||||||
@@ -409,7 +409,6 @@ class InitialConditions(SQLSubModel):
|
|||||||
new = Data(reach=self._reach, status=self._status)
|
new = Data(reach=self._reach, status=self._status)
|
||||||
new["kp"] = profile.kp
|
new["kp"] = profile.kp
|
||||||
new["discharge"] = discharge
|
new["discharge"] = discharge
|
||||||
|
|
||||||
new["elevation"] = elevation
|
new["elevation"] = elevation
|
||||||
|
|
||||||
self._data.append(new)
|
self._data.append(new)
|
||||||
|
|||||||
Reference in new issue
Block a user