From b1a806c35d8f5084c66e3d9ea93e6a77a1faae23 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 6 Jan 2023 11:50:45 +0100 Subject: [PATCH] A preliminary fix to bug report 612 Don't set series voltage sources when flag probe_alli_nox is set in .spiceinit --- src/frontend/inpc_probe.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/frontend/inpc_probe.c b/src/frontend/inpc_probe.c index e43bd2256..f18c60510 100644 --- a/src/frontend/inpc_probe.c +++ b/src/frontend/inpc_probe.c @@ -238,6 +238,17 @@ void inp_probe(struct card* deck) if (strchr("ehvk", *instname)) continue; + /* exclude a devices (code models may have special characters in their instance line. + digital nodes should not get V sources in series anyway.) */ + if ('a' == *instname) + continue; + + /* exclude x devices (Subcircuits may contain digital a devices, + and digital nodes should not get V sources in series anyway.), + when probe_alli_nox is set in .spiceinit. */ + if ('x' == *instname && cp_getvar("probe_alli_nox", CP_BOOL, NULL, 0)) + continue; + /* special treatment for controlled current sources and switches: We have three or four tokens until model name, but only the first 2 are relevant nodes. */ if (strchr("fgsw", *instname))