Fixed the KCL implementation. Now it really works! :)

This commit is contained in:
Francesco Lannutti 2013-05-21 23:29:35 +02:00
parent 115aee5deb
commit 9aaa127643
1 changed files with 6 additions and 1 deletions

View File

@ -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 ;
}
}