用虚拟机安装WRF,gfortran、gcc、cpp都有安装并更新至最新,但是在安装mpich库的时候开始报错
configure: error: The Fortran compiler gfortran will not compile files that call the same routine with arguments of different types.
尝试过更新fort77和fortran,都没有解决这个错误,求解如何解决这个问题
加下编译参数看看
-std=legacy - hopefully
看下这个
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96033
说了两个方式
一个是gcc版本是9以下的
二个是FFLAGS and FCFLAGS 加上 -std=legacy
啊,这个安装就是有点麻烦,我可以帮你安装
用 intel mpi,省心多了。