William.Hatheway
Member
Good morning to all WRF (Weather Research and Forecasting model) users,
As many of you might be aware, there are comprehensive tutorials and guides available for installing WRF using GNU compilers. These can be accessed at the following links:
- [NCAR WRF Online Tutorial] Compiling WRF
- [UCAR Forum: Full WRF and WPS Installation Example (GNU)] Full WRF and WPS Installation Example (GNU)
These resources provide an excellent starting point for anyone looking to install WRF with GNU compilers.
However, when it comes to using Intel Classic Compilers (applicable to versions 2023 and earlier), there are additional considerations to keep in mind. It's important to note that Intel has discontinued the Classic Compilers, transitioning instead to the LLVM-based Intel OneAPI compilers. For more detailed information about Intel's LLVM compilers, you can refer to the following resource: [Getting to Know LLVM-based Intel oneAPI Compilers] Get to Know Intel's LLVM-Based oneAPI Compilers.
For users of Intel Classic Compilers, it is essential to source the installation file for these compilers. This is typically done using the following command:
For those using Intel Classic Compilers, the following environment variables need to be set in your system:
These settings configure the Intel compilers for optimal performance and compatibility with WRF. By setting these environment variables, you ensure that the Intel compilers are correctly configured for compiling the WRF code.
Once these environment variables are set, you can proceed with the installation as outlined in the NCAR tutorials. Following these guidelines should allow for a smooth installation process using the Intel Classic Compilers.
Remember, while the Intel Classic Compilers are still viable for current installations, it's advisable to start familiarizing yourself with the LLVM-based compilers, as they represent the future direction of Intel's compiler technology.
As many of you might be aware, there are comprehensive tutorials and guides available for installing WRF using GNU compilers. These can be accessed at the following links:
- [NCAR WRF Online Tutorial] Compiling WRF
- [UCAR Forum: Full WRF and WPS Installation Example (GNU)] Full WRF and WPS Installation Example (GNU)
These resources provide an excellent starting point for anyone looking to install WRF with GNU compilers.
However, when it comes to using Intel Classic Compilers (applicable to versions 2023 and earlier), there are additional considerations to keep in mind. It's important to note that Intel has discontinued the Classic Compilers, transitioning instead to the LLVM-based Intel OneAPI compilers. For more detailed information about Intel's LLVM compilers, you can refer to the following resource: [Getting to Know LLVM-based Intel oneAPI Compilers] Get to Know Intel's LLVM-Based oneAPI Compilers.
For users of Intel Classic Compilers, it is essential to source the installation file for these compilers. This is typically done using the following command:
Bash:
# add the Intel compiler file paths to various environment variables
source /opt/intel/oneapi/setvars.sh
For those using Intel Classic Compilers, the following environment variables need to be set in your system:
Bash:
export CC=icc
export CXX=icpc
export FC=ifort
export F77=ifort
export F90=ifort
export CFLAGS="-fPIC -fPIE -O3 -diag-disable=10441"
export FFLAGS="-m64"
export FCFLAGS="-m64"
These settings configure the Intel compilers for optimal performance and compatibility with WRF. By setting these environment variables, you ensure that the Intel compilers are correctly configured for compiling the WRF code.
Once these environment variables are set, you can proceed with the installation as outlined in the NCAR tutorials. Following these guidelines should allow for a smooth installation process using the Intel Classic Compilers.
Remember, while the Intel Classic Compilers are still viable for current installations, it's advisable to start familiarizing yourself with the LLVM-based compilers, as they represent the future direction of Intel's compiler technology.