IC: Minor change.

InitialConditions
Pierre-Antoine Rouby 2024-07-05 11:31:41 +02:00
parent 366baa737a
commit 30b3b8800e
1 changed files with 5 additions and 6 deletions

View File

@ -390,11 +390,11 @@ class InitialConditions(SQLSubModel):
discharge = data_discharge[profile.kp]
else:
discharge = (
((width * 0.8)
* strickler
* (height ** (5/3))
* (abs(incline) ** (0.5)))
)
((width * 0.8)
* strickler
* (height ** (5/3))
* (abs(incline) ** (0.5)))
)
elevation = max(
profile.z_min() + height,
@ -409,7 +409,6 @@ class InitialConditions(SQLSubModel):
new = Data(reach=self._reach, status=self._status)
new["kp"] = profile.kp
new["discharge"] = discharge
new["elevation"] = elevation
self._data.append(new)