From 37ffcd38bde48eb6dda37bcfbd6169b8fc3ff388 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 2 Jul 2023 10:42:09 -0600 Subject: [PATCH] Use global refinement for the moment. --- examples/step-86/step-86.cc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/examples/step-86/step-86.cc b/examples/step-86/step-86.cc index 4ab5db30ef..5eb0b6526a 100644 --- a/examples/step-86/step-86.cc +++ b/examples/step-86/step-86.cc @@ -296,8 +296,8 @@ namespace Step86 template void HeatEquation::run() { - const unsigned int initial_global_refinement = 2; - const unsigned int n_adaptive_pre_refinement_steps = 4; + const unsigned int initial_global_refinement = 5; + const unsigned int n_adaptive_pre_refinement_steps = 0; GridGenerator::hyper_L(triangulation); triangulation.refine_global(initial_global_refinement); @@ -325,7 +325,8 @@ namespace Step86 output_results(); - while (time <= 0.5) + const double end_time = 0.5; + while (time <= end_time) { time += time_step; ++timestep_number; @@ -396,11 +397,11 @@ namespace Step86 } else if ((timestep_number > 0) && (timestep_number % 5 == 0)) { - refine_mesh(initial_global_refinement, - initial_global_refinement + - n_adaptive_pre_refinement_steps); - tmp.reinit(solution); - forcing_terms.reinit(solution); + // refine_mesh(initial_global_refinement, + // initial_global_refinement + + // n_adaptive_pre_refinement_steps); + // tmp.reinit(solution); + // forcing_terms.reinit(solution); } old_solution = solution; -- 2.39.5