Skip to content

Commit

Permalink
Fix tiling issue introduced by last PR (#162)
Browse files Browse the repository at this point in the history
I realized from Marc's comment about the diffs that we'll have to turn
off tiling for the `correct_outflow` mfiter loop to avoid
double-updating cells.
  • Loading branch information
mukul1992 authored Feb 28, 2025
1 parent 6ee8d05 commit f05ddfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utils/hydro_enforce_inout_solvability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ void correct_outflow(
}

if (bc == BCType::direction_dependent) {
for (MFIter mfi(*vel_mf, TilingIfNotGPU()); mfi.isValid(); ++mfi) {
for (MFIter mfi(*vel_mf, false); mfi.isValid(); ++mfi) {

Box box = mfi.tilebox();
Box box = mfi.validbox();
if (dir_index_type == IndexType::CellIndex::CELL) {
box.grow(dir, 1);
}
Expand Down

0 comments on commit f05ddfa

Please sign in to comment.