From 6079f3f6522c5b2e3a6db3d09280be1bb610ac13 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Fri, 18 Jul 2014 12:16:52 +0000 Subject: [PATCH] Terminate when the _global_ correction drops below the limit [[Imported from SVN: r9838]] --- dune/gfe/riemanniantrsolver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/gfe/riemanniantrsolver.cc b/dune/gfe/riemanniantrsolver.cc index a0806ccb..65347730 100644 --- a/dune/gfe/riemanniantrsolver.cc +++ b/dune/gfe/riemanniantrsolver.cc @@ -428,7 +428,7 @@ void RiemannianTrustRegionSolver<GridType,TargetSpace>::solve() if (this->verbosity_ == NumProc::FULL) std::cout << "Infinity norm of the correction: " << corr.infinity_norm() << std::endl; - if (corr.infinity_norm() < this->tolerance_) { + if (corr_global.infinity_norm() < this->tolerance_) { if (this->verbosity_ == NumProc::FULL and rank==0) std::cout << "CORRECTION IS SMALL ENOUGH" << std::endl; -- GitLab