- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page