You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described by the document, the "Fillpatch operations fill all cells, valid and ghost, from actual valid data at that level, space-time interpolated data from the next-coarser level, neighboring grids at the same level, and domain boundary conditions". However, in multi-level grids computations, the inner-cells (i.e. the valid cells) of the fine level should not be overwritten by the Fillpatch process.
Therefore, if I want to fill only the ghost cells with interpolation from coarse level, one possible solution is to Fillpatch to a temp Fab, then copy the ghost cell values to the destined fine level Fab (or swap the temp Fab and the dst fine level fab). This leads to a waste of copy operation on the inner cells of the fine level.
So is there anyway to avoid this inner cells' copy when calling Fillpatch?
The text was updated successfully, but these errors were encountered:
However, in multi-level grids computations, the inner-cells (i.e. the valid cells) of the fine level should not be overwritten by the Fillpatch process.
That's not always true. One might also need to do interpolation in time. In that case, the valid cells of the output mulitfab will be overwritten. If you don't need interpolation in time, all you need to do is provide the same mulitfab as both the input and output, and make sure the times are consistent. Then we will not touch the valid cells.
As described by the document, the "Fillpatch operations fill all cells, valid and ghost, from actual valid data at that level, space-time interpolated data from the next-coarser level, neighboring grids at the same level, and domain boundary conditions". However, in multi-level grids computations, the inner-cells (i.e. the valid cells) of the fine level should not be overwritten by the Fillpatch process.
Therefore, if I want to fill only the ghost cells with interpolation from coarse level, one possible solution is to Fillpatch to a temp Fab, then copy the ghost cell values to the destined fine level Fab (or swap the temp Fab and the dst fine level fab). This leads to a waste of copy operation on the inner cells of the fine level.
So is there anyway to avoid this inner cells' copy when calling Fillpatch?
The text was updated successfully, but these errors were encountered: