Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

/nofpscomp and 'denywr'

ggveldkamp2
Novato
402 Visualizações
If I compile the following code with the /nofpscomp option I can run 2 instances of the program without getting a runtime error. The default share identiefier should be 'denywr' according to the documentation.

program denywr

open(unit=10,file='test.txt')
write(10,*)'Test'

read(5,*)

close(10)

end

If I compile with /fpscomp:none I do get the runtime error for the 2nd instance of the program.
forrtl: severe (47): write to READONLY file, unit 10, file C:TEMPifort est.txt

Is /nofpscomp not working?

G. Veldkamp
0 Kudos
0 Respostas
Responder