PolyChord / PolyChordLite

Public version of PolyChord: See polychord.co.uk for PolyChordPro
https://polychord.io/
Other
84 stars 26 forks source link

gcc-10 Error: Type/Rank mismatch between actual argument at (1) and actual argument at (2) #60

Closed lukashergt closed 4 years ago

lukashergt commented 4 years ago

After some updates I couldn't re-install PolyChord anymore, but got a lot of these errors:

mpi_utils.F90:560:12:

  560 |             seed_point,            &!
      |            1
......
  650 |             empty_buffer,      &! not sending anything
      |            2
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)).

These errors seems to be caused by gfortran-10 now enforcing type matching.

As a workaround for now: Adding the option -fallow-argument-mismatch to FCFLAGS in Makefile_gnu turns above errors into warnings.

williamjameshandley commented 4 years ago

Hi @lukashergt, I think this is fixed in master already -- was this using the most up to date version?

lukashergt commented 4 years ago

Hi @lukashergt, I think this is fixed in master already -- was this using the most up to date version?

No this was using the latest release version. If it's already fixed, all the better. I'm afraid I can't confirm, though, since I've already got a new run going. Just thought I'd post this workaround in case it might be useful.

williamjameshandley commented 4 years ago

OK. It's now in release 1.18.1 (also updated on aur if you use that).