mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-22 23:43:28 -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};
|
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 cur_alq = temp_alq;
|
||||||
auto init_rates = computeLimitedWellRatesWithALQ_(temp_alq);
|
auto init_rates = computeLimitedWellRatesWithALQ_(temp_alq);
|
||||||
LimitedRates new_rates = *init_rates;
|
LimitedRates new_rates = *init_rates;
|
||||||
|
Loading…
Reference in New Issue
Block a user