Skip to content

Commit

Permalink
fix RY2R calc in regrid for manifold (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 authored Dec 31, 2024
1 parent c12024a commit 176deb4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/PeleLMeX_Eos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,9 @@ PeleLM::setRhoToSumRhoY(int lev, const TimeStamp& a_time)
amrex::ParallelFor(
ldata_p->state,
[=] AMREX_GPU_DEVICE(int box_no, int i, int j, int k) noexcept {
sma[box_no](i, j, k, DENSITY) = 0.0;
for (int n = 0; n < NUM_SPECIES; n++) {
sma[box_no](i, j, k, DENSITY) += sma[box_no](i, j, k, FIRSTSPEC + n);
}
pele::physics::PhysicsType::eos_type::RY2R(
sma[box_no].cellData(i, j, k), sma[box_no](i, j, k, DENSITY),
FIRSTSPEC);
});
Gpu::streamSynchronize();
}
Expand Down

0 comments on commit 176deb4

Please sign in to comment.