Allow individual current measurements in switches or

linear dependent sources.
This commit is contained in:
Holger Vogt 2022-08-29 14:12:43 +02:00
parent 6b786099cb
commit b83a0d3fdf
1 changed files with 7 additions and 1 deletions

View File

@ -715,7 +715,13 @@ void inp_probe(struct card* deck)
continue;
}
char* thisline = tmpcard->line;
numnodes = get_number_terminals(thisline);
/* 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))
numnodes = 2;
else
numnodes = get_number_terminals(thisline);
/* skip ',' */
if (*tmpstr == ',')