devices/res/resask.c, bug fix, set and query of RESresist and RESacResist shall comute
Note:
RESresist and RESacResist are device parameters
they do not reflect effective resistance when "ask"'ed
(don't reflect tc1, tc2, tce, m, scale, temp ...)
RESconduct and RESacConduct are "query-only" parameters
these report the effective conductance when "ask"'ed
(including tc1, tc2, tce, m, scale, temp ...)
This commit is contained in:
parent
1c5e954b47
commit
0af576a7d8
|
|
@ -42,7 +42,6 @@ RESask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value,
|
|||
return(OK);
|
||||
case RES_RESIST:
|
||||
value->rValue = fast->RESresist;
|
||||
value->rValue /= fast->RESm;
|
||||
return(OK);
|
||||
case RES_ACCONDUCT:
|
||||
value->rValue = fast->RESacConduct;
|
||||
|
|
@ -50,7 +49,6 @@ RESask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value,
|
|||
return (OK);
|
||||
case RES_ACRESIST:
|
||||
value->rValue = fast->RESacResist;
|
||||
value->rValue /= fast->RESm;
|
||||
return(OK);
|
||||
case RES_LENGTH:
|
||||
value->rValue = fast->RESlength;
|
||||
|
|
|
|||
Loading…
Reference in New Issue