Installation
When you have Python 3.10 or higher installed (CPython, 64-bit),
python -m pip install pyoomph
should install the recent release. For maximum performance and system-specific information, please refer to the sections below.
If you cannot manage to install it, refer to our tutorial. If this cannot help, you can ask for help (c.diddens@utwente.nl)
On Windows
For maximum performance, also install Microsoft Build Tools, available for download here.
Verify whether everything runs fine by
python -m pyoomph check all
On Linux
If you have installed via pip (see above), just make sure that you have the gcc compiler installed and check via
python -m pyoomph check all
On Mac
If you have a recent Mac with an Apple silicon (arm64) chip, mind the following:
Python cannot install the fast MKL Pardiso solver on arm64 natively and will use Accelerate by default, which becomes unacceptably slow for larger problems. There are two workarounds, either install pyoomph in a Rosetta 2 terminal to use MKL Pardiso or install PETSc/SLEPc and use MUMPS as fast linear solver instead.
For the first option, you must run the installation command above in a
Rosetta 2 terminal, see here how to set it up (note that recent systems must be handled as described here). Also, please make sure to not upgrade yourmklpackage, i.e. enforce it to version 2021.4.0.python3 -m pip install mkl==2021.4.0
See here for further details. Also, you might have to use a less recent version of python, see here for details.
For the second option (PETSc with MUMPS), please refer to the installation instructions.
In any case, make sure to have the XCode developer tools, e.g., by installing them via
xcode-select --install
(in Rosetta2 for the first option) and test pyoomph via
python -m pyoomph check all
Compilation from source
Just clone our code
git clone https://github.com/pyoomph/pyoomph.git
INSTALL.md therein.