From 84accb3755b42c7c23c46cd2acf060fc9828788b Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Thu, 16 May 2019 11:15:30 +0200 Subject: [PATCH] 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. --- dune/gfe/nonplanarcosseratshellenergy.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/gfe/nonplanarcosseratshellenergy.hh b/dune/gfe/nonplanarcosseratshellenergy.hh index 7378f356..c8c48f7b 100644 --- a/dune/gfe/nonplanarcosseratshellenergy.hh +++ b/dune/gfe/nonplanarcosseratshellenergy.hh @@ -347,7 +347,7 @@ energy(const typename Basis::LocalView& localView, { for (int j=0; j<dimworld; 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; } -- GitLab