dolfinx
dolfinx copied to clipboard
Make PETSc an optional dependency
If PETSc was an optional dependency we should, in principle, be able to build under Windows and in particular via conda.
We have native distributed vectors and a beta-version native parallel CSR matrix. We do not have linear solvers but can use SciPy solvers (no MPI).
I've also used pyamg which is good.
This would be great! I have also used pypardiso which is quite good.
We should bump this up in priority - some in industry have license concerns that this change would overcome.
https://github.com/FEniCS/dolfinx/tree/chris/petsc-optional is part way there. It is quite easy for C++ but will require more work for Python. Maybe we should proceed with the C++ part first?
Not quite done, as pyproject.toml depends on PETSc4py? @garth-wells
Not quite done, as pyproject.toml depends on PETSc4py? @garth-wells
Some details to work through, but can build locally without PETSc.