From 09590047fe0f75b9157dba972897e4c9ee1275fa Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 18 May 2018 15:55:04 +0200 Subject: [PATCH] Check if model is a PSPICE resistor 'res' --- src/spicelib/parser/inpdomod.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/spicelib/parser/inpdomod.c b/src/spicelib/parser/inpdomod.c index 0f0d375f3..5c7815809 100644 --- a/src/spicelib/parser/inpdomod.c +++ b/src/spicelib/parser/inpdomod.c @@ -461,6 +461,17 @@ char *INPdomodel(CKTcircuit *ckt, struct card *image, INPtables * tab) INPmakeMod(modname, type, image); } + /* -------- Check if model is a PSPICE resistor --------- */ + else if (strcmp(type_name, "res") == 0) { + type = INPtypelook("Resistor"); + if (type < 0) { + err = + INPmkTemp + ("Device type Resistor not available in this binary\n"); + } + INPmakeMod(modname, type, image); + } + /* -------- Check if model is a transmission line of some sort --------- */ else if(strcmp(type_name,"txl") == 0) { INPgetTok(&line,&val,1);