Skip to content

Commit 5e095f2

Browse files
docs: update advanced.md
1 parent cbfeb2f commit 5e095f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/tutorials/advanced.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ For more information on the preconditioner interface, see the
281281
To cut down the of Jacobian building overhead, we can choose to exploit the sparsity pattern and deploy matrix coloring during Jacobian construction. With NonlinearSolve.jl, we can simply use `autodiff=AutoSparseForwardDiff()` to automatically exploit the sparsity pattern of Jacobian matrices:
282282

283283
```@example ill_conditioned_nlprob
284-
@benchmark solve(prob_brusselator_2d,
284+
@btime solve(prob_brusselator_2d,
285285
NewtonRaphson(linsolve = KrylovJL_GMRES(), precs = incompletelu, concrete_jac = true,
286286
autodiff = AutoSparseForwardDiff()));
287287
nothing # hide
@@ -295,7 +295,7 @@ colorvec = ArrayInterface.matrix_colors(jac_sparsity)
295295
ff = NonlinearFunction(brusselator_2d_loop; jac_prototype = float.(jac_sparsity), colorvec)
296296
prob_brusselator_2d_sparse = NonlinearProblem(ff, u0, p)
297297
298-
@benchmark solve(prob_brusselator_2d_sparse,
298+
@btime solve(prob_brusselator_2d_sparse,
299299
NewtonRaphson(linsolve = KrylovJL_GMRES(), precs = incompletelu, concrete_jac = true,
300300
autodiff = AutoSparseForwardDiff()));
301301
nothing # hide

0 commit comments

Comments
 (0)