Browse Source

workaround for bug #511 to prevent copy model parameter M to device multiplier

pre-master-46
dwarning 6 years ago
committed by Holger Vogt
parent
commit
d00fbd0c51
  1. 5
      src/spicelib/parser/inpgmod.c

5
src/spicelib/parser/inpgmod.c

@ -121,8 +121,9 @@ create_model(CKTcircuit *ckt, INPmodel *modtmp, INPtables *tab)
error = ft_sim->setModelParm(ckt, modtmp->INPmodfast, p->id, val, NULL);
if (error)
return error;
} else if (strcmp(parm, "level") == 0) {
/* just grab the level number and throw away */
} else if ((strcmp(parm, "level") == 0) || (strcmp(parm, "m") == 0)) {
/* no instance parameter default for level and multiplier */
/* just grab the number and throw away */
/* since we already have that info from pass1 */
INPgetValue(ckt, &line, IF_REAL, tab);
} else {

Loading…
Cancel
Save