From 3041936663bf62a04077b5a6b698129abb369c25 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 24 Jul 2016 10:59:12 +0200 Subject: [PATCH] cktop.c, #9/14, shortcut --- src/spicelib/analysis/cktop.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/spicelib/analysis/cktop.c b/src/spicelib/analysis/cktop.c index 26f5c354f..84318b760 100644 --- a/src/spicelib/analysis/cktop.c +++ b/src/spicelib/analysis/cktop.c @@ -41,14 +41,13 @@ CKTop (CKTcircuit * ckt, long int firstmode, long int continuemode, /* gtri - end - wbk - add convergence problem reporting flags */ #endif converged = NIiter (ckt, iterlim); + if (converged == 0) + return converged; /* successfull */ } else { converged = 1; /* the 'go directly to gmin stepping' option */ } - if (converged == 0) - return converged; - /* no convergence on the first try, so we do something else */ /* first, check if we should try gmin stepping */