mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-07 21:54:48 +02:00
When there is no model found, and we have an m devices,
set the number of nodes to 4. This has to be fixed (find a way to detect the number of nodes automatically).
This commit is contained in:
@@ -1389,7 +1389,11 @@ translate(struct card *deck, char *formal, char *actual, char *scname, const cha
|
||||
tfree(name);
|
||||
bxx_putc(&buffer, ' ');
|
||||
|
||||
nnodes = numnodes(c->line, subs, modnames);
|
||||
/* FIXME anothet hack: if no models found for m devices, set number of nodes to 4 */
|
||||
if (!modnames && *(c->line) == 'm')
|
||||
nnodes = 4;
|
||||
else
|
||||
nnodes = numnodes(c->line, subs, modnames);
|
||||
while (--nnodes >= 0) {
|
||||
name = gettok_node(&s);
|
||||
if (name == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user