From d2f9da64bc2e3df633e6e7693e3ebf0d56b66eaa Mon Sep 17 00:00:00 2001 From: dwarning Date: Mon, 24 Dec 2018 09:34:06 +0100 Subject: [PATCH] bring current summation inline with rhs --- src/spicelib/devices/vdmos/vdmosload.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/spicelib/devices/vdmos/vdmosload.c b/src/spicelib/devices/vdmos/vdmosload.c index 74c6cf7b4..11c2a9ed1 100644 --- a/src/spicelib/devices/vdmos/vdmosload.c +++ b/src/spicelib/devices/vdmos/vdmosload.c @@ -144,14 +144,14 @@ VDMOSload(GENmodel *inModel, CKTcircuit *ckt) if (here->VDMOSmode >= 0) { cdhat = - here->VDMOScd - - here->VDMOSgm * delvgs + - here->VDMOSgds * delvds; + here->VDMOScd + + here->VDMOSgm * delvgs + + here->VDMOSgds * delvds; } else { cdhat = - here->VDMOScd - - here->VDMOSgm * delvgd + - here->VDMOSgds * delvds; + here->VDMOScd + - here->VDMOSgm * delvgd + + here->VDMOSgds * delvds; } #ifndef NOBYPASS @@ -507,7 +507,7 @@ bypass : *(ckt->CKTrhs + here->VDMOSgNodePrime) -= (model->VDMOStype * (ceqgs + ceqgd)); *(ckt->CKTrhs + here->VDMOSdNodePrime) += - (- cdreq + model->VDMOStype * ceqgd); + (-cdreq + model->VDMOStype * ceqgd); *(ckt->CKTrhs + here->VDMOSsNodePrime) += cdreq + model->VDMOStype * ceqgs;