From 4084d899ff926481a5f6291748b7c485cd141e7b 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..915b9dc 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]); + } +#endif // Deformation gradient FieldMatrix<field_type,gridDim,gridDim> deformationGradient(0); -- GitLab