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

Changing the default setings

Alex_G_4
Beginner
1,247 Views

Hi,

i'm writing some user-subroutines for my FEM-Analysis and have now some problems with my code. I want now to debug it, but since the compilation is handeld by the FEM-software, and the documentation doesn't say a word abot it, i see noch chance in giving the '-check all' option to the compiler.

So, is there a way to enable this option as default?

 

Thanks

0 Kudos
4 Replies
mecej4
Honored Contributor III
1,247 Views

There are two ways (which are not mutually exclusive):

  • Edit the file ifort.cfg in the {compiler path}/bin directory. This change will affect all users of the compiler, however. 
  • Use the alias mechanism of the shell. For example, [bash]alias ifort='ifort -L/myhomepath/lib'[/bash]
0 Kudos
Alex_G_4
Beginner
1,247 Views

Hi,

i found the file, it seems to be blank, so i have no clue how i can proper edit it.
All i need is the option '-check all', how do i do that.

Thanks.

(I'm realy new into all of this a try to learn while doing)

0 Kudos
mecej4
Honored Contributor III
1,247 Views

You can edit the file (using su if necessary) and add -check-all as the only line in the file, or use the command cat >> ifort.cfg, then type in the line with the desired compiler options, followed by Control-D to signify end-of-input.

0 Kudos
Alex_G_4
Beginner
1,247 Views

Works like a charm, thanks.

0 Kudos
Reply