Commit d66f614c authored by Timo Koch's avatar Timo Koch
Browse files

[test][sequential] Throw exception if pressure solver doesn't converge

parent b3b8ceb0
......@@ -22,6 +22,7 @@
// dumux environment
#include <type_traits>
#include <dumux/common/math.hh>
#include <dumux/common/exceptions.hh>
#include <dumux/porousmediumflow/sequential/pressureproperties.hh>
#include <map>
/**
......@@ -547,7 +548,10 @@ void FVPressure<TypeTag>::solve()
// printvector(std::cout, f_, "right hand side", "row", 10, 1, 3);
auto solver = getSolver<Solver>(problem_);
solver.solve(A_, pressure_, f_);
bool converged = solver.solve(A_, pressure_, f_);
if (!converged)
DUNE_THROW(Dumux::NumericalProblem, "Pressure solver did not converge!");
// printvector(std::cout, pressure_, "pressure", "row", 200, 1, 3);
}
......
Supports Markdown
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