Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jcconesa
Beginner
158 Views

forrtl error

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
Black Belt Retired Employee
154 Views

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

jcconesa
Beginner
133 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