That should fix itHi,I have finished changed my NETCDF_DIR in my Makefile,but when I ran ./make_mozbc,it shows
make: *** [Makefile:41: mozbc] 错误 1
未能构建 fire_emis
,I don't know where the issue is.View attachment 7457
Hi,I have finished changed my NETCDF_DIR in my Makefile,but when I ran ./make_mozbc,it shows
make: *** [Makefile:41: mozbc] 错误 1
未能构建 fire_emis
,I don't know where the issue is.View attachment 7457
cd $HOME/WRFCHEM/WRF_CHEM_Tools/mozbc
chmod +x make_mozbc
export DIR=$HOME/WRFCHEM/WRF_CHEM_Tools/Libs
export FC=gfortran
export NETCDF_DIR=$DIR/NETCDF
sed -i 's/"${ar_libs} -lnetcdff"/"-lnetcdff ${ar_libs}"/' make_mozbc
sed -i '8s/FFLAGS = --g/FFLAGS = --g ${fallow_argument}/' Makefile
sed -i '10s/FFLAGS = -g/FFLAGS = -g ${fallow_argument}/' Makefile
./make_mozbc
[代码=bash]
cd $HOME/WRFCHEM/WRF_CHEM_Tools/mozbc
chmod +x make_mozbc
导出目录=$HOME/WRFCHEM/WRF_CHEM_Tools/Libs
导出 FC=gfortran
导出 NETCDF_DIR=$DIR/NETCDF
sed -i 's/"${ar_libs} -lnetcdff"/"-lnetcdff ${ar_libs}"/' make_mozbc
sed -i '8s/FFLAGS = --g/FFLAGS = --g ${fallow_argument}/' Makefile
sed -i '10s/FFLAGS = -g/FFLAGS = -g ${fallow_argument}/' Makefile
./make_mozbc
[/代码]
我拥有的脚本中的一个示例也可以修复它。thanks! I found it was a compiler bug,and it can run now~
Hello.Yes that bud for Ubuntu 22.04 can be very tricky.
For anyone running into it here is a post about it.
How to fix "Error:Rank mismatch between actual argument at (1) and actual argument at (2)"
Good morning everyone, I am writing this post here so that everyone can benefit from my struggles. First a little background information on this error. In GNU 9 there were flags for gfortran that were hidden in the system code that were turn on by default. These flags allowed for old fortran...forum.mmm.ucar.edu