On fedora I get the following error message by using gcc-gfortran compiler (version 10.1.1-1.fc32 )
:
gfortran /home/wm/Downloads/elmer/elmerfem/mathlibs/src/arpack/cnaitr.f
/home/wm/Downloads/elmer/elmerfem/mathlibs/src/arpack/cnaitr.f:666:35:
383 | call svout (logfil, 1, rnorm, ndigit,
| 2
......
666 | call svout (logfil, 2, rtemp, ndigit,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
/home/wm/Downloads/elmer/elmerfem/mathlibs/src/arpack/cnaitr.f:737:39:
383 | call svout (logfil, 1, rnorm, ndigit,
| 2
......
737 | call svout (logfil, 2, rtemp, ndigit,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
Is this a peculiarity of the compiler ? How can I change the file to be compiled ?
Wolfram Miller
Error compiling cnaitr.f
Re: Error compiling cnaitr.f
Is solved by setting
-std=legacy as an additional argument to
CMAKE_Fortran_FLAGS_MINSIZEREL
CMAKE_Fortran_FLAGS_RELEASE
CMAKE_Fortran_FLAGS_RELWITHDEV
the errors are now warnings ......
-std=legacy as an additional argument to
CMAKE_Fortran_FLAGS_MINSIZEREL
CMAKE_Fortran_FLAGS_RELEASE
CMAKE_Fortran_FLAGS_RELWITHDEV
the errors are now warnings ......