Browse Source

New inductor model. Small changes.

pre-master-46
pnenzi 23 years ago
parent
commit
df2c3b8810
  1. 13
      src/spicelib/parser/inpdomod.c

13
src/spicelib/parser/inpdomod.c

@ -4,7 +4,6 @@ Author: 1985 Thomas L. Quarles
**********/ **********/
#include "ngspice.h" #include "ngspice.h"
#include <stdio.h>
#include "iferrmsg.h" #include "iferrmsg.h"
#include "inpdefs.h" #include "inpdefs.h"
#include "inp.h" #include "inp.h"
@ -466,6 +465,18 @@ char *INPdomodel(void *ckt, card * image, INPtables * tab)
} }
INPmakeMod(modname, type, image); 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 --------- */ /* -------- Check if model is a switch --------- */
else if (strcmp(typename, "sw") == 0) { else if (strcmp(typename, "sw") == 0) {

Loading…
Cancel
Save