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

Wrong iostat for End-Of-File in read statement for a coarray image greater than one

FlyingHermes
New Contributor I
447 Views

Hi,

I think I've found a bug in the new ifort version 14.0.0 related to coarrays.

If an EOF is encountered by an image greater than the 1st one during a read statement with the iostat argument provided, then the value stored in the iostat variable is sometimes 781 instead of 1.
A simple workaround is to treats the 781 value as an EOF status using: if ( ios == 781 ) exit




0 Kudos
2 Replies
Steven_L_Intel1
Employee
447 Views

How amusing!  Thanks - reproduced and escalated as issue DPD200247915. I tested EOR and it was fine.

0 Kudos
Steven_L_Intel1
Employee
447 Views

This was fixed in Update 2.

0 Kudos
Reply