mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-07-07 04:53:03 -05:00
BlackoilWellModel: use appropriate Scalar type
This commit is contained in:
parent
600e7ea2f7
commit
e9050359db
|
@ -2274,7 +2274,7 @@ namespace Opm {
|
|||
auto& ws = this->wellState().well(well->indexOfWell());
|
||||
for (int p = 0; p < np; ++p) {
|
||||
// make sure the potentials are positive
|
||||
ws.well_potentials[p] = std::max(0.0, potentials[p]);
|
||||
ws.well_potentials[p] = std::max(Scalar{0.0}, potentials[p]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user