Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Comunicados
Important Update: Community Platform Migration​. Learn more​>
29649 Discussões

Does IF 7 support variable expression in Format Statement?

tol1
Principiante
2.057 Visualizações
Hello,

Intel Fortran 7 seems to be able to compile the variable expression format statement without any error, but the program fails at runtime.

m = 5
print '(f10.4)' x1,x2,x3,x4,x5

Regards,
Long
0 Kudos
2 Respostas
Steven_L_Intel1
Funcionário
2.057 Visualizações
Well, yes, Intel Fortran 7 does support variable format expressions in FORMAT statements, but you didn't write a FORMAT statement!

IF7 does not support VFEs in character literal formats, which is what you used. Use a separate FORMAT statement and it will work ok.

This works in CVF and should work in the future Intel Visual Fortran product.

Steve
tol1
Principiante
2.057 Visualizações
Thanks for clarification!

Regards,
Long
Responder