Skip to content

Commit

Permalink
fix center for flame_wave in 1D
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Oct 17, 2024
1 parent 7b80efd commit 66e4f84
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Exec/science/flame_wave/problem_initialize.H
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66e4f84

Please sign in to comment.