Skip to content

Commit 7c7f467

Browse files
committed
Allow nodal pyramid quadrature in unit test
The quadrature unit tests are integrating on the reference element, so the element map is not relevant and we can safely use nodal pyramid quadrature rules. Refs #3414
1 parent 060b397 commit 7c7f467

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/quadrature/quadrature_test.C

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ private:
177177
std::unique_ptr<QBase> qrule =
178178
QBase::build(qtype, dim, static_cast<Order>(order));
179179

180+
// We are testing integration on the reference elements here, so
181+
// the element map is not relevant, and we can safely use nodal
182+
// Pyramid quadrature.
183+
if (elem_type == PYRAMID5 || elem_type == PYRAMID13 || elem_type == PYRAMID14 || elem_type == PYRAMID18)
184+
qrule->allow_nodal_pyramid_quadrature = true;
185+
180186
qrule->init (elem_type);
181187

182188
const int max_y_order = dim>1 ? 0 : exactorder;

0 commit comments

Comments
 (0)