Skip to content

Commit

Permalink
Fix divide by 0 in cons_to_prim
Browse files Browse the repository at this point in the history
  • Loading branch information
ewquon committed Nov 22, 2024
1 parent e12bec0 commit 1a6fbd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Initialization/ERF_init_uniform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ERF::init_uniform (int lev)
{
auto& lev_new = vars_new[lev];
for (MFIter mfi(lev_new[Vars::cons], TilingIfNotGPU()); mfi.isValid(); ++mfi) {
const Box &gbx = mfi.growntilebox(1);
const Box &gbx = mfi.growntilebox();
const auto &cons_arr = lev_new[Vars::cons].array(mfi);
prob->init_uniform(gbx, cons_arr);
}
Expand Down

0 comments on commit 1a6fbd1

Please sign in to comment.