This repository provides a Spack package for PFLARE (https://github.com/PFLAREProject/PFLARE), including optional support for Python bindings via Cython and PETSc4Py.
Usage:
-
Clone this repo
-
Add this repo to Spack:
spack repo add PFLARE_spack
-
Install PFLARE:
spack install pflare
PFLARE depends on PETSc, so the build configuration will follow the PETSc options you choose. For example, to build a static version of PETSc (and hence PFLARE), set the shared library variant for PETSc to false:
spack install pflare ^petsc~shared
or for example, to build PETSc (and hence PFLARE) with 64 bit integers:
spack install pflare ^petsc+int64
-
After installation, you can set up your environment (e.g.,
LD_LIBRARY_PATH, etc.) using:spack load pflare
-
To build PFLARE with Python bindings (via Cython and PETSc4Py):
spack install pflare+python
or the test flag can be added to check that the Python bindings are built during the install:
spack install --test=root pflare+python
-
After installation, you can set up your environment (including
PYTHONPATH) using:spack load pflare+python