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:
Holger Vogt 2021-08-29 14:27:56 +02:00
parent 4667a74389
commit fac1d3a79c
1 changed files with 3 additions and 1 deletions

View File

@ -69,8 +69,10 @@ ASRCload(GENmodel *inModel, CKTcircuit *ckt)
for (i = 0; i < here->ASRCtree->numVars; 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);
}
/* The convergence test */
here->ASRCprev_value = rhs;