From f43b0511e6dd52a19ab87eba4b91dd45eb96a045 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Sun, 28 Mar 2021 22:16:16 +0200 Subject: [PATCH] Build against the 2.7 release --- dune/elasticity/materials/localintegralenergy.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dune/elasticity/materials/localintegralenergy.hh b/dune/elasticity/materials/localintegralenergy.hh index 6ef3815..9acc5c0 100644 --- a/dune/elasticity/materials/localintegralenergy.hh +++ b/dune/elasticity/materials/localintegralenergy.hh @@ -2,7 +2,10 @@ #define DUNE_ELASTICITY_MATERIALS_LOCALINTEGRALENERGY_HH #include <dune/common/fmatrix.hh> +#include <dune/common/version.hh> +#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 8) #include <dune/common/transpose.hh> +#endif #include <dune/geometry/quadraturerules.hh> @@ -77,7 +80,14 @@ energy(const LocalView& localView, // compute gradients of base functions for (size_t i=0; i<jacobians.size(); ++i) +#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 8) jacobians[i] = jacobians[i] * transpose(geometryJacobianIT); +#else + { + auto referenceJacobian = jacobians[i]; + geometryJacobianIT.mv(referenceJacobian[0], jacobians[i][0]); + } +#endif // Deformation gradient FieldMatrix<field_type,gridDim,gridDim> deformationGradient(0); -- GitLab