New inductor model. Small changes.

This commit is contained in:
pnenzi 2003-09-27 17:26:38 +00:00
parent 192302a4e3
commit df2c3b8810
1 changed files with 12 additions and 1 deletions

View File

@ -4,7 +4,6 @@ Author: 1985 Thomas L. Quarles
**********/
#include "ngspice.h"
#include <stdio.h>
#include "iferrmsg.h"
#include "inpdefs.h"
#include "inp.h"
@ -466,6 +465,18 @@ char *INPdomodel(void *ckt, card * image, INPtables * tab)
}
INPmakeMod(modname, type, image);
}
/* -------- Check if model is an ind --------- */
else if (strcmp(typename, "l") == 0) {
type = INPtypelook("Inductor");
if (type < 0) {
err =
INPmkTemp
("Device type Inductor not available in this binary\n");
}
INPmakeMod(modname, type, image);
}
/* -------- Check if model is a switch --------- */
else if (strcmp(typename, "sw") == 0) {