Browse Source

Not a warning but an error, stopping the simulation

pre-master-46
Holger Vogt 3 years ago
parent
commit
e4601c16ee
  1. 4
      src/frontend/inpcom.c

4
src/frontend/inpcom.c

@ -8652,12 +8652,12 @@ static struct card *pspice_compat(struct card *oldcard)
cut_line = nexttok(cut_line); /* skip .model */ cut_line = nexttok(cut_line); /* skip .model */
modname = gettok(&cut_line); /* save model name */ modname = gettok(&cut_line); /* save model name */
if (!modname) { if (!modname) {
fprintf(stderr, "Warning: No model name given for %s\n", curr_line);
fprintf(stderr, "Error: No model name given for %s\n", curr_line);
controlled_exit(EXIT_BAD); controlled_exit(EXIT_BAD);
} }
modtype = gettok_noparens(&cut_line); /* save model type */ modtype = gettok_noparens(&cut_line); /* save model type */
if (!modtype) { if (!modtype) {
fprintf(stderr, "Warning: No model type given for %s\n", curr_line);
fprintf(stderr, "Error: No model type given for %s\n", curr_line);
controlled_exit(EXIT_BAD); controlled_exit(EXIT_BAD);
} }
if (cieq(modtype, "NMOS") || cieq(modtype, "PMOS")) { if (cieq(modtype, "NMOS") || cieq(modtype, "PMOS")) {

Loading…
Cancel
Save