Skip to content

Commit

Permalink
Saddle point distributed in work
Browse files Browse the repository at this point in the history
  • Loading branch information
niravshah241 committed Nov 14, 2024
1 parent 15db039 commit d416df5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,16 @@ def solve(self, mu):
ksp = PETSc.KSP()
ksp.create(mesh.comm)
ksp.setOperators(A)
'''
# Set GMRES solver
ksp.setType("gmres")
ksp.setGMRESRestart(100)
pc = ksp.getPC()
pc.setType("bjacobi")
'''
ksp.setType("preonly")
pc = ksp.getPC()
pc.setType("lu")
# Convergence criteria based on residual tolerance
ksp.rtol = 1.e-8
# Solve and see convergence details
Expand Down

0 comments on commit d416df5

Please sign in to comment.