mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 23:20:12 -05:00
replace std::fill with std::ranges::fill where appropriate
the c++-20 constrained algorithm is safer and code is more readable
This commit is contained in:
1 parent
4b2a574727
commit
f00ab30268
21 files changed
+56
-61
No files matched your search
@@ -155,7 +155,7 @@ public:
|
||||
// the solution's residual
|
||||
this->error_ = 0.0;
|
||||
Dune::FieldVector<Scalar, numEq> componentSumError;
|
||||
std::fill(componentSumError.begin(), componentSumError.end(), 0.0);
|
||||
std::ranges::fill(componentSumError, 0.0);
|
||||
Scalar sumPv = 0.0;
|
||||
errorPvFraction_ = 0.0;
|
||||
const Scalar dt = this->simulator_.timeStepSize();
|
||||
|
||||
Reference in new issue
Block a user