mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-08-22 05:47:42 +02:00
ASRC (B-Source) error message is cryptic, as it does not tell
which B-Source failed. Add a hint to the ASRC error message on the name of the B-Source instance.
This commit is contained in:
@@ -69,8 +69,10 @@ ASRCload(GENmodel *inModel, CKTcircuit *ckt)
|
|||||||
for (i = 0; i < here->ASRCtree->numVars; i++)
|
for (i = 0; i < here->ASRCtree->numVars; i++)
|
||||||
asrc_vals[i] = ckt->CKTrhsOld[here->ASRCvars[i]];
|
asrc_vals[i] = ckt->CKTrhsOld[here->ASRCvars[i]];
|
||||||
|
|
||||||
if (here->ASRCtree->IFeval(here->ASRCtree, ckt->CKTgmin, &rhs, asrc_vals, asrc_derivs) != OK)
|
if (here->ASRCtree->IFeval(here->ASRCtree, ckt->CKTgmin, &rhs, asrc_vals, asrc_derivs) != OK) {
|
||||||
|
fprintf(stderr, " in line %s\n\n", here->gen.GENname);
|
||||||
return(E_BADPARM);
|
return(E_BADPARM);
|
||||||
|
}
|
||||||
|
|
||||||
/* The convergence test */
|
/* The convergence test */
|
||||||
here->ASRCprev_value = rhs;
|
here->ASRCprev_value = rhs;
|
||||||
|
|||||||
Reference in New Issue
Block a user