Open PetrKryslUCSD opened 2 weeks ago
I assume you are using an Apple M-processor machine, right? Yes, this is indeed a problem we currently have.
A rundown of the issue: Through GridapPETSc, we provide an interface to PETSc. This is quite handy, since we can use their solvers with ours, and combine them in any way we want. Modularity is quite key.
The package actually does not depend on PETSc at all, but we do import it for a single reason: We provide a couple extensions for specialized solvers. In particular, we provide a linear elasticity solver which creates the NullSpace object PETSc needs to be efficient.
So we require GridapPETSc to be compiled, which requires PETSc to be linked. There are two ways you can link PETSc to Julia, which are explained in GridapPETSc's README:
PETSc_jll
(see this issue), and the old version of the binaries are not available for Apple M1 and above. I am following closely the new releases of PETSc_jll, and we hope to resolve this issue soon.I am aware I am not providing a solution here. I'm afraid the TLDR is that for the moment we do not fully support Apple laptops, but this is a problem coming from down the line (not the package itself). That said, if you do not use PETSc the library should work just fine. Any of our solvers is built in pure Julia, and you should be able to run them. Just ignore the build error. Alternatively, use a linux machine.
No worries, I will use a Linux workstation to test the package.