asrcask.c: allow current readout like @bcur[i], if in current mode
This commit is contained in:
parent
461026f2b9
commit
17185a601c
|
|
@ -56,7 +56,10 @@ ASRCask(CKTcircuit *ckt, GENinstance *instPtr, int which, IFvalue *value, IFvalu
|
|||
value->iValue = here->ASRCnegNode;
|
||||
return (OK);
|
||||
case ASRC_OUTPUTCURRENT:
|
||||
value->rValue = ckt->CKTrhsOld[here->ASRCbranch];
|
||||
if( here->ASRCtype == ASRC_VOLTAGE)
|
||||
value->rValue = ckt->CKTrhsOld[here->ASRCbranch];
|
||||
else
|
||||
value->rValue = here->ASRCprev_value;
|
||||
return (OK);
|
||||
case ASRC_OUTPUTVOLTAGE:
|
||||
value->rValue = ckt->CKTrhsOld[here->ASRCposNode] -
|
||||
|
|
|
|||
Loading…
Reference in New Issue