From 0143f7662e414bd7ce45116b2189db9117f3630f Mon Sep 17 00:00:00 2001 From: rlar Date: Tue, 25 Jul 2017 17:39:08 +0200 Subject: [PATCH] fix commit "introduce qd as an alias for diode charge..." inconsistent flags for the new "qd" alias. see "check_ifparm" command. --- src/include/ngspice/devdefs.h | 1 + src/spicelib/devices/dio/dio.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/include/ngspice/devdefs.h b/src/include/ngspice/devdefs.h index 0c7829ae9..be1724da1 100644 --- a/src/include/ngspice/devdefs.h +++ b/src/include/ngspice/devdefs.h @@ -174,6 +174,7 @@ extern int DEVmaxnum; /* size of DEVices array */ # define IPR(a,b,c,d) { a , b , c|IF_SET|IF_REDUNDANT , d } # define OP(a,b,c,d) { a , b , c|IF_ASK , d } # define OPU(a,b,c,d) { a , b , c|IF_ASK|IF_UNINTERESTING , d } +# define OPUR(a,b,c,d) { a , b , c|IF_ASK|IF_UNINTERESTING|IF_REDUNDANT , d } # define OPR(a,b,c,d) { a , b , c|IF_ASK|IF_REDUNDANT , d } # define P(a,b,c,d) { a , b , c , d } diff --git a/src/spicelib/devices/dio/dio.c b/src/spicelib/devices/dio/dio.c index 84caca376..af82ce9b6 100644 --- a/src/spicelib/devices/dio/dio.c +++ b/src/spicelib/devices/dio/dio.c @@ -27,7 +27,7 @@ IFparm DIOpTable[] = { /* parameters */ OP("gd", DIO_CONDUCT,IF_REAL, "Diode conductance"), OP("cd", DIO_CAP, IF_REAL, "Diode capacitance"), OPU("charge", DIO_CHARGE, IF_REAL, "Diode capacitor charge"), - OPR("qd", DIO_CHARGE, IF_REAL, "Diode capacitor charge"), + OPUR("qd", DIO_CHARGE, IF_REAL, "Diode capacitor charge"), OPU("capcur", DIO_CAPCUR, IF_REAL, "Diode capacitor current"), OPU("p", DIO_POWER, IF_REAL, "Diode power"), OPU("sens_dc",DIO_QUEST_SENS_DC, IF_REAL, "dc sensitivity "),