summaryrefslogtreecommitdiffstats
path: root/fortran/test/fflush2.f90
diff options
context:
space:
mode:
Diffstat (limited to 'fortran/test/fflush2.f90')
-rw-r--r--fortran/test/fflush2.f909
1 files changed, 4 insertions, 5 deletions
diff --git a/fortran/test/fflush2.f90 b/fortran/test/fflush2.f90
index d073810..45304c5 100644
--- a/fortran/test/fflush2.f90
+++ b/fortran/test/fflush2.f90
@@ -95,8 +95,9 @@
CALL h5_fixname_f(filename, fix_filename, H5P_DEFAULT_F, error)
if (error .ne. 0) then
write(*,*) "Cannot modify filename"
- stop
+ CALL h5_exit_f (1)
endif
+ print *, "filename=", filename, "fix_filename=", fix_filename
CALL h5fopen_f(fix_filename, H5F_ACC_RDONLY_F, file_id, error)
CALL check("h5fopen_f",error,total_error)
@@ -139,11 +140,9 @@
CALL check("h5gopen_f",error,total_error)
!
- !In case error happens, jump to stop.
+ !In case error happens, exit.
!
- IF (error == -1) THEN
- 001 STOP
- END IF
+ IF (error == -1) CALL h5_exit_f (1)
!
!Close the datatype