Skip to content
Snippets Groups Projects
Commit f7de7f2a authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Use size_t

parent a052de84
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ class GlobalNonlinearity {
}
void addHessianIndices(Dune::MatrixIndexSet &indices) const {
for (int i = 0; i < indices.rows(); ++i)
for (size_t i = 0; i < indices.rows(); ++i)
indices.add(i, i);
}
......
......@@ -263,7 +263,7 @@ int main(int argc, char *argv[]) {
leafView, p1Basis, neumannNodes, b4, neumannFunction, time);
stiffnessMatrix.mmv(u4, b4);
// Apply Dirichlet condition
for (int i = 0; i < finestSize; ++i)
for (size_t i = 0; i < finestSize; ++i)
if (ignoreNodes[i].count() == dim) {
dirichletFunction.evaluate(time, u4_diff[i][0]);
u4_diff[i][0] /= refinement_factor;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment