Installation¶
Prerequisites¶
multiphenicsx has a few build dependencies that must be installed manually. Follow the appropriate instructions below based on how dolfinx was installed.
If dolfinx was installed via conda¶
conda install -c conda-forge nanobind scikit-build-core
If dolfinx was installed via apt¶
apt install python3-nanobind python3-scikit-build-core
If dolfinx was installed via Docker or built from source¶
python3 -m pip install nanobind scikit-build-core[pyproject]
Installation¶
multiphenicsx is available on PyPI. Use pip extras to install additional dependencies needed for the tutorials.
python3 -m pip install --no-build-isolation 'multiphenicsx[tutorials]'
Running tutorials¶
To run the tutorials, first clone the multiphenicsx repository. Then, ensure you check out the tag that corresponds to the version of multiphenicsx currently installed.
git clone https://github.com/multiphenics/multiphenicsx.git
cd multiphenicsx
MULTIPHENICSX_VERSION=$(python3 -c "import multiphenicsx; print(multiphenicsx.__version__)")
git checkout ${MULTIPHENICSX_VERSION}