Browse Source

devices/vbic/vbicsetup.c, bug fix, incorrect states allocation

VBICnumSenStates is 10 not 8
pre-master-46
rlar 8 years ago
parent
commit
d3f13edd4a
  1. 2
      src/spicelib/devices/vbic/vbicsetup.c

2
src/spicelib/devices/vbic/vbicsetup.c

@ -398,7 +398,7 @@ VBICsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
here->VBICstate = *states; here->VBICstate = *states;
*states += VBICnumStates; *states += VBICnumStates;
if(ckt->CKTsenInfo && (ckt->CKTsenInfo->SENmode & TRANSEN) ){ if(ckt->CKTsenInfo && (ckt->CKTsenInfo->SENmode & TRANSEN) ){
*states += 8 * (ckt->CKTsenInfo->SENparms);
*states += 10 * (ckt->CKTsenInfo->SENparms);
} }
if(model->VBICextCollResist == 0) { if(model->VBICextCollResist == 0) {

Loading…
Cancel
Save