Browse Source

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.
pre-master-46
Holger Vogt 5 years ago
parent
commit
fac1d3a79c
  1. 4
      src/spicelib/devices/asrc/asrcload.c

4
src/spicelib/devices/asrc/asrcload.c

@ -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;

Loading…
Cancel
Save