Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

Legacy Fortran Compiling Woes

$
0
0

I have legacy Fortran code ranging in date from the 60s to 90s that I need to be able to compile.

The code works as it is written, even if it uses some old practices that are no longer standard. It was successfully built on the Intel Visual Fortran 2011 Compiler and Visual Studio 2008. I am now on Visual Studio 2012 and Intel Visual Fortran 2013. I can't seem to find the right options to flip to allow it to build.

The major problem is that huge equivalence arrays are used and often instead of passing an array or an actual pointer to a subroutine they are just passing a single value of the pointer equivalence arrays and somehow it is implied to use a sequence of values. The main errors are

  • the type of actual argument differs from the type of dummy argument
  • if the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic

Once again. I know that the code does work as built. Any helpful suggestions will be appreciated.


Viewing all articles
Browse latest Browse all 5691

Trending Articles