wpimult must be multiplied and not overwritten.

Mulitple WPIMULT and WELPI entries are cumulative on same connections.
This commit is contained in:
Svenn Tveit
2023-09-15 18:49:55 +02:00
parent 30cd8b8141
commit 0f40d2c42c

View File

@@ -275,7 +275,7 @@ const std::optional<std::pair<double, double>>& Connection::perf_range() const {
}
void Connection::scaleWellPi(double wellPi) {
this->m_wpimult = wellPi;
this->m_wpimult *= wellPi;
this->m_CF *= wellPi;
}