mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 07:07:42 -05:00
use std::transform instead of raw loops
This commit is contained in:
1 parent
c6227b2166
commit
e71e55064d
17 files changed
+74
-68
No files matched your search
@@ -82,9 +82,8 @@ void stabilizeNonlinearUpdate(BVector& dx, BVector& dxOld,
|
||||
if (omega == 1.) {
|
||||
return;
|
||||
}
|
||||
for (auto& d : dx) {
|
||||
d *= omega;
|
||||
}
|
||||
std::transform(dx.begin(), dx.end(), dx.begin(),
|
||||
[omega](const auto d) { return d*omega; });
|
||||
return;
|
||||
}
|
||||
case NonlinearRelaxType::SOR: {
|
||||
|
||||
Reference in new issue
Block a user