Browse Source

rm the annoying bjt level warning

pre-master-46
dwarning 17 years ago
parent
commit
ef33d01012
  1. 9
      src/spicelib/parser/inpfindl.c

9
src/spicelib/parser/inpfindl.c

@ -11,8 +11,6 @@ Modified: 1999 Paolo Nenzi - Now we can use a two digits level code -
*/ */
#include "ngspice.h" #include "ngspice.h"
#include <stdio.h>
#include <string.h>
#include "inpdefs.h" #include "inpdefs.h"
#include "inp.h" #include "inp.h"
@ -48,7 +46,7 @@ char *INPfindLev(char *line, int *level)
if (*level > 99) { /* Limit to change in the future */ if (*level > 99) { /* Limit to change in the future */
*level = 1; *level = 1;
fprintf(stderr,"Illegal value for level.\n"); fprintf(stderr,"Illegal value for level.\n");
fprintf(stderr,"Level must be <99 (Setting Level to 1)\n");
fprintf(stderr,"Level must be < 99 (Setting Level to 1)\n");
return (INPmkTemp return (INPmkTemp
(" illegal (too high) argument to level parameter - level=1 assumed")); (" illegal (too high) argument to level parameter - level=1 assumed"));
} }
@ -57,14 +55,13 @@ char *INPfindLev(char *line, int *level)
} }
else { /* no level on the line => default */ else { /* no level on the line => default */
*level = 1; *level = 1;
#ifdef TRACE /* this is annoying for bjt's */
fprintf(stderr,"Warning -- Level not specified on line \"%s\"\nUsing level 1.\n", line); fprintf(stderr,"Warning -- Level not specified on line \"%s\"\nUsing level 1.\n", line);
#endif
return ((char *) NULL); return ((char *) NULL);
} }
} }
Loading…
Cancel
Save