RE: [ng-spice-devel] convergence
I quickly checked some code in spice. This is from the end
of the BJT load file :-
/*
* check convergence
*/
if ( (!(ckt->CKTmode & MODEINITFIX))||(!(here->BJToff))) {
if (icheck == 1) {
ckt->CKTnoncon++;
ckt->CKTtroubleElt = (GENinstance *) here;
#ifndef NEWCONV
} else {
tol=ckt->CKTreltol*MAX(FABS(cchat),FABS(cc))+ckt->CKTabstol;
if (FABS(cchat-cc) > tol) {
ckt->CKTnoncon++;
ckt->CKTtroubleElt = (GENinstance *) here;
} else {
tol=ckt->CKTreltol*MAX(FABS(cbhat),FABS(cb))+
ckt->CKTabstol;
if (FABS(cbhat-cb) > tol) {
ckt->CKTnoncon++;
ckt->CKTtroubleElt = (GENinstance *) here;
}
}
#endif /* NEWCONV */
So it looks like the device currents will be checked as
long as NEWCONV is not defined. Does anybody know if we're
defining NEWCONV ?
Cheers,
Alan
Partial thread listing: