inp2m.c, #4/7, rewrite

This commit is contained in:
rlar 2017-01-08 20:13:59 +01:00
parent 08b798c485
commit 6a275a6bd9
1 changed files with 4 additions and 5 deletions

View File

@ -193,13 +193,12 @@ INP2M (CKTcircuit *ckt, INPtables * tab, card * current)
err_msg = INPgetMod (ckt, model, &thismodel, tab);
if (!thismodel) {
INPgetModBin( ckt, model, &thismodel, tab, save );
if (!thismodel)
if (!thismodel) {
current->error = err_msg;
else
tfree(err_msg);
err_msg = NULL;
}
}
else
tfree(err_msg);
tfree(err_msg);
if (thismodel) {
if (thismodel->INPmodType != INPtypelook ("Mos1") &&