Template Function combigrid::CombiCom::maxReduceSubspaceSizesAcrossGroups

Function Documentation

template<typename SparseGridType>
void combigrid::CombiCom::maxReduceSubspaceSizesAcrossGroups(SparseGridType &dsg, RankType globalReduceRankThatCollects, CommunicatorType globalReduceComm = theMPISystem()->getGlobalReduceComm())

Performs a max-reduce in communicator globalReduceComm with subspace sizes of the sparse grids.

this together with broadcastSubspaceSizes can be used as a two-step replacement for reduceSubspaceSizes.

Template Parameters:

SparseGridType – (derived from) DistributedSparseGridUniform

Parameters:
  • dsg – the sparse grid of type SparseGridType

  • globalReduceRankThatCollects – the rank that collects the data

  • globalReduceComm – the communicator