From df2c3b8810d396c46cbc2d10c3b21ff3ffd4b346 Mon Sep 17 00:00:00 2001 From: pnenzi Date: Sat, 27 Sep 2003 17:26:38 +0000 Subject: [PATCH] New inductor model. Small changes. --- src/spicelib/parser/inpdomod.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/spicelib/parser/inpdomod.c b/src/spicelib/parser/inpdomod.c index c80812549..14a28ea38 100644 --- a/src/spicelib/parser/inpdomod.c +++ b/src/spicelib/parser/inpdomod.c @@ -4,7 +4,6 @@ Author: 1985 Thomas L. Quarles **********/ #include "ngspice.h" -#include #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) {