Skip to content
Snippets Groups Projects
Commit f15764bb authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Add message to suggest creation of directory

parent 45118024
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ program inst_eddies ...@@ -4,6 +4,7 @@ program inst_eddies
use, intrinsic:: ieee_arithmetic, only: IEEE_SUPPORT_DATATYPE, & use, intrinsic:: ieee_arithmetic, only: IEEE_SUPPORT_DATATYPE, &
ieee_support_nan ieee_support_nan
use, intrinsic:: ISO_FORTRAN_ENV
! Libraries: ! Libraries:
use contour_531, only: convert_to_ind use contour_531, only: convert_to_ind
...@@ -27,6 +28,7 @@ program inst_eddies ...@@ -27,6 +28,7 @@ program inst_eddies
type(snapshot) s type(snapshot) s
TYPE(shpc_slice_handler) hshpc_cyclo, hshpc_anti TYPE(shpc_slice_handler) hshpc_cyclo, hshpc_anti
integer i, iostat integer i, iostat
character(len = 200) iomsg
integer unit integer unit
integer nlon, nlat integer nlon, nlat
...@@ -80,7 +82,15 @@ program inst_eddies ...@@ -80,7 +82,15 @@ program inst_eddies
open(unit, file = timings_fname, STATUS = "old", ACTION = "WRITE", & open(unit, file = timings_fname, STATUS = "old", ACTION = "WRITE", &
position = "append") position = "append")
else else
OPEN(unit, file = timings_fname, STATUS = "new", ACTION = "WRITE") OPEN(unit, file = timings_fname, STATUS = "new", ACTION = "WRITE", &
iostat = iostat, iomsg = iomsg)
if (iostat /= 0) then
write(ERROR_UNIT, fmt = "(a, i0, a)") "Is the directory SHPC/Slice_", &
slice, " created?"
write(ERROR_UNIT, fmt = *) trim(iomsg)
stop 1
end if
end if end if
call config call config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment