Fixed the KCL implementation. Now it really works! :)
This commit is contained in:
parent
115aee5deb
commit
9aaa127643
|
|
@ -75,7 +75,12 @@ NIconvTest(CKTcircuit *ckt)
|
|||
node = node->next ;
|
||||
if (node->type == SP_VOLTAGE)
|
||||
{
|
||||
if (fabs (ckt->CKTfvk [i] + ckt->CKTdiagGmin * ckt->CKTrhs [i]) > maximum)
|
||||
|
||||
#ifdef STEPDEBUG
|
||||
fprintf (stderr, "Index: %d\tValue: %-.9g\tThreshold: %-.9g\n", i, fabs (ckt->CKTfvk [i]), ckt->CKTreltol * maximum + ckt->CKTabstol) ;
|
||||
#endif
|
||||
|
||||
if (fabs (ckt->CKTfvk [i]) > (ckt->CKTreltol * maximum + ckt->CKTabstol))
|
||||
return 1 ;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue