You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: demos/adaptive_multigrid/adaptive_multigrid.py.rst
+7-20Lines changed: 7 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ Our approach strongly follows the similar problem in this `lecture course <https
64
64
return uh
65
65
66
66
Note the code after the construction of the :class:`.NonlinearVariationalProblem`. To use the :class:`.AdaptiveMeshHierarchy` with the existing Firedrake solver, we have to set the :class:`.AdaptiveTransferManager` as the transfer manager of the multigrid solver.
67
-
For the parameters of the multigrid solver, we will be using patch relaxation, which we define with ::
67
+
Since we are using linear CG elements, we will employ Jacobi as the multigrid relaxation, which we define with ::
68
68
69
69
solver_params = {
70
70
"mat_type": "matfree",
@@ -73,30 +73,17 @@ For the parameters of the multigrid solver, we will be using patch relaxation, w
0 commit comments