19.1 Compiling and installing Nektar++

Nektar++ should be compiled as per the user guide instructions and installed into a directory which we will refer to as $NEKDIR. By default this is the dist directory inside the Nektar++ build directory.

Note that Nektar++ must, at a minimum, be compiled with NEKTAR_BUILD_LIBRARY, NEKTAR_BUILD_UTILITIES , NEKTAR_BUILD_SOLVERS and NEKTAR_BUILD_PYTHON. This will automatically download and install Boost.NumPy if required. Note that all solvers may be disabled as long as the NEKTAR_BUILD_SOLVERS option is set.

19.1.1 macOS

Homebrew

Users of Homebrew should make sure their installation is up-to-date with brew upgrade. Then run

1brew install python boost-python

To install the NumPy package, use the pip package manager:

1pip install numpy

MacPorts

Users of MacPorts should sure their installation is up-to-date with sudo port selfupdate && sudo port upgrade outdated. Then run

1sudo port install python27 py27-numpy 
2sudo port select --set python python27

19.1.2 Linux: Ubuntu/Debian

Users of Debian and Ubuntu Linux systems should sure their installation is up-to-date with sudo apt-get update && sudo apt-get upgrade

1sudo apt-get install libboost-python-dev python-numpy

19.1.3 Compiling the wrappers

Run the following command in $NEKDIR/build directory to install the Python package for the current user:

1make nekpy-install-user

Alternatively, the following command can be used to install the package for all users:

1make nekpy-install-system