diff --git a/test/porousmediumflow/1p/sequential/CMakeLists.txt b/test/porousmediumflow/1p/sequential/CMakeLists.txt index d053ba0f553f380cd4a4bb8d858104f9d28ab6e2..0a7c3e654c0259709cc1079941597eca43889a63 100644 --- a/test/porousmediumflow/1p/sequential/CMakeLists.txt +++ b/test/porousmediumflow/1p/sequential/CMakeLists.txt @@ -23,6 +23,7 @@ dumux_add_test(NAME test_diffusion3d LABELS porousmediumflow 1p sequential SOURCES test_diffusion3d.cc COMMAND ${CMAKE_SOURCE_DIR}/bin/testing/runtest.py + CMAKE_GUARD dune-alugrid_FOUND CMD_ARGS --script fuzzy --files ${CMAKE_SOURCE_DIR}/test/references/test_diffusion3d_fv-reference.vtu ${CMAKE_CURRENT_BINARY_DIR}/test_diffusion3d_fv-00000.vtu diff --git a/test/porousmediumflow/1p/sequential/test_diffusionproblem3d.hh b/test/porousmediumflow/1p/sequential/test_diffusionproblem3d.hh index 9e98b6c0e62a218babb00b3e46ead8ddd6b40acf..a51f44b133e4d48850b8fbcd8cbe0fa714c259b4 100644 --- a/test/porousmediumflow/1p/sequential/test_diffusionproblem3d.hh +++ b/test/porousmediumflow/1p/sequential/test_diffusionproblem3d.hh @@ -22,13 +22,7 @@ #ifndef DUMUX_TEST_DIFFUSION_3D_PROBLEM_HH #define DUMUX_TEST_DIFFUSION_3D_PROBLEM_HH -#if HAVE_DUNE_ALUGRID #include <dune/alugrid/grid.hh> -#endif -#if HAVE_UG -#include <dune/grid/uggrid.hh> -#endif -#include <dune/grid/yaspgrid.hh> #include <dumux/material/components/constant.hh> @@ -71,16 +65,8 @@ struct MimeticTest { using InheritsFrom = std::tuple<DiffusionTest, MimeticPress } // end namespace TTag // Set the grid type -#if HAVE_DUNE_ALUGRID template<class TypeTag> struct Grid<TypeTag, TTag::DiffusionTest> { using type = Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming>; }; -#elif HAVE_UG -template<class TypeTag> -struct Grid<TypeTag, TTag::DiffusionTest> { using type = Dune::UGGrid<3>; }; -#else -template<class TypeTag> -struct Grid<TypeTag, TTag::DiffusionTest> { using type = Dune::YaspGrid<3>; }; -#endif template<class TypeTag> struct Problem<TypeTag, TTag::DiffusionTest> { using type = TestDiffusion3DProblem<TypeTag>; };