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

Compiling error in mesoscale-to-microscale coupling version of the WRF model (


New member
I could successfully compile the WRF-4.4 using the procedure explained in Compiling WRF, meaning that I have successfully installed all required libraries. To take advantage of several cell perturbation methods for WRF-LES implemented in the Mesoscale-to-Microscale Coupling version of the WRF model, I tried to compile the WRF model downloaded from GitHub - a2e-mmc/WRF: The A2e/MMC version of the Weather Research and Forecasting (WRF) model. However, the compilation fails due to an "undefined reference to `dgesvx_'" error (I have attached the compile.log file).

As far as I have understood, this error is caused by the fact that the BLAS and LAPACK have been used as high-performance linear algebra libraries in this version of the WRF model. So, I installed LAPACK and BLAS using sudo apt-get install libblas-dev liblapack-dev and exported the corresponding libraries using the following commands: export BLAS_LIB=/usr/lib/x86_64-linux-gnu/blas/ AND export LAPACK_LIB=/usr/lib/x86_64-linux-gnu/lapack/ However, it didn't solve the problem and I got exactly the same errors. Could someone help me with this problem?


  • compile.log
    895.2 KB · Views: 2
Hi ArminH,
I get the same problem, when i try to locate "dgesvx", i found it in /oneapi/mkl/2023.1.0/interfaces/lapack95/source/dgesvx.f90
I try to link it but it did not work.
If you have a better solution ,please tell me .
As the version of WRF you are referring to is not the one we maintain and support, our group will not be able to assist; however, hopefully someone else will see the post and have experience with it, and will be able to help you. Otherwise, I would recommend trying to contact someone who issues that version of WRF.