diff --git a/test/operators_l2_local_projection_localizable_operator_dg_fem.cc b/test/operators_l2_local_projection_localizable_operator_dg_fem.cc new file mode 100644 index 0000000000000000000000000000000000000000..c7199e90db6cd2832e8d357d7d790a86a312efe8 --- /dev/null +++ b/test/operators_l2_local_projection_localizable_operator_dg_fem.cc @@ -0,0 +1,48 @@ +// This file is part of the dune-gdt project: +// http://users.dune-project.org/projects/dune-gdt +// Copyright holders: Felix Schindler +// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) + +#define DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING 1 + +#include <dune/stuff/test/main.hxx> + +#include <dune/gdt/tests/operators/projections/l2.hh> + +#include "spaces_dg_fem.hh" + +using namespace Dune::GDT::Tests; + +#if HAVE_DUNE_FEM + + +typedef testing::Types<SPACES_DG_FEM(1) +#if HAVE_ALUGRID + , + SPACES_DG_FEM_ALUGRID(1) +#endif // HAVE_ALUGRID + > SpaceTypes; + +TYPED_TEST_CASE(L2LocalProjectionLocalizableOperatorTest, SpaceTypes); +TYPED_TEST(L2LocalProjectionLocalizableOperatorTest, constructible_by_ctor) +{ + this->constructible_by_ctor(); +} +TYPED_TEST(L2LocalProjectionLocalizableOperatorTest, produces_correct_results) +{ + this->produces_correct_results(); +} + + +#else // HAVE_DUNE_FEM + + +TEST(DISABLED_L2LocalProjectionLocalizableOperatorTest, constructible_by_ctor) +{ +} +TEST(DISABLED_L2LocalProjectionLocalizableOperatorTest, produces_correct_results) +{ +} + + +#endif // HAVE_DUNE_FEM diff --git a/test/operators_l2_local_projection_localizable_operator_dg_pdelab.cc b/test/operators_l2_local_projection_localizable_operator_dg_pdelab.cc new file mode 100644 index 0000000000000000000000000000000000000000..1942a0e6dbec3d38fc0195b7cced7d4337f6dda5 --- /dev/null +++ b/test/operators_l2_local_projection_localizable_operator_dg_pdelab.cc @@ -0,0 +1,46 @@ +// This file is part of the dune-gdt project: +// http://users.dune-project.org/projects/dune-gdt +// Copyright holders: Felix Schindler +// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) + +#include <dune/stuff/test/main.hxx> + +#include <dune/gdt/tests/operators/projections/l2.hh> + +#include "spaces_dg_pdelab.hh" + +using namespace Dune::GDT::Tests; + +#if HAVE_DUNE_PDELAB + + +typedef testing::Types<SPACES_DG_PDELAB(1) +#if HAVE_ALUGRID + , + SPACES_DG_PDELAB_ALUGRID(1) +#endif // HAVE_ALUGRID + > SpaceTypes; + +TYPED_TEST_CASE(L2LocalProjectionLocalizableOperatorTest, SpaceTypes); +TYPED_TEST(L2LocalProjectionLocalizableOperatorTest, constructible_by_ctor) +{ + this->constructible_by_ctor(); +} +TYPED_TEST(L2LocalProjectionLocalizableOperatorTest, produces_correct_results) +{ + this->produces_correct_results(); +} + + +#else // HAVE_DUNE_PDELAB + + +TEST(DISABLED_L2LocalProjectionLocalizableOperatorTest, constructible_by_ctor) +{ +} +TEST(DISABLED_L2LocalProjectionLocalizableOperatorTest, produces_correct_results) +{ +} + + +#endif // HAVE_DUNE_PDELAB diff --git a/test/operators_l2_local_projection_localizable_operator_fv_default.cc b/test/operators_l2_local_projection_localizable_operator_fv_default.cc new file mode 100644 index 0000000000000000000000000000000000000000..4d7250145c9cb3eb43df8792e907d9a05ab6f256 --- /dev/null +++ b/test/operators_l2_local_projection_localizable_operator_fv_default.cc @@ -0,0 +1,34 @@ +// This file is part of the dune-gdt project: +// http://users.dune-project.org/projects/dune-gdt +// Copyright holders: Felix Schindler +// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) + +#define DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING 1 + +#include <dune/stuff/test/main.hxx> + +#include <dune/gdt/tests/operators/projections/l2.hh> + +#include "spaces_fv_default.hh" + +using namespace Dune::GDT::Tests; + + +typedef testing::Types<SPACE_FV_SGRID(1, 1), SPACE_FV_SGRID(2, 1), SPACE_FV_SGRID(3, 1), SPACE_FV_YASPGRID(1, 1), + SPACE_FV_YASPGRID(2, 1), SPACE_FV_YASPGRID(3, 1) +#if HAVE_ALUGRID + , + SPACE_FV_ALUCONFORMGRID(2, 1), SPACE_FV_ALUCONFORMGRID(3, 1), SPACE_FV_ALUCUBEGRID(2, 1), + SPACE_FV_ALUCUBEGRID(3, 1) +#endif // HAVE_ALUGRID + > SpaceTypes; + +TYPED_TEST_CASE(L2LocalProjectionLocalizableOperatorTest, SpaceTypes); +TYPED_TEST(L2LocalProjectionLocalizableOperatorTest, constructible_by_ctor) +{ + this->constructible_by_ctor(); +} +TYPED_TEST(L2LocalProjectionLocalizableOperatorTest, produces_correct_results) +{ + this->produces_correct_results(0.096226); +} diff --git a/test/operators_l2_local_projection_localizable_operator_rt_pdelab.cc b/test/operators_l2_local_projection_localizable_operator_rt_pdelab.cc new file mode 100644 index 0000000000000000000000000000000000000000..50cb5d74a162499a383390a2d6002240ac89fd0a --- /dev/null +++ b/test/operators_l2_local_projection_localizable_operator_rt_pdelab.cc @@ -0,0 +1,48 @@ +// This file is part of the dune-gdt project: +// http://users.dune-project.org/projects/dune-gdt +// Copyright holders: Felix Schindler +// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) + +#define DUNE_STUFF_TEST_MAIN_ENABLE_TIMED_LOGGING 1 + +#include <dune/stuff/test/main.hxx> + +#include <dune/gdt/tests/operators/projections/l2.hh> + +#include "spaces_rt_pdelab.hh" + +using namespace Dune::GDT::Tests; + +#if HAVE_DUNE_PDELAB + + +typedef testing::Types<SPACES_RT_PDELAB +#if HAVE_ALUGRID + , + SPACES_RT_PDELAB_ALUGRID +#endif + > SpaceTypes; + +TYPED_TEST_CASE(L2LocalProjectionLocalizableOperatorTest, SpaceTypes); +TYPED_TEST(L2LocalProjectionLocalizableOperatorTest, constructible_by_ctor) +{ + this->constructible_by_ctor(); +} +TYPED_TEST(L2LocalProjectionLocalizableOperatorTest, produces_correct_results) +{ + this->produces_correct_results(0.0925927); +} + + +#else // HAVE_DUNE_PDELAB + + +TEST(DISABLED_L2LocalProjectionLocalizableOperatorTest, constructible_by_ctor) +{ +} +TEST(DISABLED_L2LocalProjectionLocalizableOperatorTest, produces_correct_results) +{ +} + + +#endif // HAVE_DUNE_PDELAB