|
SCORPIO
2.0.4
|
By default, SCORPIO handles errors internally by printing a string describing the error and then calling mpi_abort. Application developers can change this behaivior with a call to PIO_seterrorhandling
call pio_seterrorhandling(File, PIO_BCAST_ERROR) ierr = pio_inq_varid(File, 'U', uid) call pio_seterrorhandling(File, PIO_INTERNAL_ERROR) if(ierr/= PIO_NOERR) then write(stderr,*) 'Variable U not found on input file, setting to 0' U=0 else ... endif
The four types of error handling methods are:
Use this instead of ios to set error handling for the library.