prevent error
h5close_f will give an error if h5open_f was not called. according to the manual, calling h5open_f multiple time is not a problem
This commit is contained in:
parent
d5963b403a
commit
d8a425b464
|
@ -23,6 +23,8 @@ subroutine quit(stop_id)
|
||||||
integer(pInt) :: error = 0_pInt
|
integer(pInt) :: error = 0_pInt
|
||||||
PetscErrorCode :: ierr = 0
|
PetscErrorCode :: ierr = 0
|
||||||
|
|
||||||
|
call h5open_f(hdferr)
|
||||||
|
if (hdferr /= 0) write(6,'(a,i5)') ' Error in h5open_f',hdferr ! prevents error if not opened yet
|
||||||
call h5close_f(hdferr)
|
call h5close_f(hdferr)
|
||||||
if (hdferr /= 0) write(6,'(a,i5)') ' Error in h5close_f',hdferr
|
if (hdferr /= 0) write(6,'(a,i5)') ' Error in h5close_f',hdferr
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue