Installing WPS V4.4, WRF V4.4.2


WRF was installed on a server by following the instructions here: https://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php.

First, the LIBRARIES:

Older versions of netcdcf mentioned on that website were available to download from the netcdf github site:
– netcdf-c-4.7.2.tar.gz
– netcdf-fortran-4.5.2.tar.gz

netcdf-fortran needed:
LDFLAGS=-L/home/conor/LIBRARIES/netcdf/lib
CPPFLAGS=-I/home/conor/LIBRARIES/netcdf/include
export FCFLAGS=”-w -fallow-argument-mismatch -O2″
export FFLAGS=”-w -fallow-argument-mismatch -O2″

mpich-3.0.4 caused an error: multiple definition of `HYD_pmcd_pmip’. So I tried:
mpich-3.1.4.tar.gz, which also recorded some errors, but at least make completed.

I followed the library checks with the Fortran_C_NETCDF_MPI_tests.tar code in /home/conor/GITWRF/TESTS:

Test #1 needed the gfortran command to be typed out:
gfortran -L/home/conor/LIBRARIES/netcdf/lib 01_fortran+c+netcdf_f.o 01_fortran+c+netcdf_c.o -lnetcdff -lnetcdf

Test #2 also needed commands typed out:
~/LIBRARIES/mpich/bin/mpif90 -c 02_fortran+c+netcdf+mpi_f.f
~/LIBRARIES/mpich/bin/mpicc -c 02_fortran+c+netcdf+mpi_c.c
~/LIBRARIES/mpich/bin/mpif90 -L/home/conor/LIBRARIES/netcdf/lib 02_fortran+c+netcdf+mpi_f.o 02_fortran+c+netcdf+mpi_c.o -lnetcdff -lnetcdf
~/LIBRARIES/mpich/bin/mpirun ./a.out

Then I downloaded WRF and WPS from GitHub and set the environment:

export DIR="/home/conor/LIBRARIES"
export CC="gcc"
export CXX="g++"
export FC="gfortran"
export FCFLAGS="-m64"
export F77="gfortran"
export FFLAGS="-m64"
export PATH="$DIR/netcdf/bin:$PATH"
export NETCDF="$DIR/netcdf"
export PATH="$DIR/mpich/bin:$PATH"
export LDFLAGS="-L$DIR/grib2/lib"
export CPPFLAGS="-I$DIR/grib2/include"
export JASPERLIB="$DIR/grib2/lib"
export JASPERINC="$DIR/grib2/include"
export LD_LIBRARY_PATH=/home/conor/LIBRARIES/grib2/lib

The WRF configure and compile worked, and produced the four .exe files in main

The WPS configure and compile also worked, producing the three .exe files.