From d63025c3842dc9509dcfdf131daa9a71b6daf666 Mon Sep 17 00:00:00 2001 From: Stephan Hilb <stephan@ecshi.net> Date: Wed, 22 Jan 2025 23:29:27 +0900 Subject: [PATCH] reenable refinement in inpainting region --- scripts/run_experiments.jl | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/scripts/run_experiments.jl b/scripts/run_experiments.jl index 08fac74..51fbb7f 100644 --- a/scripts/run_experiments.jl +++ b/scripts/run_experiments.jl @@ -1452,15 +1452,11 @@ function inpaint(ctx) # manually mark all cell within inpainting domain, since the # estimator is not reliable there - if !hasproperty(ctx.params, :estimator) || ctx.params.estimator != :primal_dual - # The primal-dual estimator seems reliable inside the - # inpainting domain - for cell in cells(mesh) - bind!(st.tdata, cell) - maskv = evaluate(st.tdata, SA[1/3, 1/3]) - if abs(maskv[begin] - 1.) > 1e-8 - push!(marked_cells, cell) - end + for cell in cells(mesh) + bind!(st.tdata, cell) + maskv = evaluate(st.tdata, SA[1/3, 1/3]) + if abs(maskv[begin] - 1.) > 1e-8 + push!(marked_cells, cell) end end #marked_cells = Set(axes(mesh.cells, 2)) -- GitLab