From 89fcc20570410d1154ee1b9cbaf85c887760b062 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 18 Jun 2022 17:05:05 +0200 Subject: [PATCH] Make error message more verbose: State explicitely when transient op has failed. --- src/spicelib/analysis/cktop.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/spicelib/analysis/cktop.c b/src/spicelib/analysis/cktop.c index 51588ffec..07788f386 100644 --- a/src/spicelib/analysis/cktop.c +++ b/src/spicelib/analysis/cktop.c @@ -91,7 +91,12 @@ CKTop (CKTcircuit *ckt, long int firstmode, long int continuemode, /* If command 'optran' is not given, the function returns immediately with the previous 'converged' */ + int prevconverged = converged; converged = OPtran(ckt, converged); + if (converged == 106) + fprintf(cp_err, "Error: Transient op failed, timestep too small\n\n"); + else if (converged != prevconverged) + fprintf(cp_err, "Error: Transient op failed, cause unrecorded\n\n"); #ifdef XSPICE /* gtri - wbk - add convergence problem reporting flags */