Skip to content

Commit 4341140

Browse files
committed
Cleanup
1 parent e1daada commit 4341140

3 files changed

Lines changed: 181 additions & 235 deletions

File tree

demos/goal_based_adaptivity_bvp/goal_based_adaptivity_bvp.py.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ and :math:`p+1`), and gives a provably efficient and reliable error estimator un
7171
It is possible to employ cheaper and more practical approximations by setting the parameters for the :code:`GoalAdaptiveNonlinearVariationalSolver`
7272
appropriately, as discussed below. ::
7373

74-
dwr_parameters = {
74+
goal_adaptive_options = {
7575
"max_iterations": 100,
7676
"use_adjoint_residual": True,
7777
"dual_low_method": "solve",
@@ -88,9 +88,9 @@ the DWR automation can compute effectivity indices, but this is not generally re
8888
tolerance = 1e-4
8989
problem = NonlinearVariationalProblem(F, u, bcs)
9090

91-
adaptive_solver = GoalAdaptiveNonlinearVariationalSolver(problem, J, tolerance, dwr_parameters,
92-
exact_solution=u_exact,
93-
primal_solver_parameters=solver_parameters)
91+
adaptive_solver = GoalAdaptiveNonlinearVariationalSolver(problem, J, tolerance, goal_adaptive_options,
92+
primal_solver_parameters=solver_parameters,
93+
exact_solution=u_exact)
9494
adaptive_solver.solve()
9595

9696
The initial error in the goal functional is :math:`-3.5 \times 10^{-2}`. The solver terminates with the goal functional computed to :math:`10^{-4}` after 4 refinements. Each nonlinear solve only required one Newton iteration. The error estimates :math:`\eta` are very accurate: their effectivity indices

0 commit comments

Comments
 (0)