Skip to content
Snippets Groups Projects
Commit cefc765c authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Adjust quadrature rule

parent bd9b581f
No related branches found
No related tags found
No related merge requests found
...@@ -92,15 +92,14 @@ public: ...@@ -92,15 +92,14 @@ public:
for (const auto& e : elements(leafView)) { for (const auto& e : elements(leafView)) {
// get quadrature rule // TODO Get proper quadrature rule
QuadratureRuleKey feKey(this->basis_->getLocalFiniteElement(e)); //QuadratureRuleKey feKey(this->basis_->getLocalFiniteElement(e));
// the determinant involves derivative^dim // the determinant involves derivative^dim
// further use 2nd order to approximate the logarithm // further use 2nd order to approximate the logarithm
//feKey.setOrder(std::pow(feKey.derivative().order(),2*dim)); //feKey.setOrder(std::pow(feKey.derivative().order(),2*dim));
const int order = (e.type().isSimplex()) ? 5 : 4*dim;
const int order = (e.type().isSimplex()) ? 6 : 4*dim; const auto& quad = QuadratureRuleCache<typename GridType::ctype, dim>::rule(e.type(), order, 0);
const auto& quad = QuadratureRuleCache<ctype, dim>::rule(e.type(), order, 0);
//const auto& quad = QuadratureRuleCache<ctype, dim>::rule(feKey);
const auto& geometry = e.geometry(); const auto& geometry = e.geometry();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment