Closed mgduda closed 11 months ago
I'm still looking through this PR, but just noticed that this is to the master branch. Is that correct?
I'm still looking through this PR, but just noticed that this is to the master branch. Is that correct?
Good catch -- it should be a PR to the develop
branch. I've just updated the PR.
This PR modifies the
mpas_io
andmpas_io_streams
modules to provide more helpful error messages in cases where errors occur in the PIO or SMIOL libraries. Prior to the changes in this PR, an error in the PIO or SMIOL library would generally result in the following less-than-helpful message in the MPAS log file:Now, for example, the error messages give further details about the nature of the error in PIO or SMIOL:
Also included in this PR are changes to clean up several parts of the
mpas_io
module, for example, replacing the PIO-specific error codeMPAS_IO_ERR_PIO
with a more generic name (MPAS_IO_ERR_BACKEND
) and adding code to properly set the error code in various places when the SMIOL library is used.