Skip to content

Commit

Permalink
Change fine KSP to smoothing only
Browse files Browse the repository at this point in the history
  • Loading branch information
papel authored and papel committed May 25, 2024
1 parent 930bcde commit 829c67a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/demo/demo_twogrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def variational_problem(V):
a_coarse, L_coarse = variational_problem(V_coarse)
a_fine, L_fine = variational_problem(V_fine)

problem_fine = LinearProblem(a_fine, L_fine, bcs=[bc_fine], petsc_options={"ksp_type": "preonly", "pc_type": "lu"})
problem_fine = LinearProblem(a_fine, L_fine, bcs=[bc_fine], petsc_options= {"ksp_type": "chebyshev", "pc_type": "none", "ksp_max_it": 10, "ksp_monitor": ""})
u_fine = problem_fine.solve()

with io.XDMFFile(comm, "out_twogrid/fine.xdmf", "w") as file:
Expand Down

0 comments on commit 829c67a

Please sign in to comment.