- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not sure if I am doing something wrong or if this is a bug in ifx. I recently started compiling with ifx following the recommendations. A new error appeared and after some debugging I got to this. I am just decompressing a file with `execute_system_command` and reading it. But depending on what I compile it I get different values on existStat of this subroutine.
program nmwe
implicit none
integer :: iun, estat, val
character(len=6), parameter :: fcompressed = "foo.gz"
character(len=3), parameter :: fname = "foo"
character(len=14), parameter :: command = "gzip -d foo.gz"
logical :: fexist
print*, "calling system command to decompress"
call execute_command_line(command, exitstat = estat)
inquire(file = fname, exist = fexist)
if (fexist) then
print*, "apparently decompression was successful"
open(newunit = iun, file = fname)
read(iun, *) val
print*, "value is ", val
close(iun)
else
print*, "file was not decompressed"
end if
if (estat /= 0) then
print*, "But there was a problem in `", command, "`!!!"
end if
end program nmwe
And here is the output.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cannot reproduce your problem using 2024.2. Which version are you using?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @TobiasK for checking this. I just noticed I was using 2021.1 Beta 20201113. Our cluster admin has made this the default intel compiler and I never noticed I am using a beta version. Used 2024 and the problem is now solved.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page