This only affects Windows based installations. The Compaq Visual Fortran compiler will not be used to compile CFX-11.0. For CFX-10.0 users who wish to procure a compiler, it therefore makes sense to use the Intel Compiler which will be used for CFX-11.0. However, it is not immediately obvious how to use the Intel compiler with CFX-10.0.




The required steps are shown below. The procedure is quite involved, but by following these instructions, it should be possible to obtain a working installation. It is necessary to install Microsoft Visual C++ 2003 toolkit and a couple of other items, so that the required linker and run time libraries are available.


INSTALL THE INTEL FORTRAN COMPILER

Tested with version 9.0 but version 9.1 should also work.


INSTALL MICROSOFT VISUAL C++ 2003 TOOLKIT

This can be downloaded free of charge, but because it has been superseded by a later version, it doesn't seem to be available from Microsoft's web site, but can still be downloaded from <a target=_blank href="http://xona.com/2004/06/29.html">http://xona.com/2004/06/29.html</a>http://xona.com/2004/06/29.html free of charge. It is advisible to keep a copy of the installation file, as this is proving more and more difficult to obtain.


INSTALL MICROSOFT PLATFORM SDK

This can be downloaded fee of charge from:
<a target=_blank href="http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&DisplayLang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&DisplayLang=en</a>http://www.microsoft.com/downloads/details.aspx?FamilyID=a55b6b43-e24f-4ea3-a93e-40c0ec4f68e5&DisplayLang=en


INSTALL MICROSOFT .NET FRAMEWORK SDK 1.1

This can be downloaded fee of charge from:
<a target=_blank href="http://www.microsoft.com/downloads/details.aspx?FamilyId=9B3A2CA6-3647-4070-9F41-A333C6B9181D&displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyId=9B3A2CA6-3647-4070-9F41-A333C6B9181D&displaylang=en</a>http://www.microsoft.com/downloads/details.aspx?FamilyId=9B3A2CA6-3647-4070-9F41-A333C6B9181D&displaylang=en


MODIFY THE FILE ifort.cfg

This can usually be found at: C:Program FilesIntelCompilerFortran9.0IA32Binifort.cfg but the path may differ depending on where the software is installed. Make sure the path to the linker is correct. You may need to add or modify a line to specify the location of the linker executable. For example:

-Qlocation,link,"C:Program FilesMicrosoft Visual C++ Toolkit 2003bin"

It is advisible to keep a backup copyof any files modified.


MODIFY THE FILE ifortvars.bat

This usually resides at: C:Program FilesIntelCompilerFortran9.0IA32Binifortvars.bat but again this may differ depending on where the software is installed.

- First, remove the following lines:

REM @call "<Microsoft VC++ Bin Dir>BinVcvars32.bat"
echo Unable to find Microsoft Visual C++ 6.0 or better.
echo Intel(R) Visual Fortran Compiler for 32-bit applications will not function properly.
title Intel(R) Visual Fortran Compiler 9.0.030 Build Environment for 32-bitapplications

- Replace with the following (paths may differ depending on where installed):

call "C:Program FilesMicrosoft Visual C++ Toolkit 2003vcvars32.bat"
call "C:Program FilesMicrosoft Platform SDKSetEnv.Cmd" /XP32 /RETAIL

(replace /XP32 with /2000 if running Windows 2000)

- Also, add the following line to append an additional library path to the LIB variable:

SET LIB=C:Program FilesMicrosoft Visual Studio .NET 2003Vc7lib;%LIB%


MODIFY THE FILE cfx5mkext.ccl

Modify the file in the <CFXROOT>/etc directory of your CFX installation to set the necessary arguments to use the Intel compiler as the default compiler for ANSYS CFX 10.0. Locate the OS:winnt object in the 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.libEND
END


USAGE/FINAL NOTES

Please note that before using the cfx5mkext command is used, the ifortvars.bat file mentioned earlier must first be executed, to set up the required environment variables.

It is likely that Microsoft Visual C++ 2003 toolkit will not be required for CFX-11.0, as we should not then require certain libraries which are necessary for compatibility with Compaq visual Fortran which is currently used to compile the solver.





Show Form
No comments yet. Be the first to add a comment!