Skip to content

Class TempLat::MPIDomainSplit

ClassList > TempLat > MPIDomainSplit

A class which factorizes an integer into N roughly equal-size integers. That is, our best guess for the domain decomposition. More...

  • #include <mpidomainsplit.h>

Public Functions

Type Name
MPIDomainSplit (ptrdiff_t total, ptrdiff_t nDimensions, ptrdiff_t nDimensionsToSplit)
Constructor.
auto begin ()
ptrdiff_t computeSize ()
auto end ()
vector< int > () const

Detailed Description

Unit test: ctest -R test-mpidomainsplit

Public Functions Documentation

function MPIDomainSplit

Constructor.

inline TempLat::MPIDomainSplit::MPIDomainSplit (
    ptrdiff_t total,
    ptrdiff_t nDimensions,
    ptrdiff_t nDimensionsToSplit
) 

Parameters:

  • total the number of processors in total in the group. Don't pass a prime number.
  • nDimensions the total number of the domain.
  • nDimensionsToSplit <= nDimensions, the number of factors which should multiply to total.

function begin

inline auto TempLat::MPIDomainSplit::begin () 

function computeSize

inline ptrdiff_t TempLat::MPIDomainSplit::computeSize () 

function end

inline auto TempLat::MPIDomainSplit::end () 

function vector< int >

inline TempLat::MPIDomainSplit::vector< int > () const

Friends Documentation

friend operator<<

inline std::ostream & TempLat::MPIDomainSplit::operator<< (
    std::ostream & ostream,
    MPIDomainSplit dom
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/parallel/mpi/comm/mpidomainsplit.h