| |
|
Configure WRF
This step will create a configure file for your particular computer.
The code has been ported to a wide variety of popular platforms.
 |
Before you continue, ensure that your computer environment is set up corrrectly.
|
Now that you have set up your environment. Type:
./configure
You will be given a list of choices for your computer. These choices range from compiling for a single processor job, to using OpenMP shared-memory or distributed-memory parallelization options for multiple processors. Some options support nesting, others do not. So select the option carefully. For example, the choices for a Linux computer looks like this:
checking for perl5... no
checking for perl... found /usr/bin/perl (perl)
Will use NETCDF in dir: /usr/local/netcdf-pgi
PHDF5 not set in environment. Will configure WRF for use without.
$JASPERLIB or $JASPERINC not found in environment, configuring to build without grib2 I/O...
------------------------------------------------------------------------
Please select from among the following supported platforms.
1. Linux i486 i586 i686, gfortran compiler with gcc (serial)
2. Linux i486 i586 i686, gfortran compiler with gcc (smpar)
3. Linux i486 i586 i686, gfortran compiler with gcc (dmpar)
4. Linux i486 i586 i686, gfortran compiler with gcc (dm+sm)
5. Linux i486 i586 i686, g95 compiler with gcc (serial)
6. Linux i486 i586 i686, g95 compiler with gcc (dmpar)
7. Linux i486 i586 i686, PGI compiler with gcc (serial)
8. Linux i486 i586 i686, PGI compiler with gcc (smpar)
9. Linux i486 i586 i686, PGI compiler with gcc (dmpar)
10. Linux i486 i586 i686, PGI compiler with gcc (dm+sm)
11. Linux x86_64 i486 i586 i686, ifort compiler with icc (non-SGI installations) (serial)
12. Linux x86_64 i486 i586 i686, ifort compiler with icc (non-SGI installations) (smpar)
13. Linux x86_64 i486 i586 i686, ifort compiler with icc (non-SGI installations) (dmpar)
14. Linux x86_64 i486 i586 i686, ifort compiler with icc (non-SGI installations) (dm+sm)
15. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (serial)
16. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (dmpar)
Enter selection [1-16] :
 |
Never compiled WRF before?
Pick a single-threaded option, as this will reduce the number of possible problems you run into. Once you are proficient in compiling and running WRF, you can re-configure WRF for a more complicated environment.
NCAR
- IBM Users
Please see NCAR - IBM options.
For 2D idealized cases
Always pick a single threaded, no-nesting option
|
| |
|
 |
serial : single processor
smpar : shared memory option (OpenMP)
dmpar : distributed memory option (MPI)
dm+sm : Distributed Memory with Shared Memory (for example, MPI across nodes with OpenMP within a node) - usually better performance is through dmpar only
|
Once you have made this choice, you will be asked to choose the type of nesting run you are interested in:
Compile for nesting? (0=no nesting, 1=basic, 2=preset moves, 3=vortex following) [default 0]:
 |
The most common option is "basic" (1)
3 is mainly used for moving nests following a hurricane vortex.
|
The above will create a configure.wrf file. Edit compile options/paths in this file, if necessary.
 |
After typing ./configure, no options are listed OR the options are not for your platform
This will happen if the code has not been ported to your platform.
You will need to add compilation options for your computer.
(NOTE - this should be for advanced users) |
Compiling for Real Data Cases  |
Compiling for Idealized Data Cases  |
|