User Tools

Site Tools


compilingwrfchempacman

Installing WRF-Chem on UAF Geophysical Institute's Pacman Cluster

Introduction

Installing WRF-Chem is a bit different from an installation of WRF by its self. I have found, through trial and error, that if you compile WRF, enter the WRF directory, execute the “clean -a” command, download WRF-Chem and attempt to compile it, the compiler will fail. If you already have WRF installed, do not attempt to do this. Re-download WRF, and the WRF-Chem package, and start from there. Otherwise you might run into problems.

The step by step instructions below assume that you have already created a directory for this WRF-Chem copy, and already downloaded the WRF and WRF-Chem tar.gz files.

The entire compiling process takes about 30-45 minutes if you are compiling on one of Pacman's Login Nodes.

Step by step installation for WRF-Chem

  1. Set the following environmental variables (Consider entering them into your $HOME/.bashrc or .profile)
    • export WRFIO_NCD_LARGE_FILE_SUPPORT=1
    • export WRF_EM_CORE=1
    • export WRF_NMM_CORE=0
    • export WRF_CHEM=1
    • export WRF_KPP=0
  2. You will need to run the following module commands (for Pacman only):
    • module purge
    • module load PrgEnv-pgi/13.4
    • module load hdf5/1.8.9.pgi-13.4
    • module load netcdf/4.3.0.pgi-13.4
    • module load gcc/4.7.3
  3. Extract the WRF-Volc tar.gz file.
  4. Enter the new directory.
  5. If not using our WRF-Volc code, extract the Chem tar.gz file into this new WRF directory. Skip this if you are using the modified WRF-Volc code, since it already contains the chemistry files.
  6. Run ./configure
  7. Select Linux x86_64, PGI compiler with gcc (dmpar)
  8. Select your nesting options (usually 1)
  9. Run vi configure.wrf
  10. Make sure that the configure.wrf file has the following settings
    • DM_FC = mpif90
    • DM_CC = mpicc -DMPI2_SUPPORT
  11. Save the file and exit
  12. Compile the program with ./compile em_real > compile.log 2>&1 &
  13. You can follow the compiling process by executing tail -f compile.log
  14. After the compilation of em_real is finished, you still need to compile the emissions driver.
  15. ./compile emi_conv >& compile.emiss.log

Check the log files by searching for the “Error” string. This string will not appear if the compile script finished without errors.

compilingwrfchempacman.txt · Last modified: 2016/02/18 14:27 by sean