dolfinx icon indicating copy to clipboard operation
dolfinx copied to clipboard

Make PETSc an optional dependency

Open garth-wells opened this issue 2 years ago • 2 comments

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).

garth-wells avatar Nov 28 '22 09:11 garth-wells

I've also used pyamg which is good.

chrisrichardson avatar Nov 30 '22 10:11 chrisrichardson

This would be great! I have also used pypardiso which is quite good.

bhaveshshrimali avatar Jan 21 '23 16:01 bhaveshshrimali

We should bump this up in priority - some in industry have license concerns that this change would overcome.

garth-wells avatar Apr 12 '24 08:04 garth-wells

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?

chrisrichardson avatar Apr 12 '24 09:04 chrisrichardson

Not quite done, as pyproject.toml depends on PETSc4py? @garth-wells

jorgensd avatar Apr 15 '24 20:04 jorgensd

Not quite done, as pyproject.toml depends on PETSc4py? @garth-wells

Some details to work through, but can build locally without PETSc.

garth-wells avatar Apr 15 '24 20:04 garth-wells