Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.

forrtl error

jcconesa
Beginner
3,145 Views

When executing (for the first time) a program compiled with ifort I find the following messages:

forrtl: Operation not permitted

forrtl: severe (28): CLOSE error, unit 0, file "Unknown"

I have searched in all .f90 files for  "close(unit=0", "close (unit=0", "open (unit=0" and "open(unit=0" without any result. Any hints?

JC Conesa

0 Kudos
2 Replies
Steve_Lionel
Honored Contributor III
3,141 Views

Unit 0 is "preconnected" to the "standard error" stream (stderr). Is this repeatable? Are you redirecting stderr to something else? Which OS?

0 Kudos
jcconesa
Beginner
3,120 Views

In fact I obtained this message  from the queuing system SLURM (in a Linux-type OS and a multicore computer; and the number of these messages coincided with the number of cores used), precisely in the file which collects (supposedly) the stderr messages.

But I have found, on the other hand, that the problem was due to an incorrect order of lines in the input file that I used to feed the program that I was using. Why this affected in the end to stderr, is a mistery to me...

Thanks anyway, Steve

0 Kudos
Reply