Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing WPS

Procedure

  1. Decompress the WPS installation package.
    tar -zxvf WPS-3.9.tar.gz
  2. Switch to the WPS source code directory.
    cd WPS-3.9
  3. Configure the pre-compilation environment.
    export WRFIO_NCD_LARGE_FILE_SUPPORT=1
    export NETCDF=/path/to/install/NETCDF
    export HDF5=/path/to/install/HDF5
    export PNETCDF=/path/to/install/PNETCDF
    export CPPFLAGS="-I$HDF5/include -I$PNETCDF/include -I$NETCDF/include"
    export LDFLAGS="-L$HDF5/lib -L$PNETCDF/lib -L$NETCDF/lib -lnetcdf -lnetcdff -lpnetcdf -lhdf5_hl -lhdf5 -lz"
    unset MPI MPI_DIR MPI_INC
    export WRF_DIR=/path/to/install/WRF
  1. Modify the arch/configure.defaults file.
    vi arch/configure.defaults

    Modify lines 128 to 136. See the red lines for the modification.

  1. Perform the compilation.
    echo 3 | ./configure
  1. Modify the configure.wps file.
    vi configure.wps

    Change WRF_DIR to the WRF path and add -lomp to the end of WRF_LIB.

  1. Perform the compilation.
    ./compile

    The following information is displayed. After the compilation is successful, three .exe executable files are generated in the current directory.