Topic: Problem when compiling: mismatch between scalar and rank-1 array
Hello. I am a new user o SF, and I am still a bit lost. I need to use an old fortran code, and I am having problems with mismatch arguments (a scalar passed to a rank-1 array). The code worked perfectly several years ago. The problem is with the new Gfortran compiler defaults:
"Gfortran 10 added the default behavior to make type mismatches an error instead of a warning. Legacy Fortran programs too often did not explicitly specify the procedure interfaces to allow implicit polymorphism. The Fortran 2008 standard cleaned up this situation in part with type(*).
Workaround: Gfortran flag " -fallow-argument-mismatch " can be used to degrade the errors to warnings. It is however strongly recommended to fix the problem in the legacy code, if it’s part of your code ownership."
So, I would like to pass the flag " -fallow-argument-mismatch " to the SF compiler. How should I proceed? Thank you in advance.