devices/asrc, drop an unused slot in `ASRCacValues' which stored the rhs

This commit is contained in:
rlar 2015-05-24 19:15:57 +02:00
parent 39fdeb0c9a
commit 39cfa283c0
2 changed files with 1 additions and 5 deletions

View File

@ -99,10 +99,6 @@ ASRCload(GENmodel *inModel, CKTcircuit *ckt)
ckt->CKTrhs[here->ASRCposNode] -= factor * rhs;
ckt->CKTrhs[here->ASRCnegNode] += factor * rhs;
}
/* Store the rhs for small signal analysis */
if (ckt->CKTmode & MODEINITSMSIG)
here->ASRCacValues[here->ASRCtree->numVars] = factor * rhs;
}
}

View File

@ -63,7 +63,7 @@ ASRCsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
here->ASRCposptr = TMALLOC(double *, j);
here->ASRCvars = TMALLOC(int, here->ASRCtree->numVars);
here->ASRCacValues = TMALLOC(double, here->ASRCtree->numVars + 1);
here->ASRCacValues = TMALLOC(double, here->ASRCtree->numVars);
/* For each controlling variable set the entries
in the vector of the positions of the SMP */