Make error message more verbose:
State explicitely when transient op has failed.
This commit is contained in:
parent
7be36292c1
commit
eb63459fe1
|
|
@ -91,7 +91,12 @@ CKTop (CKTcircuit *ckt, long int firstmode, long int continuemode,
|
||||||
|
|
||||||
/* If command 'optran' is not given, the function
|
/* If command 'optran' is not given, the function
|
||||||
returns immediately with the previous 'converged' */
|
returns immediately with the previous 'converged' */
|
||||||
|
int prevconverged = converged;
|
||||||
converged = OPtran(ckt, 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
|
#ifdef XSPICE
|
||||||
/* gtri - wbk - add convergence problem reporting flags */
|
/* gtri - wbk - add convergence problem reporting flags */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue