I am trying to compile CALPUFF (www.src.com) on Linux. I have access to GNU, Intel and Portland compilers. I was able to successfully compile its preprocessor (CALMET) and post-processors (CALPOST) using Portland compiler. I attempted compiling the CALPUFF program using the following command:
I tried compiling the code with gfortran 10.2.0 but the code contains a large number of errors of the type rank mismatch. mismatches in types of arguments etc. It looks like it relies on ancient practices
The good news is: it finished processing the code in less than a minute.
I have not tried to reduce the diagnostics level.
Intel Fortran is quite good for these legacy codes with non-standard practices and indeed the code compiles with Intel Fortran 2021.1.2. I haven’t however tested the executable that was produced.
Using -fallow-argument-mismatch may help with gfortran, but there were a handful of other errors that gfortran still wasn’t happy about.