Skip to content
Snippets Groups Projects
Commit f43b0511 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Build against the 2.7 release

parent 011bd019
No related branches found
No related tags found
1 merge request!60[CI] Also test against Dune 2.7
Pipeline #36725 failed
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
#define DUNE_ELASTICITY_MATERIALS_LOCALINTEGRALENERGY_HH #define DUNE_ELASTICITY_MATERIALS_LOCALINTEGRALENERGY_HH
#include <dune/common/fmatrix.hh> #include <dune/common/fmatrix.hh>
#include <dune/common/version.hh>
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 8)
#include <dune/common/transpose.hh> #include <dune/common/transpose.hh>
#endif
#include <dune/geometry/quadraturerules.hh> #include <dune/geometry/quadraturerules.hh>
...@@ -77,7 +80,14 @@ energy(const LocalView& localView, ...@@ -77,7 +80,14 @@ energy(const LocalView& localView,
// compute gradients of base functions // compute gradients of base functions
for (size_t i=0; i<jacobians.size(); ++i) for (size_t i=0; i<jacobians.size(); ++i)
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 8)
jacobians[i] = jacobians[i] * transpose(geometryJacobianIT); jacobians[i] = jacobians[i] * transpose(geometryJacobianIT);
#else
{
auto referenceJacobian = jacobians[i];
geometryJacobianIT.mv(referenceJacobian[0], jacobians[i][0]);
}
#endif
// Deformation gradient // Deformation gradient
FieldMatrix<field_type,gridDim,gridDim> deformationGradient(0); FieldMatrix<field_type,gridDim,gridDim> deformationGradient(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment