How to build WRF4
Jump to navigation
Jump to search
Getting the source code
From our fork
git clone git@github.com:openwfm/WRF.git
or from the official repository
git clone git@github.com:wrf-model/WRF.git
Use the master branch for the current release (default), or
git checkout develop
to include all developments accepted to date.
Coming soon: branch with updated fire model.
All platforms
Set up the environment as needed, then
cd WRF ./configure <pre> Use <tt>./configure -d</tt> for faster build and to enable debugging. Choose serial for your platform first to verify basic functionality. Note: Currently, the fire code will not work with choices that include <tt>sm</sm>, i.e., shared memory parallelism by OpenMP. Modify the configuration as needed, then ./compile em_fire >& compile.log
Check for errors and warnings
grep Err compile.log grep War compile.log
and test the code built with serial:
cd test cd em_fire ./ideal.exe ./wrf.exe </exe>