From 438247060ed03c6157ba57237147e2df5434ba9b Mon Sep 17 00:00:00 2001 From: podlesny <podlesny@zedat.fu-berlin.de> Date: Sat, 6 Mar 2021 13:30:48 +0100 Subject: [PATCH] debugging break after 200 iterations --- dune/tectonic/spatial-solving/fixedpointiterator.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dune/tectonic/spatial-solving/fixedpointiterator.cc b/dune/tectonic/spatial-solving/fixedpointiterator.cc index 5b5c4c29..586272ff 100644 --- a/dune/tectonic/spatial-solving/fixedpointiterator.cc +++ b/dune/tectonic/spatial-solving/fixedpointiterator.cc @@ -155,6 +155,13 @@ FixedPointIterator<Factory, NBodyAssembler, Updaters, ErrorNorms>::run( fixedPointIteration++; break; } + + if (res.iterations>200) { + std::cout << "FixedPointIterator: TNNMG did not converge, iterations: " << res.iterations << std::endl; + //DUNE_THROW(Dune::Exception, "FixedPointIterator: TNNMG did not converge"); + break; + } + alpha = newAlpha; } -- GitLab