for testing, explicitly destroy CKTrhs
which is expected not to be used when returning from NIiter()
This commit is contained in:
parent
c9428f0152
commit
689fa40d1a
|
|
@ -258,6 +258,10 @@ NIiter(CKTcircuit *ckt, int maxIter)
|
|||
* CKTrhs won't be used
|
||||
*/
|
||||
SWAP(double *, ckt->CKTrhs, ckt->CKTrhsOld);
|
||||
/* explicitly destroy CKTrhs for test purpose
|
||||
*/
|
||||
for (i = SMPmatSize(ckt->CKTmatrix); --i >= 0;)
|
||||
ckt->CKTrhs[i] = 0.0 / 0.0;
|
||||
return(OK);
|
||||
}
|
||||
} else if (ckt->CKTmode & MODEINITJCT) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue