Hello,
I am developing my own Petsc solver and I would like to try it out on nonlinear examples, done by fenics.
Is there any way to register/use own already Petsc registered solver in Fenisc?
thanks
You can assemble PETScMatrix and PETScVector in FEniCS, and get access to the direct PETSc objects with the .mat() and .vec() methods. Then you can use any PETSc solvers and options you like.
PETScMatrix
PETScVector
.mat()
.vec()
Yes, but my question was mainly, how to get my PETSc solver into PETSc version, which Fenics is using ?