newtonmethod: use std::size_t

This commit is contained in:
Arne Morten Kvarving committed 2025-05-19 15:37:24 +02:00
1 parent d53ab56263
commit 5406eb6e73
1 file changed
+4 -3
+4 -3
View File
@@ -49,6 +49,7 @@
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <exception>
#include <iostream>
#include <sstream>
@@ -674,7 +675,7 @@ protected:
throw NumericalProblem("Non-finite update!");
}
size_t numGridDof = model().numGridDof();
std::size_t numGridDof = model().numGridDof();
for (unsigned dofIdx = 0; dofIdx < numGridDof; ++dofIdx) {
if (enableConstraints_()) {
if (constraintsMap.count(dofIdx) > 0) {
@@ -701,8 +702,8 @@ protected:
}
// update the DOFs of the auxiliary equations
size_t numDof = model().numTotalDof();
for (size_t dofIdx = numGridDof; dofIdx < numDof; ++dofIdx) {
std::size_t numDof = model().numTotalDof();
for (std::size_t dofIdx = numGridDof; dofIdx < numDof; ++dofIdx) {
nextSolution[dofIdx] = currentSolution[dofIdx];
nextSolution[dofIdx] -= solutionUpdate[dofIdx];
}