Revert "If stricterrorhandling is set, ngspice detects the dangling"
This reverts commit 02c6478399.
This commit is contained in:
parent
fa8b6756bb
commit
47c77e421d
|
|
@ -134,13 +134,7 @@ CKTtopologyReduce(CKTcircuit *ckt)
|
||||||
else if (nn > 0)
|
else if (nn > 0)
|
||||||
degree[nn]--;
|
degree[nn]--;
|
||||||
removed_this_pass++;
|
removed_this_pass++;
|
||||||
if (ft_stricterror) {
|
if (reported++ < 40)
|
||||||
fprintf(stderr,
|
|
||||||
"Dangling capacitor %s "
|
|
||||||
"(floating node %s) found in netlist.\n", ci->CAPname,
|
|
||||||
(char*)CKTnodName(ckt, (mode & 2) ? nn : pn));
|
|
||||||
}
|
|
||||||
else if (reported++ < 40)
|
|
||||||
fprintf(stdout,
|
fprintf(stdout,
|
||||||
"Topology reduction: removed dangling capacitor %s "
|
"Topology reduction: removed dangling capacitor %s "
|
||||||
"(floating node %s)\n", ci->CAPname,
|
"(floating node %s)\n", ci->CAPname,
|
||||||
|
|
@ -171,17 +165,11 @@ CKTtopologyReduce(CKTcircuit *ckt)
|
||||||
else if (nn > 0)
|
else if (nn > 0)
|
||||||
degree[nn]--;
|
degree[nn]--;
|
||||||
removed_this_pass++;
|
removed_this_pass++;
|
||||||
if (ft_stricterror) {
|
if (reported++ < 40)
|
||||||
fprintf(stderr,
|
|
||||||
"Dangling resistor %s "
|
|
||||||
"(floating node %s) found in netlist.\n", ri->RESname,
|
|
||||||
(char*)CKTnodName(ckt, (mode & 2) ? nn : pn));
|
|
||||||
}
|
|
||||||
else if (reported++ < 40)
|
|
||||||
fprintf(stdout,
|
fprintf(stdout,
|
||||||
"Topology reduction: removed dangling resistor %s "
|
"Topology reduction: removed dangling resistor %s "
|
||||||
"(floating node %s)\n", ri->RESname,
|
"(floating node %s)\n", ri->RESname,
|
||||||
(char*)CKTnodName(ckt, (mode & 2) ? nn : pn));
|
(char *)CKTnodName(ckt, (mode & 2) ? nn : pn));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -190,17 +178,9 @@ CKTtopologyReduce(CKTcircuit *ckt)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (removed_total) {
|
if (removed_total)
|
||||||
if (ft_stricterror) {
|
|
||||||
fprintf(stderr, "\nError: %d dangling passive(s) found.\n "
|
|
||||||
" Please correct the netlist.\n", removed_total);
|
|
||||||
FREE(degree);
|
|
||||||
controlled_exit(EXIT_BAD);
|
|
||||||
}
|
|
||||||
|
|
||||||
fprintf(stdout, "Topology reduction: %d dangling passive(s) removed "
|
fprintf(stdout, "Topology reduction: %d dangling passive(s) removed "
|
||||||
"from the matrix.\n", removed_total);
|
"from the matrix.\n", removed_total);
|
||||||
}
|
|
||||||
|
|
||||||
FREE(degree);
|
FREE(degree);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue