diff --git a/dune/tectonic/spatial-solving/fixedpointiterator.cc b/dune/tectonic/spatial-solving/fixedpointiterator.cc index 5b5c4c294d5e33aea18b6367bdba82e4027cf230..586272ff24bccd260a8ce42d3ad437ceca263d4a 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; }