for testing, explicitly destroy CKTrhs

which is expected not to be used when returning from NIiter()
This commit is contained in:
rlar 2018-01-30 18:28:19 +01:00
parent c9428f0152
commit 689fa40d1a
1 changed files with 4 additions and 0 deletions

View File

@ -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) {