mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-22 15:33:29 -06:00
Fix max for Scalar=float
This commit is contained in:
parent
f2e42b96ca
commit
a8a1a480b7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user