William.Hatheway
Active member
When building WRF Hydro Coupled following the NCAR's build guide located here:
It fails to build with intel llvm compilers.
Steps to reproduce:
Now this is what I don't understand, when I export the netcdf include and lib paths the compilation will build.
why is this?
@islas any ideas why the include and lib paths aren't being added to the cmake commands?
It fails to build with intel llvm compilers.
Steps to reproduce:
- Install the required libraries
- download the wrf-hydro 5.4 github (git clone GitHub - NCAR/wrf_hydro_nwm_public: WRF-Hydro model code)
- download WRF 4.7.1 in new folder ( git clone GitHub - wrf-model/WRF: The official repository for the Weather Research and Forecasting (WRF) model -> cd WRF -> git submodule update --init --recursive )
- remove hydro folder from wrf folder based on users guide and then copy WRF hydro src folder to new hydro folder ( rm -r
Code:
"${WRF_FOLDER}"/WRF-${WRF_VERSION}/hydro/cp -r "${WRF_FOLDER}"/Hydro-Basecode/wrf_hydro_nwm_public/src "${WRF_FOLDER}"/WRF-${WRF_VERSION}/hydro
- configure ( ./configure_new -x -p "oneAPI LLVM" -- -DWRF_CORE=ARW -DWRF_NESTING=BASIC -DWRF_CASE=EM_REAL -DUSE_MPI=ON -DUSE_PIO=ON -DENABLE_HYDRO=ON -DWRF_HYDRO_NUDGING=1 -DUSE_HDF5=${HDF5_ROOT} -DUSE_JASPER=${Jasper_ROOT} 2>&1 | tee wrf_configure_new.log)
- compile ( ./compile_new -j 2 2>&1 | tee compile.wrf1.log)
- Build will fail at fftpack5
Now this is what I don't understand, when I export the netcdf include and lib paths the compilation will build.
Code:
export FFLAGS="-I${NETCDF_ROOT}/include ${FFLAGS}"
export FCFLAGS="-I${NETCDF_ROOT}/include ${FCFLAGS}"
export LDFLAGS="-L${NETCDF_ROOT}/lib ${LDFLAGS}"
why is this?
@islas any ideas why the include and lib paths aren't being added to the cmake commands?