asrcask.c: allow current readout like @bcur[i], if in current mode

This commit is contained in:
h_vogt 2014-02-07 22:40:26 +01:00
parent 461026f2b9
commit 17185a601c
1 changed files with 4 additions and 1 deletions

View File

@ -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] -