Browse Source

In PS compat mode we only have 2 nodes in a diode,

but still allow self heating diode with ngspice syntax.
pre-master-46
Holger Vogt 2 years ago
parent
commit
88d0727d3f
  1. 4
      src/frontend/inpcom.c

4
src/frontend/inpcom.c

@ -4853,6 +4853,10 @@ int get_number_terminals(char *c)
return 2; return 2;
break; break;
case 'd': case 'd':
/* PS: D<name> <(+) node> <(-) node> <model name> [area value],
but still allow self heating diode with ngspice syntax. */
if (newcompat.ps && !search_plain_identifier(c, "thermal"))
return 2;
i = 0; i = 0;
/* find the first token with "off" or "=" in the line*/ /* find the first token with "off" or "=" in the line*/
while ((i < 10) && (*c != '\0')) { while ((i < 10) && (*c != '\0')) {

Loading…
Cancel
Save