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 */