Improve PSS error messages

This commit is contained in:
Holger Vogt 2026-04-11 14:49:32 +02:00
parent 8351188e60
commit a2a22c0cee
3 changed files with 6 additions and 2 deletions

View File

@ -36,6 +36,7 @@ Author: 1986 Thomas L. Quarles
#define E_BAD_DOMAIN 15 /* output interface begin/end domain calls mismatched */
#define E_EXISTS_BAD 16 /* error - attempt to create duplicate */
/* instance or model. Bail out. */
#define E_ERR_PSS 17 /* error - during PSS. Bail out. */
#define E_PRIVATE 100 /* messages above this number are private to */
/* the simulator and MUST be accompanied by */

View File

@ -718,7 +718,7 @@ DCpss(CKTcircuit *ckt,
if (dynamic_test == 0)
{
/* Test for dynamic existence */
fprintf (stderr, "No detectable dynamic on voltages nodes or currents branches. PSS analysis aborted\n") ;
fprintf (stderr, "Error: No detectable dynamic on voltages nodes or currents branches.\n PSS analysis aborted\n") ;
/* Terminates plot in Time Domain and frees the allocated memory */
SPfrontEnd->OUTendPlot (job->PSSplot_td) ;
@ -729,7 +729,7 @@ DCpss(CKTcircuit *ckt,
FREE (err_conv) ;
FREE (psstimes) ;
FREE (pssvalues) ;
return (E_PANIC) ; /* to be corrected with definition of new error macro in iferrmsg.h */
return (E_ERR_PSS) ; /* error macro in iferrmsg.h */
}
else if ((time_err_min_0 - time_temp) < 0)
{

View File

@ -107,6 +107,9 @@ const char *SPerror(int type)
case E_NOF2SRC:
msg = "no F2 source for IM disto analysis";
break;
case E_ERR_PSS:
msg = "pss failed";
break;
case OK:
return (NULL);
default: