From 22eee422a478d682630a534b90e5a6c4fbb0cc7f Mon Sep 17 00:00:00 2001 From: Alex_Mueller Date: Wed, 10 Jan 2024 12:53:19 +0100 Subject: [PATCH] fix KL shell --- .../mechanics/membranestrains.hh | 3 ++- tests/src/checkfebyautodiff.hh | 9 +++------ tests/src/testadaptivestepsizing.cpp | 18 +++++++++++------- tests/src/testhelpers.hh | 18 +++++++++++++----- 4 files changed, 29 insertions(+), 19 deletions(-) diff --git a/ikarus/finiteelements/mechanics/membranestrains.hh b/ikarus/finiteelements/mechanics/membranestrains.hh index 66e949731..891ca4e9d 100644 --- a/ikarus/finiteelements/mechanics/membranestrains.hh +++ b/ikarus/finiteelements/mechanics/membranestrains.hh @@ -40,7 +40,8 @@ namespace Ikarus { const Eigen::Matrix j = J + gradu.transpose(); epsV << J.row(0).dot(gradu.col(0)) + 0.5 * gradu.col(0).squaredNorm(), - J.row(1).dot(gradu.col(1)) + 0.5 * gradu.col(1).squaredNorm(), j.row(0).dot(j.row(1)); + J.row(1).dot(gradu.col(1)) + 0.5 * gradu.col(1).squaredNorm(), + j.row(0).dot(j.row(1)) - J.row(0).dot(J.row(1)); return epsV; } diff --git a/tests/src/checkfebyautodiff.hh b/tests/src/checkfebyautodiff.hh index 6fb079498..230617f42 100644 --- a/tests/src/checkfebyautodiff.hh +++ b/tests/src/checkfebyautodiff.hh @@ -11,7 +11,7 @@ template