CS ignores Fortran user coding files on macOS
Posted: Sat Jun 18, 2022 1:12 pm
I compiled code_saturne 7.1 on MacOS (Monterey, M1, gcc 11 from MacPorts) without any compilation errors. However, when I try to run a case which contains user coding files in Fortran I found out that they are ignored and the resulting code_saturne executable contains the empty user functions.
However, this is not the case for C user coding files which appear to be working properly! The compiler.log contains no error messages to indicate some compilation issue and both C and Fortran user coding files are compiled.
I realised that this is the case because C user coding produces messages on the screen when running a case but not the Fortran user coding when I insert "write" statements. So, I assume that the standard empty functions are used and the linked object files after the compilation are ignored.
Has anyone experienced a similar problem and are there any suggestions for a way to handle this problem?
However, this is not the case for C user coding files which appear to be working properly! The compiler.log contains no error messages to indicate some compilation issue and both C and Fortran user coding files are compiled.
I realised that this is the case because C user coding produces messages on the screen when running a case but not the Fortran user coding when I insert "write" statements. So, I assume that the standard empty functions are used and the linked object files after the compilation are ignored.
Has anyone experienced a similar problem and are there any suggestions for a way to handle this problem?