Error and warning messages to stderr

This commit is contained in:
Vogt 2024-08-01 13:28:32 +02:00
parent 2e8bd0cea6
commit f95e8c2e3a
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -1107,8 +1107,8 @@ inp_spsource(FILE *fp, bool comfile, char *filename, bool intfile)
strstr(dd->line, " rms ") ||
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");
}
}