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

f90 vs ifort

crkkos
初学者
1,223 次查看

I have in a code the lines

on real underflow ignore

on double precision underflow ignore

This worked with f90 before, but using ifort the code doesnt even compile saying

error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( % : . = =>

on double precision underflow ignore

Is there a way to get this to work, or mimic this functionality with ifort?

0 项奖励
4 回复数
Ron_Green
主持人
1,223 次查看

Quoting crkkos

I have in a code the lines

on real underflow ignore

on double precision underflow ignore

This worked with f90 before, but using ifort the code doesnt even compile saying

error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( % : . = =>

on double precision underflow ignore

Is there a way to get this to work, or mimic this functionality with ifort?

Those statements are not legal Fortran, they are what are known as 'vendor extensions'. You'll need to comment out those lines. Then look in your documentation for the -fpe option to set various floating point exception handling modes. The default without -fpe is to disable all floating point execeptions.

But I think what you want is -no-ftz to allow denormals.

0 项奖励
crkkos
初学者
1,223 次查看
i tried the -no-ftz and that in combination with fpe3. also tried various levels of optimization, but no luck =(
0 项奖励
TimP
名誉分销商 III
1,223 次查看
Ron didn't mean those options as a substitute for commenting out the non-standard syntax.
0 项奖励
crkkos
初学者
1,223 次查看
i know, just saying sucks that this code used these old directives in the first place.
0 项奖励
回复