use std::transform instead of raw loops

This commit is contained in:
Arne Morten Kvarving committed 2025-04-24 08:10:30 +02:00
1 parent c6227b2166
commit e71e55064d
17 files changed
+74 -68

No files matched your search

+2 -3
View File
@@ -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: {