Skip to content
Snippets Groups Projects
Commit 72706c2a authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Don't hardwire quad weights to 'double'

parent 35e41595
No related branches found
No related tags found
No related merge requests found
......@@ -49,11 +49,11 @@ energy(const typename Basis::LocalView& localView,
// Local position of the quadrature point
const Dune::FieldVector<double,gridDim>& quadPos = quad[pt].position();
const double integrationElement = element.geometry().integrationElement(quadPos);
const auto integrationElement = element.geometry().integrationElement(quadPos);
const auto jacobianInverseTransposed = element.geometry().jacobianInverseTransposed(quadPos);
double weight = quad[pt].weight() * integrationElement;
auto weight = quad[pt].weight() * integrationElement;
// The derivative of the local function defined on the reference element
auto referenceDerivative = localInterpolationRule.evaluateDerivative(quadPos);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment