From d6de515873063cf1b2a686b1bef33cc6fbd3f350 Mon Sep 17 00:00:00 2001 From: Felix Schindler <felix.schindler@wwu.de> Date: Wed, 15 Aug 2018 10:30:44 +0200 Subject: [PATCH] [test.linear-transport...] add DG p0 case --- .../linear_transport__1d__explicit__dg_p0.cc | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 dune/gdt/test/linear-transport/linear_transport__1d__explicit__dg_p0.cc diff --git a/dune/gdt/test/linear-transport/linear_transport__1d__explicit__dg_p0.cc b/dune/gdt/test/linear-transport/linear_transport__1d__explicit__dg_p0.cc new file mode 100644 index 000000000..70b8fcf46 --- /dev/null +++ b/dune/gdt/test/linear-transport/linear_transport__1d__explicit__dg_p0.cc @@ -0,0 +1,50 @@ +// This file is part of the dune-gdt project: +// https://github.com/dune-community/dune-gdt +// Copyright 2010-2017 dune-gdt developers and contributors. All rights reserved. +// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) +// or GPL-2.0+ (http://opensource.org/licenses/gpl-license) +// with "runtime exception" (http://www.dune-project.org/license.html) +// Authors: +// Felix Schindler (2018) + +#define DUNE_XT_COMMON_TEST_MAIN_ENABLE_TIMED_LOGGING 1 +#define DUNE_XT_COMMON_TEST_MAIN_ENABLE_INFO_LOGGING 1 + +#include <dune/xt/common/test/main.hxx> // <- this one has to come first (includes the config.h)! + +#include <dune/xt/grid/grids.hh> + +#include <dune/gdt/test/instationary-eocstudies/hyperbolic-nonconforming.hh> + +#include "base.hh" + +using namespace Dune; +using namespace Dune::GDT::Test; + + +using LinearTransport1dExplicitDgP0Test = LinearTransportExplicitTest<YASP_1D_EQUIDISTANT_OFFSET>; +TEST_F(LinearTransport1dExplicitDgP0Test, periodic_boundaries__numerical_upwind_flux) +{ + // this->visualization_steps_ = 100; // <- something like this to visualize + this->space_type_ = "dg_p0"; + this->numerical_flux_type_ = "upwind"; + this->run(); +} +TEST_F(LinearTransport1dExplicitDgP0Test, periodic_boundaries__numerical_lax_riedrichs_flux) +{ + this->space_type_ = "fv"; + this->numerical_flux_type_ = "lax_friedrichs"; + this->run(); +} +TEST_F(LinearTransport1dExplicitDgP0Test, periodic_boundaries__numerical_engquist_osher_flux) +{ + this->space_type_ = "fv"; + this->numerical_flux_type_ = "engquist_osher"; + this->run(); +} +TEST_F(LinearTransport1dExplicitDgP0Test, periodic_boundaries__numerical_vijayasundaram_flux) +{ + this->space_type_ = "fv"; + this->numerical_flux_type_ = "vijayasundaram"; + this->run(); +} -- GitLab