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

Code that worked for Compaq VF 6.1 won't work with Intel VF 11.0

rks171
Beginner
429 Views
Hi, I have a code that I have compiled with Compaq visual fortran 6.1 previously that would run fine. I have attempted compiling it with Intel Visual Fortran 11.0 in microsoft visual studio 2003.NET and it compiles fine. However, when I try to run it using the same exact input conditions as the previously compiled version, the code runs into convergence errors and fails to obtain a solution. I assume this error is a result of some difference in how the code was compiled between the two previously mentioned compilers. Any ideas of what is different between the two compilers, or two developer studios (I think Compaq Visual Fortran uses developer studio '98), that could be causing the code not to converge?
0 Kudos
1 Reply
anthonyrichards
New Contributor III
429 Views
One problem you may be having is that the CVF compiler typically SAVEs all subroutine local variables from call to call, by default, but the IVF compilerdoes not, unless specifically instructed to do so. If your code depends on variable values being maintained between calls, you will have to explicitly add the SAVE command to your subprograms so that IVF knows to add code to store all local variables between calls.
0 Kudos
Reply