-
Notifications
You must be signed in to change notification settings - Fork 14
Description
So I am getting the following error
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
[code]cd $HOME/WRFCHEM/
git clone https://github.com/wrf-model/OBSGRID.git
cd $HOME/WRFCHEM/OBSGRID
./clean -a
source $Miniconda_Install_DIR/etc/profile.d/conda.sh
conda init bash
conda activate ncl_stable
export HOME=cd;pwd
export DIR=$HOME/WRFCHEM/Libs
export NETCDF=$DIR/NETCDF
./configure FFLAGS=-fallow-argument-mismatch FCFLAGS=-fallow-argument-mismatch #Option 2
sed -i 's/-C -P -traditional/-P -traditional/g' configure.oa
sed -i 's/-lnetcdf -lnetcdff/ -lnetcdff -lnetcdf/g' configure.oa
sed -i 's/-lncarg -lncarg_gks -lncarg_c -lX11 -lm -lcairo/-lncarg -lncarg_gks -lncarg_c -lX11 -lm -lcairo -lfontconfig -lpixman-1 -lfreetype -lhdf5 -lhdf5_hl /g' configure.oa
./compile FFLAGS=-fallow-argument-mismatch FCFLAGS=-fallow-argument-mismatch
conda deactivate
conda deactivate
[/code]
I have found that installing obsgrid using miniconda works best with these changes. The commands work on ubuntu 20.04.4 but not the newest one. I'm certain it has something to do with gcc/gfortran/g++ version 11 which is standard on the new ubuntu
obsgrid.compile.txt
.