# WRF info ###### tags: `WRF` ## WRF_ISC21 ``` git clone https://github.com/wrf-model/WRF WRF_ISC21 cd WRF_ISC21 git checkout tags/ISC21 -b ISC21-branch ``` ## env setup have to include: ``` module purge //unload all modules and set to original state module load intel/2019u4 module load openmpi/4.0.1 module load hdf5/1.10.5 module load netcdf/4.6.3 module load intelpython3/2019u5 module load udunits/2.2.26 module load ncview/2.1.7 module save ``` ## opempi ``` cd /WRF_Build_Test/src/openmpi-3.1.4 ./configure --prefix=/openmpi make make install Setting up the environemnt for compiler // add the following to bashrc export PATH=$PATH:$HOME/dependencies/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/dependencies/lib ``` ## HDF5 ``` cd /WRF_Build_Test/src/hdf5-1.8.17 ./configure --prefix=/WRF_Build_Test/LIBRARIES/ make make install ``` ## netcdf ``` ENV LD_LIBRARY_PATH=/WRF_Build_Test/LIBRARIES/lib ENV LDFLAGS=-L/WRF_Build_Test/LIBRARIES/lib ENV CPPFLAGS=-I/WRF_Build_Test/LIBRARIES/include RUN cd /WRF_Build_Test/src/netcdf-c-4.7.3 yum -y install curl ./configure --prefix=/WRF_Build_Test/LIBRARIES/ --disable-dap make make install cd /WRF_Build_Test/src/netcdf-fortran-4.5.2 ./configure --prefix=/WRF_Build_Test/LIBRARIES/ make make install ``` ## Notes: 1. to check the archtechture: ``` uname -a ``` 2.check ompi_info to see if the compiler is correctly installed ```ompi_info ``` if this did not work out, the paths might be off so go and check bashrc or source bashrc