Dune Core Modules (2.9.1)
interface.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
358 void InterfaceBuilder::buildInterface(const R& remoteIndices, const T1& sourceFlags, const T2& destFlags, Op& interfaceInformation) const
362 DUNE_THROW(RemoteIndicesStateError,"RemoteIndices is not in sync with the index set. Call RemoteIndices::rebuild first!");
380 RemoteIterator remote = send ? process->second.first->begin() : process->second.second->begin();
402 RemoteIterator remote = send ? process->second.first->begin() : process->second.second->begin();
424 inline const std::map<int,std::pair<InterfaceInformation,InterfaceInformation> >& Interface::interfaces() const
429 inline std::map<int,std::pair<InterfaceInformation,InterfaceInformation> >& Interface::interfaces()
470 this->template buildInterface<R,T1,T2,InformationBuilder<true>,true>(remoteIndices, sourceFlags,
475 this->template buildInterface<R,T1,T2,InformationBuilder<false>,false>(remoteIndices,sourceFlags,
Base class of all classes representing a communication interface.
Definition: interface.hh:35
InterfaceBuilder()
Not for public use.
Definition: interface.hh:47
void add(std::size_t index)
Add a new index to the interface.
Definition: interface.hh:154
std::size_t & operator[](size_t i)
Get the local index for an entry.
Definition: interface.hh:116
size_t size() const
Get the number of entries in the interface.
Definition: interface.hh:108
void reserve(size_t size)
Reserve space for a number of entries.
Definition: interface.hh:134
std::size_t operator[](size_t i) const
Get the local index for an entry.
Definition: interface.hh:125
Communication interface between remote and local indices.
Definition: interface.hh:209
MPI_Comm communicator_
The MPI communicator we use.
Definition: interface.hh:316
std::map< int, std::pair< InterfaceInformation, InterfaceInformation > > InformationMap
The type of the map form process number to InterfaceInformation for sending and receiving to and from...
Definition: interface.hh:216
Default exception if a function was called while the object is not in a valid state for that function...
Definition: exceptions.hh:281
const_iterator end() const
Get an iterator over all remote index lists.
Definition: remoteindices.hh:1529
Classes for building sets out of enumeration values.
void buildInterface(const R &remoteIndices, const T1 &sourceFlags, const T2 &destFlags, Op &functor) const
Builds the interface between remote processes.
Definition: interface.hh:358
void build(const R &remoteIndices, const T1 &sourceFlags, const T2 &destFlags)
Builds the interface.
Definition: interface.hh:461
void print() const
Print the interface to std::out for debugging.
Definition: interface.hh:434
const InformationMap & interfaces() const
Get information about the interfaces.
Definition: interface.hh:424
MPI_Comm communicator() const
Get the MPI Communicator.
Definition: interface.hh:417
void free()
Frees memory allocated during the build.
Definition: interface.hh:492
Classes describing a distributed indexset.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)