From 47c77e421d633e5e250a480ccf102eb378bb9b88 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 31 Jul 2026 14:11:26 +0200 Subject: [PATCH] Revert "If stricterrorhandling is set, ngspice detects the dangling" This reverts commit 02c6478399b4f88172b572f1a97bbe54ce03f261. --- src/spicelib/analysis/cktsetup.c | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/src/spicelib/analysis/cktsetup.c b/src/spicelib/analysis/cktsetup.c index 99e9fe4a0..b3829ab79 100644 --- a/src/spicelib/analysis/cktsetup.c +++ b/src/spicelib/analysis/cktsetup.c @@ -134,13 +134,7 @@ CKTtopologyReduce(CKTcircuit *ckt) else if (nn > 0) degree[nn]--; removed_this_pass++; - if (ft_stricterror) { - 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) + if (reported++ < 40) fprintf(stdout, "Topology reduction: removed dangling capacitor %s " "(floating node %s)\n", ci->CAPname, @@ -171,17 +165,11 @@ CKTtopologyReduce(CKTcircuit *ckt) else if (nn > 0) degree[nn]--; removed_this_pass++; - if (ft_stricterror) { - 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) + if (reported++ < 40) fprintf(stdout, "Topology reduction: removed dangling resistor %s " "(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; } - 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); - } - + if (removed_total) fprintf(stdout, "Topology reduction: %d dangling passive(s) removed " - "from the matrix.\n", removed_total); - } + "from the matrix.\n", removed_total); FREE(degree); }