Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Intel +

...

Open MPI

To install WRF with Intel compilers, the following modules need to be pre-loaded:

Code Block
languagebash
titlemodules
[usbk@at1-11 WPS-master]$ module$>module load prgenv/intel netcdf4 openmpi jasper
$>module list

Currently Loaded Modules:
  1) intel/19.1.2   2) prgenv/intel   3) netcdf4/4.7.4   4) openmpi/4.0.5.2   5) jasper/2.0.14

WRF needs to be pointed to NETCDF location manually:

Code Block
languagebash
export NETCDF=$NETCDF_DIR

In general, on ATOS we use -rpath option to link shared libraries. However, this is difficult to use with WRF because of the installation scripts structure which use NETCDF variable to link to NetCDF libraries. Consequently, in running script we need to export NetCDF library path:

Code Block
languagebash
titleWRF running script
module load netcdf4
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$NETCDF4_DIR/lib


CSH is not installed on TEMS. To execute CSH scripts one can use locally installed tcsh:

...

Code Block
languagebash
titleconfigure
#$FC ${FFLAGS} fort_netcdf.f -o fort_netcdf -L${NETCDF}/lib $NETCDFF -lnetcdf > /dev/null 2>&1
 $FC ${FFLAGS} fort_netcdf.f -o fort_netcdf $NETCDF4_LIB > /dev/null 2>&1



After ./configure step, configure.wps has to be edited as well:

Code Block
languagebash
#                       -I$(NETCDF)/include
                        $(NETCDF4_INCLUDE)

#                       -L$(NETCDF)/lib -lnetcdff -lnetcdf
                        $(NETCDF4_LIB)

After ./configure step, configure.wps has to be edited as well:

Code Block
languagebash


#COMPRESSION_LIBS    = -L/glade/u/home/wrfhelp/UNGRIB_LIBRARIES/lib -ljasper -lpng -lz
#COMPRESSION_INC     = -I/glade/u/home/wrfhelp/UNGRIB_LIBRARIES/include

COMPRESSION_LIBS    = $(JASPER_LIB) \
                      -L/usr/lib64 -lpng -lz
COMPRESSION_INC     = $(JASPER_INCLUDE) \
                      -I/usr/include



Intel +

...

Intel MPI

There are only a few differences in the compilation process with Intep MPI:

  • The following modules need to be loaded before compilation:
Code Block
languagebash
titlemodules
[usbk@at1-11 WPS-master_intelmpi]$ module $>module list

Currently Loaded Modules:
  1) intel/19.1.2   2) prgenv/intel   3) netcdf4/4.7.4   4) jasper/2.0.14   5) intel-mpi/19.1.2

...


  • In configure.wrf and configure.wps make the following settings:
Code Block
languagebash
titleconfigure.wps
SFC                 = ifort
SCC                 = icc
DM_FC               = mpiifort
DM_CC               = mpiicc

Everything else is identical to compilation with Open MPI.