parser/inpgmod.c, #1/6, cleanup, search, break then process
This commit is contained in:
parent
6c71fef6f6
commit
edceabbb54
|
|
@ -89,7 +89,11 @@ create_model(CKTcircuit *ckt, INPmodel *modtmp, INPtables *tab)
|
||||||
for (j = 0; j < *(ft_sim->devices[modtmp->INPmodType]->numModelParms); j++) {
|
for (j = 0; j < *(ft_sim->devices[modtmp->INPmodType]->numModelParms); j++) {
|
||||||
|
|
||||||
if (strcmp(parm, ft_sim->devices[modtmp->INPmodType]->modelParms[j].keyword) == 0) {
|
if (strcmp(parm, ft_sim->devices[modtmp->INPmodType]->modelParms[j].keyword) == 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (j < *(ft_sim->devices[modtmp->INPmodType]->numModelParms)) {
|
||||||
val = INPgetValue(ckt, &line, ft_sim->devices[modtmp->INPmodType]->modelParms[j].dataType, tab);
|
val = INPgetValue(ckt, &line, ft_sim->devices[modtmp->INPmodType]->modelParms[j].dataType, tab);
|
||||||
|
|
||||||
error = ft_sim->setModelParm(ckt, modtmp->INPmodfast,
|
error = ft_sim->setModelParm(ckt, modtmp->INPmodfast,
|
||||||
|
|
@ -97,10 +101,7 @@ create_model(CKTcircuit *ckt, INPmodel *modtmp, INPtables *tab)
|
||||||
val, NULL);
|
val, NULL);
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (j >= *(ft_sim->devices[modtmp->INPmodType]->numModelParms) && strcmp(parm, "level") == 0) {
|
if (j >= *(ft_sim->devices[modtmp->INPmodType]->numModelParms) && strcmp(parm, "level") == 0) {
|
||||||
/* just grab the level number and throw away */
|
/* just grab the level number and throw away */
|
||||||
/* since we already have that info from pass1 */
|
/* since we already have that info from pass1 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue