Difference between revisions of "Running WRF-SFIRE with real data in the WRFx system"

From openwfm
Jump to navigation Jump to search
Line 23: Line 23:
  
 
===Installation===
 
===Installation===
 +
'''Clone github repository'''
 
  git clone https://github.com/openwfm/wrf-fire
 
  git clone https://github.com/openwfm/wrf-fire
 +
 +
'''Configure WRF-SFIRE'''
 
  cd wrf-fire/wrfv2_fire
 
  cd wrf-fire/wrfv2_fire
 
  ./configure
 
  ./configure
Line 29: Line 32:
 
Options 7 (intel dmpar) and 1 (simple nesting) if available
 
Options 7 (intel dmpar) and 1 (simple nesting) if available
  
 +
'''Compile WRF-SFIRE'''
 +
Compile em_real
 
  ./compile em_real >& compile_em_real.log &  
 
  ./compile em_real >& compile_em_real.log &  
 
  grep Error compile_em_real.log
 
  grep Error compile_em_real.log
 
+
If any compilation error, compile em_fire
If fails: ./clean -a, ./configure, add -nostdinc in CPP flag, and repeat compilation
 
 
  ./compile em_fire >& compile_em_fire.log &  
 
  ./compile em_fire >& compile_em_fire.log &  
 
  grep Error compile_em_fire.log
 
  grep Error compile_em_fire.log
 +
 +
If any of the previous step fails:
 +
./clean -a
 +
./configure
 +
Add -nostdinc in CPP flag, and repeat compilation
 +
 +
If this does not solve compilation, look for issues in your environment.
 +
 +
'''Configure WPS'''
 
  cd ../WPS
 
  cd ../WPS
 
  ./configure
 
  ./configure

Revision as of 17:51, 16 March 2020

WRF-SFIRE

Requirements

  • General requirements:
    • C-shell
    • Traditional UNIX utilities: zip, tar, make, etc.
  • WRF-SFIRE requirements:
    • Fortran and C compilers (Intel recomended)
    • MPI libraries (same compiler)
    • NetCDF libraries (same compiler)
  • WPS requirements:
    • zlib compression library (zlib)
    • PNG reference library (libpng)
    • JasPer compression library

See also https://www2.mmm.ucar.edu/wrf/users/prepare_for_compilation.html.

Set environtment

setenv NETCDF /where-netcdf-is
setenv JASPERLIB /where-jasper-lib-is
setenv JASPERINC /where-jasper-include-is
setenv WRFIO_NCD_LARGE_FILE_SUPPORT 1

Installation

Clone github repository

git clone https://github.com/openwfm/wrf-fire

Configure WRF-SFIRE

cd wrf-fire/wrfv2_fire
./configure

Options 7 (intel dmpar) and 1 (simple nesting) if available

Compile WRF-SFIRE Compile em_real

./compile em_real >& compile_em_real.log & 
grep Error compile_em_real.log

If any compilation error, compile em_fire

./compile em_fire >& compile_em_fire.log & 
grep Error compile_em_fire.log

If any of the previous step fails:

./clean -a
./configure

Add -nostdinc in CPP flag, and repeat compilation

If this does not solve compilation, look for issues in your environment.

Configure WPS

cd ../WPS
./configure

Option 2 (serial) if available

./compile >& compile_wps.log &
ls -l *.exe

It should contain geogrid.exe, metgrid.exe, and ungrib.exe.