jax-fem
jax-fem copied to clipboard
PETSc solver not working with JAX transforms
- Currently, the solver [when using petsc] cannot be combined with any of Jax's transforms
- This prevents vmapping and higher order derivatives
- Solution:
- Wrap petsc with Lineax or
- Wrap it a pure-callback + custom-jvp