From 8837132f29eb6b8cbfcf382e4bb0ce4dc7c607ce Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 20 Aug 2023 00:11:39 +0200 Subject: [PATCH] Fix d0fc344bf ("Shorten the ngspice message when performing operating point evaluation. The average user often complained about useless 'info'. The old output is now available when 'set ngdebug' in .spiceinit.", 2023-08-19) Return with 0 if optran has been successful. --- src/spicelib/analysis/cktop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spicelib/analysis/cktop.c b/src/spicelib/analysis/cktop.c index f06c2176f..1db078981 100644 --- a/src/spicelib/analysis/cktop.c +++ b/src/spicelib/analysis/cktop.c @@ -99,6 +99,8 @@ CKTop (CKTcircuit *ckt, long int firstmode, long int continuemode, fprintf(cp_err, "Error: Transient op failed, timestep too small\n\n"); else if (converged != 0 && converged != prevconverged) fprintf(cp_err, "Error: Transient op failed, cause unrecorded\n\n"); + else if (converged == 0) + return converged; #ifdef XSPICE /* gtri - wbk - add convergence problem reporting flags */