Merge branch 'pre-master-46' of ssh://git.code.sf.net/p/ngspice/ngspice into pre-master-46

This commit is contained in:
Holger Vogt 2026-03-26 16:15:40 +01:00
commit 96f4a85fc2
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ DIOask (CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value,
return(OK);
case DIO_CHARGE:
value->rValue = *(ckt->CKTstate0+here->DIOcapCharge);
if ((here->DIOqpNode > 0) && (here->DIOtTransitTime!=0))
value->rValue += here->DIOqpGain * *(ckt->CKTstate0 + here->DIOsrcapCharge);
return(OK);
case DIO_CAPCUR:
value->rValue = *(ckt->CKTstate0+here->DIOcapCurrent);