Skip to content

Commit 40f37f6

Browse files
committed
fix: pass in our AD
1 parent 6bc46f5 commit 40f37f6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

benchmarks/NonlinearProblem/bruss_krylov.jmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ solvers_scaling_jacobian_free = [
162162

163163
(; pkg = :wrapper, name = "Newton Krylov [Sundials]", alg = KINSOL(; linear_solver = :GMRES)),
164164

165-
(; pkg = :wrapper, name = "Newton Krylov [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", snes_mf = true)),
166-
(; pkg = :wrapper, name = "Newton Krylov (ILU) [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", pc_type = "ilu")),
167-
(; pkg = :wrapper, name = "Newton Krylov (AMG) [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", pc_type = "gamg")),
168-
(; pkg = :wrapper, name = "Newton Krylov (AMG Jacobi) [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", pc_type = "gamg", mg_levels_ksp_type = "richardson", mg_levels_pc_type = "jacobi")),
165+
(; pkg = :wrapper, name = "Newton Krylov [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", snes_mf = true, autodiff=nothing)),
166+
(; pkg = :wrapper, name = "Newton Krylov (ILU) [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", pc_type = "ilu", autodiff=nothing)),
167+
(; pkg = :wrapper, name = "Newton Krylov (AMG) [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", pc_type = "gamg", autodiff=nothing)),
168+
(; pkg = :wrapper, name = "Newton Krylov (AMG Jacobi) [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", pc_type = "gamg", mg_levels_ksp_type = "richardson", mg_levels_pc_type = "jacobi", autodiff=nothing)),
169169
(; pkg = :wrapper, name = "TR Krylov (Not Matrix Free) [PETSc]", alg = PETScSNES(; snes_type = "newtontr", ksp_type = "gmres")),
170170
# (; pkg = :wrapper, name = "TR Krylov (ILU) [PETSc]", alg = PETScSNES(; snes_type = "newtontr", ksp_type = "gmres", pc_type = "ilu")),
171171
# (; pkg = :wrapper, name = "TR Krylov (AMG) [PETSc]", alg = PETScSNES(; snes_type = "newtontr", ksp_type = "gmres", pc_type = "gamg")),
@@ -197,12 +197,12 @@ for (j, solver) in enumerate(solvers_scaling_jacobian_free)
197197
termination_condition = (alg isa PETScSNES || alg isa KINSOL) ?
198198
nothing :
199199
NonlinearSolveBase.AbsNormTerminationMode(Base.Fix1(maximum, abs))
200-
sol = solve(prob, alg; abstol=1e-5, reltol=1e-5,
200+
sol = solve(prob, alg; abstol=1e-4, reltol=1e-4,
201201
linsolve_kwargs = (; abstol = 1e-6, reltol = 1e-6),
202202
termination_condition)
203203
if SciMLBase.successful_retcode(sol) || norm(sol.resid, Inf) ≤ 1e-3
204-
runtimes_scaling[j, i] = @belapsed solve($prob, $alg; abstol=1e-5,
205-
reltol=1e-5,
204+
runtimes_scaling[j, i] = @belapsed solve($prob, $alg; abstol=1e-4,
205+
reltol=1e-4,
206206
linsolve_kwargs = (; abstol = 1e-6, reltol = 1e-6),
207207
termination_condition=$termination_condition)
208208
else

0 commit comments

Comments
 (0)