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