diff --git a/src/include/ngspice/iferrmsg.h b/src/include/ngspice/iferrmsg.h index 1d5a53adb..5ee6c12ed 100644 --- a/src/include/ngspice/iferrmsg.h +++ b/src/include/ngspice/iferrmsg.h @@ -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 */ diff --git a/src/spicelib/analysis/dcpss.c b/src/spicelib/analysis/dcpss.c index 9237e3f91..4a60f9d14 100644 --- a/src/spicelib/analysis/dcpss.c +++ b/src/spicelib/analysis/dcpss.c @@ -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) { diff --git a/src/spicelib/parser/sperror.c b/src/spicelib/parser/sperror.c index d669260d6..c5a7941d3 100644 --- a/src/spicelib/parser/sperror.c +++ b/src/spicelib/parser/sperror.c @@ -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: