Installing WRF on CentOS 7
Posted on April 23, 2015 by xiaodcblog
WRF (Weather Research and Forecast) is a powerful numerical simulation tool in atmospheric science. It is maintained by UCAR, and in continuous development. There has been a lot of official (ARW user guide)/ unofficial installation guide, but not so much information for CentOS 7 system. There are some minor differences in CentOS 7 that we have to configure manually. This, however, is pretty straightforward if you are familiar with Linux. Here I will show how to set up the basic dependencies, and how to compile WRF, as well as the related WPS and RIP4. Also here I will give out the steps for GNU compiler installation and Intel compiler installation.0. My system
It is running CentOS 7, and basically it is after a fresh install, which is described in my other post.
To make the Intel version live in my system happily with GNU version, I install those libs/tools that were compiled by Intel compiler at /usr/intel, while those from GNU compiler at /usr/gnu. You will need root privilege to create these 2 directories.
Intel version
1. Install Intel compiler
There are already a lot of tutorials out there, and I found it good to accept the Intel’s default setting. By default, the software will be in /opt/intel directory. To make icc and ifort available, we need to have our shell read several environment variables setting scripts. I added the following lines to my ~/.bashrc file. Note if you are using csh or tcsh, the files will be a little bit different, and you can find them in these directories.
1
2
3
4
source /opt/intel/vtune_amplifier_xe_2015/amplxe-vars.sh quiet
source /opt/intel/inspector_xe_2015/inspxe-vars.sh quiet
source /opt/intel/advisor_xe_2015/advixe-vars.sh quiet
source /opt/intel/bin/compilervars.sh intel64
2. Solve dependencies
2.1 NetCDF