Commit 6bcbacc4 authored by Lukas Riedel's avatar Lukas Riedel 🎧
Browse files

Fix bug in boundary condition unit test

Parameter `horizontal_projection` of Neumann BC has been made exclusive
to Richards model. This must be reflected in the unit test.
parent 61bc1e38
......@@ -49,7 +49,8 @@ void test_default_bc (const std::shared_ptr<BC> bc,
/// Test the Neumann boundary condition, after specs of the YAML input file
void test_neumann_bc (const std::shared_ptr<BC> bc,
const typename Traits::RF time)
const typename Traits::RF time,
const bool transport_mode)
using namespace Dune::FloatCmp;
assert(eq(bc->evaluate(0.0), 1.0));
......@@ -59,7 +60,7 @@ void test_neumann_bc (const std::shared_ptr<BC> bc,
using namespace Dune::Dorie;
const auto& bc_neumann = dynamic_cast<
const NeumannBoundaryCondition<double>&>(*bc);
assert(bc_neumann.horizontal_projection() ^ transport_mode);
/// Test the Dirichlet boundary condition, after specs of the YAML input file
......@@ -130,7 +131,7 @@ void test_boundary_condition (const std::shared_ptr<BC> bc,
test_dirichlet_bc(bc, time, transport_mode);
else if (type == Operator::BCType::Neumann) {
test_neumann_bc(bc, time);
test_neumann_bc(bc, time, transport_mode);
else if (type == Operator::BCType::Outflow) {
test_outflow_bc(bc, time);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment