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

suspect rounding problems also the the model decrease is less than 1e-10

[[Imported from SVN: r1612]]
parent 3206457a
No related branches found
No related tags found
No related merge requests found
...@@ -370,8 +370,10 @@ void RodSolver<GridType>::solve() ...@@ -370,8 +370,10 @@ void RodSolver<GridType>::solve()
// exit(0); // exit(0);
} }
if (std::abs(oldEnergy-energy) < 1e-12) if (std::abs(oldEnergy-energy) < 1e-12 || modelDecrease < 1e-10) {
std::cout << "Suspecting rounding problems" << std::endl; std::cout << "Suspecting rounding problems" << std::endl;
break;
}
// ////////////////////////////////////////////// // //////////////////////////////////////////////
// Check for acceptance of the step // Check for acceptance of the step
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment