User Tools

Site Tools


compilingwrfchemfish

Compiling WRF-Chem on Fish

There are subtle differences between compiling WRF-Chem on the Pacman cluster and Fish cluster. Although you may use either PGI or Cray's compiler, I find that the PGI compiler runs about 4 times as fast. WRF-Chem takes about an hour to compile on Fish with PGI, as compared to 4.5 hours with the Cray Compiler. (This is due to optimizations which are automatically called with the Cray compiler, and should be considered if you want to speed up your runs.)

E-mail Sean Egan (sdegan@alaska.edu) with questions.

Steps for Compiling

Make sure you have a WRF folder which contains the chemistry folder as a sub-directory. These can be downloaded form the WRF ARW site.

  • export NETCDF=/opt/cray/netcdf-hdf5parallel/4.1.3/pgi/109
  • export JASPERLIB=/usr/local/lib
  • export JASPERINC=/usr/local/include
  • 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
  • module load hdf5-parallel/1.8.7
  • module load netcdf-hdf5parallel/4.1.3
  • Run the configure script (./configure in the WRF main directory)
  • Select the Cray PGI Compiler with GCC option (dmpar) (Should be near the bottom)
  • Make sure that the last 4 lines of output confirm that the compiler and NetCDF are 64 bit.
  • If using modified code, make sure your new modules and registry files are placed in the correct directories.
  • Compile the program (./compile em_real >& compile.log &)
  • Follow the compilation if you want with tail -f compile.log, or alternatively go to West Ridge Cafe for tea/lunch.
  • In about an hour the Fish login node will have finished will have finished the compilation. Now compile the emissions driver. (./compile emi_conv >& compile.emi.log &)
  • You are done and ready to run WRF-Chem
compilingwrfchemfish.txt · Last modified: 2012/10/18 16:21 by sean