Browse Source

Error and warning messages to stderr

pre-master-46
Vogt 2 years ago
committed by Holger Vogt
parent
commit
501a64470f
  1. 6
      src/ciderlib/support/misc.c
  2. 4
      src/frontend/inp.c

6
src/ciderlib/support/misc.c

@ -134,16 +134,16 @@ foundError(int error)
switch( error ) { switch( error ) {
/* Removed for Spice3e1 Compatibility /* Removed for Spice3e1 Compatibility
case spSMALL_PIVOT: case spSMALL_PIVOT:
printf( "Warning: LU Decomposition Problem - SMALL PIVOT\n" );
fprintf(stderr, "Warning: LU Decomposition Problem - SMALL PIVOT\n" );
matrixError = FALSE; matrixError = FALSE;
break; break;
*/ */
case spPANIC: case spPANIC:
printf( "Error: LU Decomposition Failed - PANIC\n" );
fprintf(stderr, "Error: LU Decomposition Failed - PANIC\n" );
matrixError = TRUE; matrixError = TRUE;
break; break;
case spSINGULAR: case spSINGULAR:
printf( "Error: LU Decomposition Failed - SINGULAR\n" );
fprintf(stderr, "Error: LU Decomposition Failed - SINGULAR\n" );
matrixError = TRUE; matrixError = TRUE;
break; break;
/* Removed for Spice3e1 Compatibility /* Removed for Spice3e1 Compatibility

4
src/frontend/inp.c

@ -1107,8 +1107,8 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
strstr(dd->line, " rms ") || strstr(dd->line, " rms ") ||
strstr(dd->line, " integ ")) strstr(dd->line, " integ "))
{ {
printf("Warning: .OPTION AUTOSTOP will not be effective because one of 'max|min|avg|rms|integ' is used in .meas\n");
printf(" AUTOSTOP being disabled...\n");
fprintf(stderr, "Warning: .OPTION AUTOSTOP will not be effective because one of 'max|min|avg|rms|integ' is used in .meas\n");
fprintf(stderr, " AUTOSTOP being disabled...\n");
cp_remvar("autostop"); cp_remvar("autostop");
} }
} }

Loading…
Cancel
Save