Page 1 of 1

Warning in CosmoMC after running make in source file

Posted: September 26 2023
by Jose Lozano
Hello Dear Community,

I'm a new user in CosmoMC and there's a warning that bothers me a little. I'm curious about the following warning:

mpif90 -f90=ifort -qmkl -qopenmp -O3 -no-prec-div -fpp -qopenmp -xHost -DMPI -I../camb/ReleaseMPI -module ReleaseMPI -IReleaseMPI/ -c PowellConstrainedMinimize.f90 -o ReleaseMPI/PowellConstrainedMinimize.o
PowellConstrainedMinimize.f90(25): warning #6178: The return value of this FUNCTION has not been defined. [RES]
function funkk(this, n, X) result(res)
--------------------------------------^

Have you detected this warning when you're compiling CosmoMC-planck2018? Should I modify the given PowellConstrainedMinimize.f90 file?

Re: Warning in CosmoMC after running make in source file

Posted: September 26 2023
by Antony Lewis
These warnings are harmless when from abstract methods that are not used directly (only via inherited implementations).