Skip to content

Commit 7fbaac1

Browse files
krystophnyperazz
andauthored
Modern syntax, output error
Co-authored-by: Federico Perini <[email protected]>
1 parent 06a3893 commit 7fbaac1

File tree

1 file changed

+1
-1
lines changed
  • example_packages/metapackage_netcdf/app

1 file changed

+1
-1
lines changed

example_packages/metapackage_netcdf/app/main.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ program metapackage_netcdf
55
integer(c_int) :: ncid, retval
66

77
retval = nf_create("dummy.nc", NF_INMEMORY, ncid)
8-
if (retval .ne. nf_noerr) error stop
8+
if (retval /= nf_noerr) error stop nf_strerror(retval)
99
stop 0
1010
end program metapackage_netcdf

0 commit comments

Comments
 (0)