Difference between revisions of "Installing WRF-GC"
From atmoschem
Linhaipeng (Talk | contribs) (→System Requirements) |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | = System Requirements = | |
− | WRF-GC requires a set of compilers | + | WRF-GC requires a set of compilers and libraries that are compatible with the WRF model and the GEOS-Chem High Performance model. |
Recommended system setup (as tested): | Recommended system setup (as tested): | ||
− | + | * Compiler: [https://software.intel.com/en-us/intel-compilers Intel 15]. There is limited support for the PGI and gfortran compilers. | |
− | + | * [http://mvapich.cse.ohio-state.edu/downloads/ MPI Library: MVAPich2 Version 2.3] | |
− | + | * [http://www.zlib.net/ zlib] | |
− | + | * [https://support.hdfgroup.org/HDF5/release/obtainsrc518.html HDF5 1.8] | |
− | + | * [https://www.unidata.ucar.edu/downloads/netcdf/index.jsp NetCDF-C 4.6.1] | |
− | + | * NetCDF-Fortran 4.4.4 | |
− | + | * [https://www.ece.uvic.ca/~frodo/jasper/#download JasPer 1.900.29] | |
− | It is recommended | + | It is recommended that you install all libraries in the same location (using the --prefix=/your/directory/here when calling the configure script). |
− | + | For WRF to correctly find those libraries, you need to set the HDF5 & NETCDF environmental variables to point to the directory (which includes the bin, lib, include directories) where those libraries are installed. | |
− | + | For example, if you have used /your/directory/here below, you should be able to see bin, lib and include directories under this directory and point the necessary environmental variables to them: | |
− | + | $ ls /your/directory/here | |
+ | bin lib share include | ||
− | + | $ export HDF5="/your/directory/here" | |
+ | $ export NETCDF=$HDF5 | ||
− | + | You are also recommended to review the [http://wiki.seas.harvard.edu/geos-chem/index.php/Installing_libraries_for_GEOS-Chem GEOS-Chem library installation] guide. | |
− | + | = Installing WRF-GC = | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | After obtaining the WRF and WRF-GC code in the [[Downloading WRF-GC]] step, you will need to set up the compile environment as follows: | |
− | + | ||
− | + | ||
− | + | * Set the environmental variables WRF_EM_CORE = 1, WRF_NMM_CORE = 0, and WRF_CHEM = 1 in your shell. | |
− | + | * Configure WRF using the hybrid sigma-eta grid option using the configure script, setting the distributed-memory parallel (dmpar) version of WRF with the Intel C and Fortran compilers. There is limited support for PGI and gfortran compilers, but they are not recommended for this alpha build. | |
− | + | * After configuration please navigate to the WRF-GC "chem" directory, and issue the following command: make install_registry. '''This step is critical and must be done manually before compilation.''' | |
− | + | * Compile WRF-GC using the ./compile em_real command. | |
+ | |||
+ | We recommend that you review the [http://www2.mmm.ucar.edu/wrf/users/docs/user_guide_V3.9/users_guide_chap1.htm WRF User's Guide (v3.9)] for additional installation information. |
Latest revision as of 08:28, 4 January 2019
System Requirements
WRF-GC requires a set of compilers and libraries that are compatible with the WRF model and the GEOS-Chem High Performance model.
Recommended system setup (as tested):
- Compiler: Intel 15. There is limited support for the PGI and gfortran compilers.
- NetCDF-Fortran 4.4.4
It is recommended that you install all libraries in the same location (using the --prefix=/your/directory/here when calling the configure script).
For WRF to correctly find those libraries, you need to set the HDF5 & NETCDF environmental variables to point to the directory (which includes the bin, lib, include directories) where those libraries are installed.
For example, if you have used /your/directory/here below, you should be able to see bin, lib and include directories under this directory and point the necessary environmental variables to them:
$ ls /your/directory/here bin lib share include
$ export HDF5="/your/directory/here" $ export NETCDF=$HDF5
You are also recommended to review the GEOS-Chem library installation guide.
Installing WRF-GC
After obtaining the WRF and WRF-GC code in the Downloading WRF-GC step, you will need to set up the compile environment as follows:
- Set the environmental variables WRF_EM_CORE = 1, WRF_NMM_CORE = 0, and WRF_CHEM = 1 in your shell.
- Configure WRF using the hybrid sigma-eta grid option using the configure script, setting the distributed-memory parallel (dmpar) version of WRF with the Intel C and Fortran compilers. There is limited support for PGI and gfortran compilers, but they are not recommended for this alpha build.
- After configuration please navigate to the WRF-GC "chem" directory, and issue the following command: make install_registry. This step is critical and must be done manually before compilation.
- Compile WRF-GC using the ./compile em_real command.
We recommend that you review the WRF User's Guide (v3.9) for additional installation information.
- This page was last modified on 4 January 2019, at 08:28.
- This page has been accessed 6,134 times.