grasp icon indicating copy to clipboard operation
grasp copied to clipboard

Mismatch error in file grasp/src/lib/lib9290/iniest2

Open amilton10 opened this issue 2 years ago • 2 comments

HI I have thw following in file grasp/src/lib/lib9290/iniest2.f90:82:23:

79 | CALL DCOPY (NS, VEC(NS*(J-1)+1), 1, BASIS(NCF*(J-1)+1), 1) | 2 ...... 82 | CALL DCOPY (NIV, EIGVAL, 1, BASIS(NIV*NCF+1), 1) | 1 Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)

amilton10 avatar Jan 22 '24 03:01 amilton10

Hi, Which version of gfortran do you used for your compilation? You can try to add the following flag to the makefile: -fallow-argument-mismatch. See if it works?

WenxianLi avatar Jan 30 '24 01:01 WenxianLi

This is the same issue as #77 (see also #46 & #77), and the workaround is to use the -DCMAKE_Fortran_FLAGS="-fallow-argument-mismatch" argument to CMake when generating the build files.

jagot avatar Mar 07 '24 14:03 jagot