Error compiling cnaitr.f

Discussion about building and installing Elmer
Post Reply
wmiller
Posts: 12
Joined: 09 May 2017, 18:05
Antispam: Yes

Error compiling cnaitr.f

Post by wmiller » 31 Jul 2020, 12:14

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

wmiller
Posts: 12
Joined: 09 May 2017, 18:05
Antispam: Yes

Re: Error compiling cnaitr.f

Post by wmiller » 04 Aug 2020, 16:14

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 ......

Post Reply