Make error message more verbose:

State explicitely when transient op has failed.
This commit is contained in:
Holger Vogt 2022-06-18 17:05:05 +02:00
parent f78adce641
commit 89fcc20570
1 changed files with 5 additions and 0 deletions

View File

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