From f05ddfa208180624e9683edb44f052f89c88eb3f Mon Sep 17 00:00:00 2001 From: Mukul Dave Date: Thu, 27 Feb 2025 18:05:35 -0800 Subject: [PATCH] Fix tiling issue introduced by last PR (#162) 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. --- Utils/hydro_enforce_inout_solvability.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/hydro_enforce_inout_solvability.cpp b/Utils/hydro_enforce_inout_solvability.cpp index 369d9a8d..8e18694b 100644 --- a/Utils/hydro_enforce_inout_solvability.cpp +++ b/Utils/hydro_enforce_inout_solvability.cpp @@ -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); }