diff --git a/src/spicelib/devices/vdmos/vdmosdefs.h b/src/spicelib/devices/vdmos/vdmosdefs.h index c03494ba0..28e42b74b 100644 --- a/src/spicelib/devices/vdmos/vdmosdefs.h +++ b/src/spicelib/devices/vdmos/vdmosdefs.h @@ -171,10 +171,6 @@ typedef struct sVDMOSinstance { (source prime node,source prime node) */ double *VDMOSDdpPtr; /* pointer to sparse matrix element at (drain node,drain prime node) */ - double *VDMOSGdpPtr; /* pointer to sparse matrix element at - (gate node,drain prime node) */ - double *VDMOSGspPtr; /* pointer to sparse matrix element at - (gate node,source prime node) */ double *VDMOSSspPtr; /* pointer to sparse matrix element at (source node,source prime node) */ double *VDMOSDPspPtr; /* pointer to sparse matrix element at diff --git a/src/spicelib/devices/vdmos/vdmospzld.c b/src/spicelib/devices/vdmos/vdmospzld.c index 674ad4ae7..6c3742547 100644 --- a/src/spicelib/devices/vdmos/vdmospzld.c +++ b/src/spicelib/devices/vdmos/vdmospzld.c @@ -55,20 +55,21 @@ VDMOSpzLoad(GENmodel *inModel, CKTcircuit *ckt, SPcomplex *s) * load matrix */ - *(here->VDMOSGgPtr ) += (xgd+xgs)*s->real; - *(here->VDMOSGgPtr +1) += (xgd+xgs)*s->imag; + *(here->VDMOSGPgpPtr ) += (xgd+xgs)*s->real; + *(here->VDMOSGPgpPtr +1) += (xgd+xgs)*s->imag; *(here->VDMOSDPdpPtr ) += (xgd)*s->real; *(here->VDMOSDPdpPtr +1) += (xgd)*s->imag; *(here->VDMOSSPspPtr ) += (xgs)*s->real; *(here->VDMOSSPspPtr +1) += (xgs)*s->imag; - *(here->VDMOSGdpPtr ) -= xgd*s->real; - *(here->VDMOSGdpPtr +1) -= xgd*s->imag; - *(here->VDMOSGspPtr ) -= xgs*s->real; - *(here->VDMOSGspPtr +1) -= xgs*s->imag; - *(here->VDMOSDPgPtr ) -= xgd*s->real; - *(here->VDMOSDPgPtr +1) -= xgd*s->imag; - *(here->VDMOSSPgPtr ) -= xgs*s->real; - *(here->VDMOSSPgPtr +1) -= xgs*s->imag; + *(here->VDMOSGPdpPtr ) -= xgd*s->real; + *(here->VDMOSGPdpPtr +1) -= xgd*s->imag; + *(here->VDMOSGPspPtr ) -= xgs*s->real; + *(here->VDMOSGPspPtr +1) -= xgs*s->imag; + *(here->VDMOSDPgpPtr ) -= xgd*s->real; + *(here->VDMOSDPgpPtr +1) -= xgd*s->imag; + *(here->VDMOSSPgpPtr ) -= xgs*s->real; + *(here->VDMOSSPgpPtr +1) -= xgs*s->imag; + *(here->VDMOSDdPtr) += here->VDMOSdrainConductance; *(here->VDMOSSsPtr) += here->VDMOSsourceConductance; *(here->VDMOSDPdpPtr) += here->VDMOSdrainConductance+