This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Usage of own Petsc solver

0 votes

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

asked Nov 5, 2015 by alena FEniCS Novice (320 points)

1 Answer

0 votes

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.

answered Nov 5, 2015 by chris_richardson FEniCS Expert (31,740 points)

Yes, but my question was mainly, how to get my PETSc solver into PETSc version, which Fenics is using ?

...