From 66e4f84da6d7168858e963f2eb4550694a0e93ef Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Thu, 17 Oct 2024 07:40:20 -0400 Subject: [PATCH] fix center for flame_wave in 1D --- Exec/science/flame_wave/problem_initialize.H | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Exec/science/flame_wave/problem_initialize.H b/Exec/science/flame_wave/problem_initialize.H index 61eb43808c..8c0d1fe5f8 100644 --- a/Exec/science/flame_wave/problem_initialize.H +++ b/Exec/science/flame_wave/problem_initialize.H @@ -190,6 +190,10 @@ void problem_initialize () problem::center[d] = 0.5_rt * (problo[d] + probhi[d]); } +#if AMREX_SPACEDIM == 1 + problem::center[0] = 0.0_rt; +#endif + #if AMREX_SPACEDIM == 2 // for axisymmetry, put the x-center on the x-axis // and the y-center at 0, so the height computation is okay