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

a more intelligent way to choose the quadrature order

[[Imported from SVN: r7923]]
parent 29de23d8
No related branches found
No related tags found
No related merge requests found
...@@ -207,7 +207,8 @@ energy(const Entity& element, ...@@ -207,7 +207,8 @@ energy(const Entity& element,
LocalGeodesicFEFunction<gridDim, double, LocalFiniteElement, TargetSpace> localGeodesicFEFunction(localFiniteElement, LocalGeodesicFEFunction<gridDim, double, LocalFiniteElement, TargetSpace> localGeodesicFEFunction(localFiniteElement,
localSolution); localSolution);
int quadOrder = 1;//gridDim; int quadOrder = (element.type().isSimplex()) ? localFiniteElement.localBasis().order()
: localFiniteElement.localBasis().order() * gridDim;
const Dune::QuadratureRule<double, gridDim>& quad const Dune::QuadratureRule<double, gridDim>& quad
= Dune::QuadratureRules<double, gridDim>::rule(element.type(), quadOrder); = Dune::QuadratureRules<double, gridDim>::rule(element.type(), quadOrder);
......
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