dune-istl
2.2.0
|
Information about the index distribution. More...
#include <dune/istl/owneroverlapcopy.hh>
Public Types | |
typedef G | GlobalIdType |
The type of the global index. | |
typedef L | LocalIdType |
The type of the local index. | |
typedef tuple< GlobalIdType, LocalIdType, int > | IndexTripel |
A triple describing a local index. | |
typedef tuple< int, GlobalIdType, int > | RemoteIndexTripel |
A triple describing a remote index. | |
Public Member Functions | |
void | addLocalIndex (const IndexTripel &x) |
Add a new index triple to the set of local indices. | |
void | addRemoteIndex (const RemoteIndexTripel &x) |
Add a new remote index triple to the set of remote indices. | |
const std::set< IndexTripel > & | localIndices () const |
Get the set of indices local to the process. | |
const std::set < RemoteIndexTripel > & | remoteIndices () const |
Get the set of remote indices. | |
void | clear () |
Remove all indices from the sets. |
Information about the index distribution.
This class contains information about indices local to the process together with information about on which processes those indices are also present together with the attribute they have there.
This information might be used to set up an IndexSet together with an RemoteIndices object needed for the ISTL communication classes.
typedef G Dune::IndexInfoFromGrid< G, L >::GlobalIdType |
The type of the global index.
typedef tuple<GlobalIdType,LocalIdType,int> Dune::IndexInfoFromGrid< G, L >::IndexTripel |
A triple describing a local index.
The triple consists of the global index and the local index and an attribute
typedef L Dune::IndexInfoFromGrid< G, L >::LocalIdType |
The type of the local index.
typedef tuple<int,GlobalIdType,int> Dune::IndexInfoFromGrid< G, L >::RemoteIndexTripel |
A triple describing a remote index.
The triple consists of a process number and the global index and the attribute of the index at the remote process.
void Dune::IndexInfoFromGrid< G, L >::addLocalIndex | ( | const IndexTripel & | x | ) | [inline] |
Add a new index triple to the set of local indices.
x | The index triple. |
References Dune::OwnerOverlapCopyAttributeSet::copy, Dune::OwnerOverlapCopyAttributeSet::overlap, and Dune::OwnerOverlapCopyAttributeSet::owner.
void Dune::IndexInfoFromGrid< G, L >::addRemoteIndex | ( | const RemoteIndexTripel & | x | ) | [inline] |
Add a new remote index triple to the set of remote indices.
x | The index triple to add. |
References Dune::OwnerOverlapCopyAttributeSet::copy, Dune::OwnerOverlapCopyAttributeSet::overlap, and Dune::OwnerOverlapCopyAttributeSet::owner.
void Dune::IndexInfoFromGrid< G, L >::clear | ( | ) | [inline] |
Remove all indices from the sets.
const std::set<IndexTripel>& Dune::IndexInfoFromGrid< G, L >::localIndices | ( | ) | const [inline] |
Get the set of indices local to the process.
Referenced by Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >::OwnerOverlapCopyCommunication().
const std::set<RemoteIndexTripel>& Dune::IndexInfoFromGrid< G, L >::remoteIndices | ( | ) | const [inline] |
Get the set of remote indices.
Referenced by Dune::OwnerOverlapCopyCommunication< GlobalIdType, LocalIdType >::OwnerOverlapCopyCommunication().