positive values are ok

from the description:
Returns a non-negative value if successful; otherwise returns a negative value.
This commit is contained in:
Martin Diehl 2023-04-18 12:01:03 +02:00
parent b8518e2875
commit d32d088ed7
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)