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

IVF 10.1.019 /fpscomp:ioformat compiler flag bug?

gdw
Beginner
718 Views

Intel Visual Fortran version IA-32, Version 10.1.019 for Windows

hi,

The "Microsoft Fortran PowerStation Compatible Files" /fpscomp:ioformat compiler option appears to be non-working.


If I compile (sample from the IVF help (ms-its:C:Program FilesIntelCompilerFortran10.1.019Docsldaps_for.chm::/common/bldaps_mspowfiles.htm) this source:


PROGRAM test
OPEN (3,FILE='FDIR', FORM='FORMATTED', ACCESS='DIRECT',RECL=10)
WRITE (3, '(A10)', REC=1) 'RECORD ONE'
WRITE (3, '(I5)', REC=3) 30303
CLOSE (3)
END

With this compiler option:


ifort /fpscomp:ioformat

After execution of the program I get a file of 30 bytes. This is wrong because each record should contain 10 bytes+2 bytes CR-LF, thus 36 bytes in total. The CR-LFs are missing.

Any solution or workaround?

0 Kudos
2 Replies
Steven_L_Intel1
Employee
718 Views
You want /fpscomp:general.
0 Kudos
gdw
Beginner
718 Views

Thanks, Steve!

This file formatting issue was indeed a feature of general and not of ioformat.

0 Kudos
Reply