Skip to content
Snippets Groups Projects
Commit 3dafcc20 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[test-quadrature][fs1541] Don't test quadrature rules we don't implement.

This worked previously, because we were testing GaussLegendre quadrature rules
first seeding the cache.  Second we were testing GaussLobatto quadrature rules
-- or so we thought: due to FS#1541, the cache would yield the previous
GaussLegendre quadrature rules, even though we requested GaussLobatto.  With
that fixed, the test would try to instantiate GaussLobatte quadrature rules of
up to order 45, even though they are only implemented up to order 31.
parent 164d2e4a
No related branches found
No related tags found
No related merge requests found
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#include <algorithm>
#include <limits>
#include <iostream>
......@@ -219,7 +221,8 @@ int main (int argc, char** argv)
}
try {
check<double,4>(Dune::GeometryType::cube, maxOrder);
check<double,4>(Dune::GeometryType::cube, maxOrder,Dune::QuadratureType::GaussLobatto);
check<double,4>(Dune::GeometryType::cube, std::min(maxOrder, unsigned(31)),
Dune::QuadratureType::GaussLobatto);
check<double,4>(Dune::GeometryType::simplex, maxOrder);
check<double,3>(Dune::GeometryType::prism, maxOrder);
check<double,3>(Dune::GeometryType::pyramid, maxOrder);
......
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