Skip to content

Commit 991884d

Browse files
committed
fix: more fixes
1 parent bd77d08 commit 991884d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

benchmarks/NonlinearProblem/bruss.jmd

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Ill-Conditioned Nonlinear System Work-Precision Diagrams
33
author: Avik Pal
4-
priority: 10
4+
priority: 1000000
55
---
66

77
# Setup
@@ -346,7 +346,7 @@ fig = begin
346346
[symbol_to_adname[adtypes[idx][2][1]] for idx in non_sparse_idxs],
347347
],
348348
["Exact Sparsity", "Approx. Local Sparsity", "Dense"];
349-
position=:rb, framevisible=true, framewidth=2.5, titlesize=18,
349+
position=:lt, framevisible=true, framewidth=2.5, titlesize=18,
350350
labelsize=16, patchsize=(40.0f0, 20.0f0)
351351
)
352352

@@ -565,15 +565,15 @@ solvers_scaling_jacobian_free = [
565565
(; pkg = :nonlinearsolve, name = "Newton Krylov", alg = NewtonRaphson(; linsolve = KrylovJL_GMRES())),
566566
(; pkg = :nonlinearsolve, name = "Newton Krylov (ILU)", alg = NewtonRaphson(; linsolve = KrylovJL_GMRES(; precs = incompletelu), concrete_jac = true)),
567567
(; pkg = :nonlinearsolve, name = "Newton Krylov (AMG)", alg = NewtonRaphson(; linsolve = KrylovJL_GMRES(; precs = algebraicmultigrid), concrete_jac = true)),
568-
(; pkg = :nonlinearsolve, name = "Newton Krylov (AMG Jacobi)", alg = NewtonRaphson(; linsolve = KrylovJL_GMRES(; precs = algebraicmultigrid_jacobi), concrete_jac = true)),
568+
# (; pkg = :nonlinearsolve, name = "Newton Krylov (AMG Jacobi)", alg = NewtonRaphson(; linsolve = KrylovJL_GMRES(; precs = algebraicmultigrid_jacobi), concrete_jac = true)),
569569
(; pkg = :wrapper, name = "Newton Krylov [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", snes_mf = true)),
570570
(; pkg = :wrapper, name = "Newton Krylov (ILU) [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", pc_type = "ilu")),
571571
(; pkg = :wrapper, name = "Newton Krylov (AMG) [PETSc]", alg = PETScSNES(; snes_type = "newtonls", snes_linesearch_type = "basic", ksp_type = "gmres", pc_type = "gamg")),
572-
(; 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")),
572+
# (; 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")),
573573
(; pkg = :nonlinearsolve, name = "TR Krylov", alg = TrustRegion(; linsolve = KrylovJL_GMRES())),
574574
(; pkg = :nonlinearsolve, name = "TR Krylov (ILU)", alg = TrustRegion(; linsolve = KrylovJL_GMRES(; precs = incompletelu), concrete_jac = true)),
575575
(; pkg = :nonlinearsolve, name = "TR Krylov (AMG)", alg = TrustRegion(; linsolve = KrylovJL_GMRES(; precs = algebraicmultigrid), concrete_jac = true)),
576-
(; pkg = :nonlinearsolve, name = "TR Krylov (AMG Jacobi)", alg = TrustRegion(; linsolve = KrylovJL_GMRES(; precs = algebraicmultigrid_jacobi), concrete_jac = true)),
576+
# (; pkg = :nonlinearsolve, name = "TR Krylov (AMG Jacobi)", alg = TrustRegion(; linsolve = KrylovJL_GMRES(; precs = algebraicmultigrid_jacobi), concrete_jac = true)),
577577
# (; pkg = :wrapper, name = "TR Krylov [PETSc]", alg = PETScSNES(; snes_type = "newtontr", ksp_type = "gmres", snes_mf = true)),
578578
# (; pkg = :wrapper, name = "TR Krylov (ILU) [PETSc]", alg = PETScSNES(; snes_type = "newtontr", ksp_type = "gmres", pc_type = "ilu")),
579579
# (; pkg = :wrapper, name = "TR Krylov (AMG) [PETSc]", alg = PETScSNES(; snes_type = "newtontr", ksp_type = "gmres", pc_type = "gamg")),
@@ -603,13 +603,13 @@ for (i, N) in enumerate(Ns)
603603
termination_condition = (alg isa PETScSNES || alg isa KINSOL) ?
604604
nothing :
605605
NonlinearSolveBase.AbsNormTerminationMode(Base.Fix1(maximum, abs))
606-
sol = solve(prob, alg; abstol=1e-6, reltol=1e-6,
607-
linsolve_kwargs = (; abstol = 1e-9, reltol = 1e-9),
606+
sol = solve(prob, alg; abstol=1e-5, reltol=1e-5,
607+
linsolve_kwargs = (; abstol = 1e-6, reltol = 1e-6),
608608
termination_condition)
609-
if SciMLBase.successful_retcode(sol) || norm(sol.resid, Inf) ≤ 1e-5
610-
runtimes_scaling[j, i] = @belapsed solve($prob, $alg; abstol=1e-6,
611-
reltol=1e-6,
612-
linsolve_kwargs = (; abstol = 1e-9, reltol = 1e-9),
609+
if SciMLBase.successful_retcode(sol) || norm(sol.resid, Inf) ≤ 1e-4
610+
runtimes_scaling[j, i] = @belapsed solve($prob, $alg; abstol=1e-5,
611+
reltol=1e-5,
612+
linsolve_kwargs = (; abstol = 1e-6, reltol = 1e-6),
613613
termination_condition=$termination_condition)
614614
else
615615
runtimes_scaling[j, i] = NaN

0 commit comments

Comments
 (0)