How to apply the Intel Visual Fortran 9 compiler for ANSYS CFX 10 applications?
ANSYS CFX 11 will be switching from Digital Fortran to Intel Visual Fortran 9 for the officially supported compiler to build user fortran for the CFX solver on Windows platforms. For those who already have Intel Visual Fortran 9, it is possible to configure your ANSYS CFX 10 installation to work with the new compiler. This note outlines the necessary configuration steps. 1) Install the compiler as outlined in the Intel Visual Fortran Installation Guide (http://www.intel.com/software/products/compilers/fwin/docs/INSTALL.htm). Two key items to note are: a. The Microsoft C++ .NET 2003 compiler and linker must be installed for IVF9 to function. Command-line versions of these tools sufficient to enable use with ANSYS CFX 10.0 are available for free from <a target=_blank href="http://msdn.microsoft.com/visualc/vctoolkit2003/">http://msdn.microsoft.com/visualc/vctoolkit2003/</a>http://msdn.microsoft.com/visualc/vctoolkit2003/ b. The compiler must be configured to run in a command-line environment by executing <install-dir>CompilerFortran9.0IA32binifortvars.bat. 2) You must edit the cfx5mkext.ccl file in the <CFXROOT>/etc directory of your CFX installation to set the necessary arguments to use the IVF9 compiler as the default compiler for ANSYS CFX 10. Locate the `OS:winnt` object inthe file, and change the configuration settings to be as follows. OS: winnt cc = cl fc = ifort ld = link cxx = cl ext build cflags = -MD ext build fflags = -iface:cvf -MD ext link ldflags = -threads -dll ext link lib5files = solver-pvm.lib cppincflag f = -include: cppflags f = -fpp fc outopt obj = -object: fc outopt exec = -exe: cc outopt obj = -Fo ext lib suffix = dll ext lib pattern = %s.dll ATTRS: double cppflags = -DDOUBLE_PRECISION ext build fflags = -iface:cvf -integer_size:32 -real_size:64 -MD ext link lib5files = solver-pvm.lib END END Once this change ismade, you can now use `cfx5mkext` command as normal to create User Fortran object files using the IVF9 compiler. |
||
|