Skip to content
Snippets Groups Projects
Commit a7637d09 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

don't throw an exception if IPOpt fails

[[Imported from SVN: r2062]]
parent 07c9168f
No related branches found
No related tags found
No related merge requests found
...@@ -569,8 +569,10 @@ void computeAveragePressureIPOpt(const Dune::FieldVector<double,GridType::dimens ...@@ -569,8 +569,10 @@ void computeAveragePressureIPOpt(const Dune::FieldVector<double,GridType::dimens
status = app->OptimizeTNLP(defectSolverSmart); status = app->OptimizeTNLP(defectSolverSmart);
if (status != Ipopt::Solve_Succeeded if (status != Ipopt::Solve_Succeeded
&& status != Ipopt::Solved_To_Acceptable_Level) && status != Ipopt::Solved_To_Acceptable_Level) {
DUNE_THROW(SolverError, "Solving the defect problem failed!"); //DUNE_THROW(SolverError, "Solving the defect problem failed!");
std::cout << "IPOpt returned error code " << status << "!" << std::endl;
}
// ////////////////////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////////////////////
// Get result // Get result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment