Fix max for Scalar=float

This commit is contained in:
Svenn Tveit 2024-11-22 13:38:08 +01:00
parent f2e42b96ca
commit a8a1a480b7

View File

@ -180,7 +180,7 @@ wellTestALQ()
return {0.0, false};
}
Scalar temp_alq = std::max(this->min_alq_, 0.0);
Scalar temp_alq = std::max(this->min_alq_, Scalar(0.0));
auto cur_alq = temp_alq;
auto init_rates = computeLimitedWellRatesWithALQ_(temp_alq);
LimitedRates new_rates = *init_rates;