Skip to content

Intergrating a user-designed linear solver #3036

Answered by roystgnr
rebpoli asked this question in Q&A
Discussion options

You must be logged in to vote

Agreed with John that subclassing LinearSolver may be the best way to start for you. After you have things working for linear problems, you could try using your LinearSolver within a libMesh::NewtonSolver and attaching that to your NonlinearImplicitSystem, then giving your custom LinearSolver to it. That'll at least see how things perform with your linear solver wrapped in a quasi-Newton + line search outer solver. I'm not sure how best to connect a custom linear solver to the more sophisticated nonlinear solvers in PETSc SNES, though.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rebpoli
Comment options

Comment options

You must be logged in to vote
1 reply
@rebpoli
Comment options

Answer selected by rebpoli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants