Template Function ripple::load_internal_boundary¶
Defined in File load_boundary.hpp
Function Documentation¶
-
template<size_t
Dims
, typenameItFrom
, typenameItTo
>
autoripple
::
load_internal_boundary
(ItFrom &&from, ItTo &&to) noexcept -> void Loads padding data from the from iterator into the padding of the to iterator.
- Todo:
Maybe change the dims parameter to be inferred from the iterators.
- Pre
The iterators must be offset to the locations from which the padding will be loaded.
- Note
If the from iterator is a smaller (in any dimension) iterator than the to iterator, the behaviour is undefined. Additionally, it must be possible to offset both itertators by the padding amount of to in each dimension.
- Todo:
This uses a lot of registers, and since it’s mostly used for loading of shared memory data, it needs to be improved.
- Parameters
from
: The iterator to load the boundary data from.to
: The iterator to load the boundary data into.
- Template Parameters
Dims
: The number of dimension to load data for.ItFrom
: The type of the from iterator.ItTo
: The type of the to iterator.