Skip to content
Snippets Groups Projects
Commit 84accb37 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Fix typo in a loop

This to clang for pointing out the problem.  I had not noticed it before
because the code was only wrong for dimworld<3, which I never tried.
parent cacaa35b
No related branches found
No related tags found
No related merge requests found
...@@ -347,7 +347,7 @@ energy(const typename Basis::LocalView& localView, ...@@ -347,7 +347,7 @@ energy(const typename Basis::LocalView& localView,
{ {
for (int j=0; j<dimworld; j++) for (int j=0; j<dimworld; j++)
aCovariant[i][j] = jacobianTransposed[i][j]; aCovariant[i][j] = jacobianTransposed[i][j];
for (int j=dimworld; j<3; i++) for (int j=dimworld; j<3; j++)
aCovariant[i][j] = 0.0; aCovariant[i][j] = 0.0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment