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:
Arne Morten Kvarving committed 2026-02-23 10:23:45 +01:00
1 parent 4b2a574727
commit f00ab30268
21 files changed
+56 -61

No files matched your search

+1 -1
View File
@@ -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();