dune-istl  2.2.1
Public Member Functions | Public Attributes | List of all members
Dune::CommMatrixRow< M, I > Struct Template Reference

Utility class for comunicating the matrix entries. More...

#include <dune/istl/matrixredistribute.hh>

Public Member Functions

 CommMatrixRow (M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_)
 Constructor. More...
 
 CommMatrixRow (M &m_, const Dune::GlobalLookupIndexSet< I > &idxset_, const I &aggidxset_, std::vector< size_t > &rowsize_)
 Constructor. More...
 
void setOverlapRowsToDirichlet ()
 Sets the non-owner rows correctly as Dirichlet boundaries. More...
 

Public Attributes

M & matrix
 The matrix to communicate the values of. More...
 
const
Dune::GlobalLookupIndexSet< I > & 
idxset
 Index set for the original matrix. More...
 
const I & aggidxset
 Index set for the redistributed matrix. More...
 
std::vector< size_t > * rowsize
 row size information for the receiving side. More...
 

Detailed Description

template<class M, class I>
struct Dune::CommMatrixRow< M, I >

Utility class for comunicating the matrix entries.

Template Parameters
MThe type of the matrix.
IThe type of the ParallelIndexSet.

Constructor & Destructor Documentation

template<class M , class I >
Dune::CommMatrixRow< M, I >::CommMatrixRow ( M &  m_,
const Dune::GlobalLookupIndexSet< I > &  idxset_,
const I &  aggidxset_ 
)
inline

Constructor.

Parameters
m_The matrix to communicate the values. That is the local original matrix as the source of the communication and the redistributed at the target of the communication.
idxset_The index set for the original matrix.
aggidxset_The index set for the redistributed matrix.
template<class M , class I >
Dune::CommMatrixRow< M, I >::CommMatrixRow ( M &  m_,
const Dune::GlobalLookupIndexSet< I > &  idxset_,
const I &  aggidxset_,
std::vector< size_t > &  rowsize_ 
)
inline

Constructor.

Member Function Documentation

template<class M , class I >
void Dune::CommMatrixRow< M, I >::setOverlapRowsToDirichlet ( )
inline

Sets the non-owner rows correctly as Dirichlet boundaries.

This should be called after the communication.

References Dune::CommMatrixRow< M, I >::aggidxset, and Dune::CommMatrixRow< M, I >::matrix.

Member Data Documentation

template<class M , class I >
const I& Dune::CommMatrixRow< M, I >::aggidxset
template<class M , class I >
const Dune::GlobalLookupIndexSet<I>& Dune::CommMatrixRow< M, I >::idxset

Index set for the original matrix.

Referenced by Dune::MatrixRowGatherScatter< M, I >::gather().

template<class M , class I >
M& Dune::CommMatrixRow< M, I >::matrix
template<class M , class I >
std::vector<size_t>* Dune::CommMatrixRow< M, I >::rowsize

row size information for the receiving side.

Referenced by Dune::CommPolicy< CommMatrixRow< M, I > >::getSize().


The documentation for this struct was generated from the following file: