Skip to content

Commit a5ef244

Browse files
committed
also call RemakeMultifab on the buffers
1 parent bd678c2 commit a5ef244

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Source/Parallelization/WarpXRegrid.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,12 @@ WarpX::RemakeLevel (int lev, Real /*time*/, const BoxArray& ba, const Distributi
311311

312312
if (lev > 0 && (n_field_gather_buffer > 0 || n_current_deposition_buffer > 0)) {
313313
if (current_buffer_masks[lev] || gather_buffer_masks[lev]) {
314+
if (current_buffer_masks[lev]) {
315+
RemakeMultiFab( current_buffer_masks[lev] );
316+
}
317+
if (gather_buffer_masks[lev]) {
318+
RemakeMultiFab( gather_buffer_masks[lev] );
319+
}
314320
BuildBufferMasks();
315321
}
316322
}

0 commit comments

Comments
 (0)