Skip to content
Snippets Groups Projects
Commit 44ad59d5 authored by Elias Pipping's avatar Elias Pipping
Browse files

Tests: Cover multiple components

parent 237403a7
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -23,12 +23,13 @@
* is solved correctly for a random rhs by a LoopSolver employing
* a GSStep.
*/
template <size_t blocksize>
struct GSTestSuite {
template <class GridType>
bool check(const GridType& grid) {
bool passed = true;
using Problem = SymmetricSampleProblem<1, typename GridType::LevelGridView>;
using Problem = SymmetricSampleProblem<blocksize, typename GridType::LevelGridView>;
Problem p(grid.levelGridView(grid.maxLevel()));
const auto verbosity = Solver::QUIET;
......@@ -169,8 +170,13 @@ int main(int argc, char** argv) {
Dune::MPIHelper::instance(argc, argv);
bool passed(true);
GSTestSuite testsuite;
passed = checkWithStandardGrids(testsuite);
GSTestSuite<1> testsuite1;
passed = passed and checkWithStandardGrids(testsuite1);
std::cout << std::endl;
GSTestSuite<2> testsuite2;
passed = passed and checkWithStandardGrids(testsuite2);
return passed ? 0 : 1;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment