Browse Source

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 ...)
pre-master-46
rlar 9 years ago
parent
commit
0af576a7d8
  1. 2
      src/spicelib/devices/res/resask.c

2
src/spicelib/devices/res/resask.c

@ -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…
Cancel
Save