From f70f7761db132f40807d77a1e7e094a60b62453c Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Wed, 27 Nov 2019 09:52:09 +0100 Subject: [PATCH] Nonlinear solver: tolerance for first Newton iteration is now smaller than for subsequent ones. Closes: #1668 --- matlab/solve1.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/solve1.m b/matlab/solve1.m index ba3c263b9..fa2f18805 100644 --- a/matlab/solve1.m +++ b/matlab/solve1.m @@ -64,7 +64,7 @@ end f = 0.5*(fvec'*fvec) ; -if max(abs(fvec)) < tolf +if max(abs(fvec)) < tolf*tolf return ; end