Merge branch 'hdf5-error-check' into 'development'

positive values are ok

See merge request damask/DAMASK!753
This commit is contained in:
Martin Diehl 2023-04-18 20:14:06 +00:00
commit f6c254403b
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ subroutine quit(stop_id)
call h5open_f(err_HDF5) ! prevents error if not opened yet
if (err_HDF5 /= 0) write(ERROR_UNIT,'(a,i5)') ' Error in h5open_f ',err_HDF5
if (err_HDF5 < 0) write(ERROR_UNIT,'(a,i5)') ' Error in h5open_f ',err_HDF5
call h5close_f(err_HDF5)
if (err_HDF5 /= 0) write(ERROR_UNIT,'(a,i5)') ' Error in h5close_f ',err_HDF5
if (err_HDF5 < 0) write(ERROR_UNIT,'(a,i5)') ' Error in h5close_f ',err_HDF5
call PetscFinalize(err_PETSc)