cap current have to be divided by m

This commit is contained in:
dwarning 2015-04-02 11:00:23 +02:00 committed by rlar
parent a01a09ea58
commit de486ecf6e
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ CAPload(GENmodel *inModel, CKTcircuit *ckt)
/* mhx: to access I(Cx) */
if (here->CAPbrptr != NULL) {
*(ckt->CKTrhs + here->CAPbrEq) = *(ckt->CKTstate0 + here->CAPccap);
*(here->CAPbrptr) += 1.0;
*(here->CAPbrptr) += 1.0 / m;
}
} else
*(ckt->CKTstate0+here->CAPqcap) = here->CAPcapac * vcap;