Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix compilation of Sedov diag in 1-d #2541

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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