From a446d1e145cc542acf0a14dba794d288dc35dc0b Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 24 Jul 2016 10:19:35 +0200 Subject: [PATCH] cktop.c, #8/14, early leave --- src/spicelib/analysis/cktop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spicelib/analysis/cktop.c b/src/spicelib/analysis/cktop.c index 52c02b92e..26f5c354f 100644 --- a/src/spicelib/analysis/cktop.c +++ b/src/spicelib/analysis/cktop.c @@ -57,9 +57,9 @@ CKTop (CKTcircuit * ckt, long int firstmode, long int continuemode, converged = dynamic_gmin(ckt, firstmode, continuemode, iterlim); else converged = spice3_gmin(ckt, firstmode, continuemode, iterlim); + if (converged == 0) /* If gmin-stepping worked... move out */ + return (0); } - if (converged == 0) /* If gmin-stepping worked... move out */ - return (0); /* ... otherwise try stepping sources ... * now, we'll try source stepping - we scale the sources