Skip to content

Commit

Permalink
fix compilation of Sedov diag in 1-d
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Aug 11, 2023
1 parent 48b65b7 commit 25ba304
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Diagnostics/Sedov/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ std::pair<Real, Real> get_coord_info(const Array<Real, AMREX_SPACEDIM>& p,
AMREX_ASSERT(coord == 2);

r_zone = p[0] - center[0];
Real r_r = problo[0]+static_cast<Real>(i+1)*dx_level[0];
Real r_l = problo[0]+static_cast<Real>(i)*dx_level[0];

Real r_r = p[0] + 0.5_rt * dx_level[0];
Real r_l = p[0] - 0.5_rt * dx_level[0];
vol = (4.0_rt/3.0_rt) * M_PI * dx_level[0] *
(r_r*r_r + r_l*r_r + r_l*r_l);

Expand Down

0 comments on commit 25ba304

Please sign in to comment.