|
|
@ -851,7 +851,14 @@ void inp_probe(struct card* deck) |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
char* thisline = tmpcard->line; |
|
|
char* thisline = tmpcard->line; |
|
|
|
|
|
|
|
|
|
|
|
/* 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); |
|
|
numnodes = get_number_terminals(thisline); |
|
|
|
|
|
|
|
|
int err = 0; |
|
|
int err = 0; |
|
|
/* call fcn with power requested */ |
|
|
/* call fcn with power requested */ |
|
|
err = setallvsources(tmpcard, instances, instname, numnodes, haveall, TRUE); |
|
|
err = setallvsources(tmpcard, instances, instname, numnodes, haveall, TRUE); |
|
|
|