Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

WRF Hydro Coupled fails to build without specific paths added

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:

  1. Install the required libraries
  2. download the wrf-hydro 5.4 github (git clone GitHub - NCAR/wrf_hydro_nwm_public: WRF-Hydro model code)
  3. 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 )
  4. 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
  5. 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)
  6. compile ( ./compile_new -j 2 2>&1 | tee compile.wrf1.log)
  7. 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?
 
Yes. The hydro/ folder is also designed to be able to build without replacing it with the hydro repo's own, so it should be standalone
That's from @islas and according to the hydro people the hydro folder that's in WRF's tar file is built and maintained by the WRF staff not them. So i'm confused who to ask my questions to.
I just want to make sure i am asking in the proper forum
 
Top