Template Function combigrid::CombiCom::getChunkedSubspaces
Defined in File CombiCom.hpp
Function Documentation
-
template<typename FG_ELEMENT, typename SubspaceIndexContainer>
std::vector<std::set<typename AnyDistributedSparseGrid::SubspaceIndexType>> &combigrid::CombiCom::getChunkedSubspaces(const DistributedSparseGridUniform<FG_ELEMENT> &dsg, const SubspaceIndexContainer &siContainer, int maxChunkSize) get chunked subspaces for a DistributedSparseGrid
partitions the subspaces of
dsginto chunks of not more thanmaxChunkSizesize in total, but at least one subspace- Template Parameters:
FG_ELEMENT – the type of the elements in the sparse grid
SubspaceIndexContainer – a container of subspace indices
- Parameters:
dsg – the DistributedSparseGrid
siContainer – the container of subspace indices
maxChunkSize – the maximum size of a chunk, in number of elements
- Returns:
a vector of sets of subspace indices, each set representing a chunk