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 pybind11
. Note that all solvers may be disabled as long as
the NEKTAR_BUILD_SOLVERS
option is set.
Users of Homebrew should make sure their installation is up-to-date with brew upgrade
.
Then run
1brew install python
To install the NumPy package, use the pip
package manager:
1pip install numpy
Users of MacPorts should sure their installation is up-to-date with sudo port selfupdate &&
sudo port upgrade outdated
. Then run
1sudo port install python310 py310-numpy 2sudo port select --set python python310
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 libpython-dev python-numpyx
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