Skip to content
Snippets Groups Projects
Commit 40e9a245 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

use the proper quadrature order even for higher-order elements

[[Imported from SVN: r8242]]
parent 1fa70fea
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,10 @@ energy(const Entity& element,
LocalGeodesicFEFunction<gridDim, double, LocalFiniteElement, TargetSpace> localGeodesicFEFunction(localFiniteElement,
localSolution);
int quadOrder = 1;//gridDim;
int quadOrder = (element.type().isSimplex()) ? (localFiniteElement.localBasis().order()-1) * 2
: (localFiniteElement.localBasis().order()-1) * 2 * gridDim;
const Dune::QuadratureRule<double, gridDim>& quad
= Dune::QuadratureRules<double, gridDim>::rule(element.type(), quadOrder);
......@@ -114,7 +117,8 @@ assembleEmbeddedGradient(const Entity& element,
localSolution);
// I am not sure about the correct quadrature order
int quadOrder = 1;//gridDim;
int quadOrder = (element.type().isSimplex()) ? (localFiniteElement.localBasis().order()-1) * 2
: (localFiniteElement.localBasis().order()-1) * 2 * gridDim;
// numerical quadrature loop
const Dune::QuadratureRule<double, gridDim>& quad
......
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