Commit f97ce243 authored by Simon Lüdke's avatar Simon Lüdke

added tests for different BC types

parent dbd1623b
......@@ -81,7 +81,15 @@ TEST_F(SourceTest, BoundaryTest){
TEST_F(SourceTest, BoundaryTypeTest){
EXPECT_EQ(sourceclass->get_plant(3)->determine_bc_type(),Dune::Dorie::Operator::BCType::none);
EXPECT_EQ(sourceclass->get_plant(1)->get_bc_type(),"transpiration_per_surface_area");
EXPECT_EQ(sourceclass->get_plant(2)->get_bc_type(),"transpiration_per_surface_area");
EXPECT_EQ(sourceclass->get_plant(3)->get_bc_type(),"transpiration_per_surface_area");
sourceclass->set_time(40000);
EXPECT_EQ(sourceclass->get_plant(1)->get_bc_type(),"total_flux");
EXPECT_EQ(sourceclass->get_plant(2)->get_bc_type(),"transpiration_per_surface_area");
EXPECT_EQ(sourceclass->get_plant(3)->get_bc_type(),"transpiration_per_leaf_area");
}
// main function
int main(int argc_t, char **argv_t)
......
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