5#ifndef DUNE_INDICESSYNCER_HH
6#define DUNE_INDICESSYNCER_HH
54 typedef typename ParallelIndexSet::LocalIndex::Attribute
Attribute;
95 void sync(T1& numberer);
109 char* receiveBuffer_;
112 std::size_t* sendBufferSizes_;
115 int receiveBufferSize_;
120 struct MessageInformation
137 class DefaultNumberer
152 MPI_Datatype datatype_;
173 typedef std::map<int, GlobalIndexList> GlobalIndicesMap;
183 GlobalIndicesMap globalMap_;
199 typedef std::map<int,BoolList> BoolMap;
208 std::map<int,MessageInformation> infoSend_;
226 typedef std::tuple<RemoteIndexModifier,GlobalIndexModifier,BoolListModifier,
227 const ConstRemoteIndexIterator> IteratorTuple;
249 Iterators(RemoteIndexList& remoteIndices, GlobalIndexList& globalIndices,
260 Iterators& operator++();
268 const std::pair<GlobalIndex,Attribute>& global);
280 std::pair<GlobalIndex,Attribute>& globalIndexPair()
const;
300 void reset(RemoteIndexList& remoteIndices, GlobalIndexList& globalIndices,
308 bool isNotAtEnd()
const;
315 bool isAtEnd()
const;
327 IteratorTuple iterators_;
331 typedef std::map<int,Iterators> IteratorsMap;
344 IteratorsMap iteratorsMap_;
347 void calculateMessageSizes();
356 void packAndSend(
int destination,
char* buffer, std::size_t bufferSize, MPI_Request& req);
362 template<
typename T1>
363 void recvAndUnpack(T1& numberer);
368 void registerMessageDatatype();
373 void insertIntoRemoteIndexList(
int process,
374 const std::pair<GlobalIndex,Attribute>& global,
380 void resetIteratorsMap();
396 bool checkReset(
const Iterators& iterators, RemoteIndexList& rlist, GlobalIndexList& gList,
400 template<
typename TG,
typename TA>
401 bool operator<(
const IndexPair<TG,ParallelLocalIndex<TA> >& i1,
402 const std::pair<TG,TA>& i2)
404 return i1.global() < i2.first ||
405 (i1.global() == i2.first && i1.local().attribute()<i2.second);
408 template<
typename TG,
typename TA>
409 bool operator<(
const std::pair<TG,TA>& i1,
410 const IndexPair<TG,ParallelLocalIndex<TA> >& i2)
412 return i1.first < i2.global() ||
413 (i1.first == i2.global() && i1.second<i2.local().attribute());
416 template<
typename TG,
typename TA>
417 bool operator==(
const IndexPair<TG,ParallelLocalIndex<TA> >& i1,
418 const std::pair<TG,TA>& i2)
420 return (i1.global() == i2.first && i1.local().attribute()==i2.second);
423 template<
typename TG,
typename TA>
424 bool operator!=(
const IndexPair<TG,ParallelLocalIndex<TA> >& i1,
425 const std::pair<TG,TA>& i2)
427 return (i1.global() != i2.first || i1.local().attribute()!=i2.second);
430 template<
typename TG,
typename TA>
432 const IndexPair<TG,ParallelLocalIndex<TA> >& i1)
434 return (i1.global() == i2.first && i1.local().attribute()==i2.second);
437 template<
typename TG,
typename TA>
439 const IndexPair<TG,ParallelLocalIndex<TA> >& i1)
441 return (i1.global() != i2.first || i1.local().attribute()!=i2.second);
460 template<
typename T,
typename A,
typename A1>
464 for(
auto remote = remoteIndices.
begin(), end =remoteIndices.
end(); remote != end; ++remote) {
467 GlobalIndexList& global = globalMap[remote->first];
468 RemoteIndexList& rList = *(remote->second.first);
470 for(
auto index = rList.begin(), riEnd = rList.end();
471 index != riEnd; ++index) {
472 global.push_back(std::make_pair(index->localIndexPair().global(),
473 index->localIndexPair().local().attribute()));
486 template<
typename T,
typename A,
typename A1>
488 SLList<std::pair<
typename T::GlobalIndex,
489 typename T::LocalIndex::Attribute>,A> >& globalMap,
493 assert(globalMap.size()==
static_cast<std::size_t
>(remoteIndices.
neighbours()));
495 auto global = globalMap.begin();
496 auto end = remoteIndices.remoteIndices_.end();
498 for(
auto remote = remoteIndices.remoteIndices_.begin(); remote != end; ++remote, ++global) {
499 assert(remote->first==global->first);
500 assert(remote->second.first->size() == global->second.size());
502 auto riEnd = remote->second.first->end();
503 auto rIndex = remote->second.first->begin();
504 auto gIndex = global->second.begin();
505 auto index = indexSet.begin();
507 assert(rIndex==riEnd || gIndex != global->second.end());
508 while(rIndex != riEnd) {
510 assert(gIndex != global->second.end());
512 while(!(index->global() == gIndex->first
513 && index->local().attribute() == gIndex->second)) {
518 if (index->global() > gIndex->first) {
519 index=indexSet.begin();
523 assert(index != indexSet.end() && *index == *gIndex);
525 rIndex->localIndex_ = &(*index);
531 remoteIndices.sourceSeqNo_ = remoteIndices.source_->
seqNo();
532 remoteIndices.destSeqNo_ = remoteIndices.target_->
seqNo();
538 : indexSet_(indexSet), remoteIndices_(remoteIndices)
541 assert(remoteIndices.source_ == remoteIndices.target_);
542 assert(remoteIndices.source_ == &indexSet);
550 : iterators_(remoteIndices.beginModify(), globalIndices.beginModify(),
551 booleans.beginModify(), remoteIndices.end())
562 ++(std::get<0>(iterators_));
563 ++(std::get<1>(iterators_));
564 ++(std::get<2>(iterators_));
570 const std::pair<GlobalIndex,Attribute>& global)
572 std::get<0>(iterators_).insert(index);
573 std::get<1>(iterators_).insert(global);
574 std::get<2>(iterators_).insert(
false);
581 return *(std::get<0>(iterators_));
588 return *(std::get<1>(iterators_));
594 return *(std::get<2>(iterators_));
602 std::get<0>(iterators_) = remoteIndices.
beginModify();
603 std::get<1>(iterators_) = globalIndices.
beginModify();
610 return std::get<0>(iterators_) != std::get<3>(iterators_);
616 return std::get<0>(iterators_) == std::get<3>(iterators_);
622 MPI_Datatype type[2] = {MPI_INT, MPI_INT};
623 int blocklength[2] = {1,1};
624 MPI_Aint displacement[2];
628 MessageInformation message;
630 MPI_Get_address( &(message.publish), displacement);
631 MPI_Get_address( &(message.pairs), displacement+1);
634 MPI_Get_address(&message, &base);
635 displacement[0] -= base;
636 displacement[1] -= base;
638 MPI_Type_create_struct( 2, blocklength, displacement, type, &datatype_);
639 MPI_Type_commit(&datatype_);
643 void IndicesSyncer<T>::calculateMessageSizes()
645 auto iEnd = indexSet_.end();
646 auto collIter = remoteIndices_.template iterator<true>();
648 for(
auto index = indexSet_.begin(); index != iEnd; ++index) {
649 collIter.advance(index->global(), index->local().attribute());
653 auto end = collIter.end();
656 for(
auto valid = collIter.begin(); valid != end; ++valid) {
661 Dune::dverb<<rank_<<
": publishing "<<knownRemote<<
" for index "<<index->global()<<
" for processes ";
664 for(
auto valid = collIter.begin(); valid != end; ++valid) {
665 ++(infoSend_[valid.process()].publish);
666 (infoSend_[valid.process()].pairs) += knownRemote;
668 Dune::dverb<<
"(publish="<<infoSend_[valid.process()].publish<<
", pairs="<<infoSend_[valid.process()].pairs
675 const auto end = infoSend_.end();
678 MessageInformation dummy;
680 auto messageIter= infoSend_.begin();
681 const auto rend = remoteIndices_.
end();
684 for(
auto remote = remoteIndices_.
begin(); remote != rend; ++remote, ++neighbour) {
685 MessageInformation* message;
686 MessageInformation recv;
688 if(messageIter != end && messageIter->first==remote->first) {
690 message =
const_cast<MessageInformation*
>(&(messageIter->second));
696 sendBufferSizes_[neighbour]=0;
699 MPI_Pack_size(1, MPI_INT,remoteIndices_.
communicator(), &tsize);
700 sendBufferSizes_[neighbour] += tsize;
702 for(
int i=0; i < message->publish; ++i) {
704 MPI_Pack_size(1, MPITraits<GlobalIndex>::getType(), remoteIndices_.
communicator(), &tsize);
705 sendBufferSizes_[neighbour] += tsize;
707 MPI_Pack_size(1, MPI_CHAR, remoteIndices_.
communicator(), &tsize);
708 sendBufferSizes_[neighbour] += tsize;
710 MPI_Pack_size(1, MPI_INT, remoteIndices_.
communicator(), &tsize);
711 sendBufferSizes_[neighbour] += tsize;
713 for(
int i=0; i < message->pairs; ++i) {
715 MPI_Pack_size(1, MPI_INT, remoteIndices_.
communicator(), &tsize);
716 sendBufferSizes_[neighbour] += tsize;
718 MPI_Pack_size(1, MPI_CHAR, remoteIndices_.
communicator(), &tsize);
719 sendBufferSizes_[neighbour] += tsize;
722 Dune::dverb<<rank_<<
": Buffer (neighbour="<<remote->first<<
") size is "<< sendBufferSizes_[neighbour]<<
" for publish="<<message->publish<<
" pairs="<<message->pairs<<std::endl;
730 DefaultNumberer numberer;
735 template<
typename T1>
742 const auto end = remoteIndices_.
end();
746 std::size_t noOldNeighbours = remoteIndices_.
neighbours();
747 int* oldNeighbours =
new int[noOldNeighbours];
748 sendBufferSizes_ =
new std::size_t[noOldNeighbours];
749 std::size_t neighbourI = 0;
751 for(
auto remote = remoteIndices_.
begin(); remote != end; ++remote, ++neighbourI) {
752 oldNeighbours[neighbourI] = remote->first;
755 assert(remote->second.first==remote->second.second);
761 BoolList& added = oldMap_[remote->first];
762 auto riEnd = rList.
end();
764 for(
auto index = rList.
begin();
765 index != riEnd; ++index) {
766 global.
push_back(std::make_pair(index->localIndexPair().global(),
767 index->localIndexPair().local().attribute()));
771 Iterators iterators(rList, global, added);
772 iteratorsMap_.insert(std::make_pair(remote->first, iterators));
773 assert(checkReset(iteratorsMap_[remote->first], rList,global,added));
777 calculateMessageSizes();
780 receiveBufferSize_=1;
781 sendBuffers_ =
new char*[noOldNeighbours];
783 for(std::size_t i=0; i<noOldNeighbours; ++i) {
784 sendBuffers_[i] =
new char[sendBufferSizes_[i]];
785 receiveBufferSize_ =
std::max(receiveBufferSize_,
static_cast<int>(sendBufferSizes_[i]));
788 receiveBuffer_=
new char[receiveBufferSize_];
790 indexSet_.beginResize();
794 for(std::size_t i = 0; i<noOldNeighbours; ++i)
799 MPI_Request* requests =
new MPI_Request[noOldNeighbours];
800 MPI_Status* statuses =
new MPI_Status[noOldNeighbours];
803 for(std::size_t i = 0; i<noOldNeighbours; ++i)
804 packAndSend(oldNeighbours[i], sendBuffers_[i], sendBufferSizes_[i], requests[i]);
807 for(std::size_t i = 0; i<noOldNeighbours; ++i)
808 recvAndUnpack(numberer);
815 delete[] receiveBuffer_;
819 if(MPI_SUCCESS!=MPI_Waitall(noOldNeighbours, requests, statuses)) {
820 std::cerr<<
": MPI_Error occurred while sending message"<<std::endl;
821 for(std::size_t i=0; i< noOldNeighbours; i++)
822 if(MPI_SUCCESS!=statuses[i].MPI_ERROR)
823 std::cerr<<
"Destination "<<statuses[i].MPI_SOURCE<<
" error code: "<<statuses[i].MPI_ERROR<<std::endl;
829 for(std::size_t i=0; i<noOldNeighbours; ++i)
830 delete[] sendBuffers_[i];
832 delete[] sendBuffers_;
833 delete[] sendBufferSizes_;
836 iteratorsMap_.clear();
838 indexSet_.endResize();
840 delete[] oldNeighbours;
848 remoteIndices_.sourceSeqNo_ = remoteIndices_.destSeqNo_ = indexSet_.seqNo();
854 auto iEnd = indexSet_.end();
859 assert(checkReset());
862 MPI_Pack(&(infoSend_[destination].publish), 1, MPI_INT, buffer, bufferSize, &bpos,
865 for(
auto index = indexSet_.begin(); index != iEnd; ++index) {
867 auto iteratorsEnd = iteratorsMap_.end();
870 for(
auto iterators = iteratorsMap_.begin(); iteratorsEnd != iterators; ++iterators) {
871 while(iterators->second.isNotAtEnd() &&
872 iterators->second.globalIndexPair().first < index->global())
873 ++(iterators->second);
874 assert(!iterators->second.isNotAtEnd() || iterators->second.globalIndexPair().first >= index->global());
881 bool knownRemote =
false;
883 for(
auto iterators = iteratorsMap_.begin(); iteratorsEnd != iterators; ++iterators)
885 std::pair<GlobalIndex,Attribute> p;
886 if (iterators->second.isNotAtEnd())
888 p = iterators->second.globalIndexPair();
891 if(iterators->second.isNotAtEnd() && iterators->second.isOld()
892 && iterators->second.globalIndexPair().first == index->global()) {
894 if(destination == iterators->first)
903 Dune::dverb<<rank_<<
": sending "<<indices<<
" for index "<<index->global()<<
" to "<<destination<<std::endl;
907 MPI_Pack(
const_cast<GlobalIndex*
>(&(index->global())), 1, MPITraits<GlobalIndex>::getType(), buffer, bufferSize, &bpos,
910 char attr = index->local().attribute();
911 MPI_Pack(&attr, 1, MPI_CHAR, buffer, bufferSize, &bpos,
915 MPI_Pack(&indices, 1, MPI_INT, buffer, bufferSize, &bpos,
919 for(
auto iterators = iteratorsMap_.begin(); iteratorsEnd != iterators; ++iterators)
920 if(iterators->second.isNotAtEnd() && iterators->second.isOld()
921 && iterators->second.globalIndexPair().first == index->global()) {
922 int process = iterators->first;
925 assert(pairs <= infoSend_[destination].pairs);
926 MPI_Pack(&process, 1, MPI_INT, buffer, bufferSize, &bpos,
928 char attr2 = iterators->second.remoteIndex().attribute();
930 MPI_Pack(&attr2, 1, MPI_CHAR, buffer, bufferSize, &bpos,
936 Dune::dvverb<<
" (publish="<<published<<
", pairs="<<pairs<<
")"<<std::endl;
937 assert(published <= infoSend_[destination].publish);
941 assert(published == infoSend_[destination].publish);
942 assert(pairs == infoSend_[destination].pairs);
945 Dune::dverb << rank_<<
": Sending message of "<<bpos<<
" bytes to "<<destination<<std::endl;
947 MPI_Issend(buffer, bpos, MPI_PACKED, destination, 345, remoteIndices_.
communicator(),&request);
951 inline void IndicesSyncer<T>::insertIntoRemoteIndexList(
int process,
952 const std::pair<GlobalIndex,Attribute>& globalPair,
955 Dune::dverb<<
"Inserting from "<<process<<
" "<<globalPair.first<<
", "<<
956 globalPair.second<<
" "<<attribute<<std::endl;
961 typename IteratorsMap::iterator found = iteratorsMap_.find(process);
963 if( found == iteratorsMap_.end() ) {
964 Dune::dverb<<
"Discovered new neighbour "<<process<<std::endl;
965 RemoteIndexList* rlist =
new RemoteIndexList();
966 remoteIndices_.remoteIndices_.insert(std::make_pair(process,std::make_pair(rlist,rlist)));
967 Iterators iterators = Iterators(*rlist, globalMap_[process], oldMap_[process]);
968 found = iteratorsMap_.insert(std::make_pair(process, iterators)).first;
971 Iterators& iterators = found->second;
974 while(iterators.isNotAtEnd() && iterators.globalIndexPair() < globalPair) {
980 if(iterators.isAtEnd() || iterators.globalIndexPair() != globalPair) {
983 iterators.insert(RemoteIndex(
Attribute(attribute)),globalPair);
988 bool indexIsThere=
false;
989 for(Iterators tmpIterators = iterators;
990 !tmpIterators.isAtEnd() && tmpIterators.globalIndexPair() == globalPair;
993 if(tmpIterators.globalIndexPair().second == attribute) {
1001 iterators.insert(RemoteIndex(
Attribute(attribute)),globalPair);
1004 template<
typename T>
1005 template<
typename T1>
1006 void IndicesSyncer<T>::recvAndUnpack(T1& numberer)
1009 auto iEnd = constIndexSet.end();
1010 auto index = constIndexSet.begin();
1014 assert(checkReset());
1019 MPI_Probe(MPI_ANY_SOURCE, 345, remoteIndices_.
communicator(), &status);
1021 int source=status.MPI_SOURCE;
1023 MPI_Get_count(&status, MPI_PACKED, &count);
1025 Dune::dvverb<<rank_<<
": Receiving message from "<< source<<
" with "<<count<<
" bytes"<<std::endl;
1027 if(count>receiveBufferSize_) {
1028 receiveBufferSize_=count;
1029 delete[] receiveBuffer_;
1030 receiveBuffer_ =
new char[receiveBufferSize_];
1033 MPI_Recv(receiveBuffer_, count, MPI_PACKED, source, 345, remoteIndices_.
communicator(), &status);
1036 MPI_Unpack(receiveBuffer_, count, &bpos, &publish, 1, MPI_INT, remoteIndices_.
communicator());
1043 char sourceAttribute;
1046 MPI_Unpack(receiveBuffer_, count, &bpos, &global, 1, MPITraits<GlobalIndex>::getType(),
1048 MPI_Unpack(receiveBuffer_, count, &bpos, &sourceAttribute, 1, MPI_CHAR,
1050 MPI_Unpack(receiveBuffer_, count, &bpos, &pairs, 1, MPI_INT,
1055 SLList<std::pair<int,Attribute> > sourceAttributeList;
1056 sourceAttributeList.push_back(std::make_pair(source,
Attribute(sourceAttribute)));
1058 bool foundSelf =
false;
1063 for(; pairs>0; --pairs) {
1067 MPI_Unpack(receiveBuffer_, count, &bpos, &process, 1, MPI_INT,
1070 MPI_Unpack(receiveBuffer_, count, &bpos, &attribute, 1, MPI_CHAR,
1073 if(process==rank_) {
1081 auto pos = std::lower_bound(index, iEnd,
IndexPair(global));
1083 if(pos == iEnd || pos->global() != global) {
1085 indexSet_.add(global,
1086 ParallelLocalIndex<Attribute>(numberer(global),
1087 myAttribute,
true));
1088 Dune::dvverb <<
"Adding "<<global<<
" "<<myAttribute<<std::endl;
1093 bool indexIsThere =
false;
1096 for(; pos->global()==global; ++pos)
1097 if(pos->local().attribute() == myAttribute) {
1098 Dune::dvverb<<
"found "<<global<<
" "<<myAttribute<<std::endl;
1099 indexIsThere =
true;
1104 indexSet_.add(global,
1105 ParallelLocalIndex<Attribute>(numberer(global),
1106 myAttribute,
true));
1107 Dune::dvverb <<
"Adding "<<global<<
" "<<myAttribute<<std::endl;
1111 sourceAttributeList.push_back(std::make_pair(process,
Attribute(attribute)));
1116 typedef typename SLList<std::pair<int,Attribute> >::const_iterator Iter;
1117 for(Iter i=sourceAttributeList.begin(), end=sourceAttributeList.end();
1119 insertIntoRemoteIndexList(i->first, std::make_pair(global, myAttribute),
1124 resetIteratorsMap();
1127 template<
typename T>
1128 void IndicesSyncer<T>::resetIteratorsMap(){
1131 const auto remoteEnd = remoteIndices_.remoteIndices_.end();
1132 auto iterators = iteratorsMap_.begin();
1133 auto global = globalMap_.begin();
1134 auto added = oldMap_.begin();
1136 for(
auto remote = remoteIndices_.remoteIndices_.begin();
1137 remote != remoteEnd; ++remote, ++global, ++added, ++iterators) {
1138 iterators->second.reset(*(remote->second.first), global->second, added->second);
1142 template<
typename T>
1143 bool IndicesSyncer<T>::checkReset(
const Iterators& iterators, RemoteIndexList& rList, GlobalIndexList& gList,
1146 if(std::get<0>(iterators.iterators_) != rList.begin())
1148 if(std::get<1>(iterators.iterators_) != gList.begin())
1150 if(std::get<2>(iterators.iterators_) != bList.begin())
1156 template<
typename T>
1157 bool IndicesSyncer<T>::checkReset(){
1160 const auto remoteEnd = remoteIndices_.remoteIndices_.end();
1161 auto iterators = iteratorsMap_.begin();
1162 auto global = globalMap_.begin();
1163 auto added = oldMap_.begin();
1166 for(
auto remote = remoteIndices_.remoteIndices_.begin();
1167 remote != remoteEnd; ++remote, ++global, ++added, ++iterators) {
1168 if(!checkReset(iterators->second, *(remote->second.first), global->second,
A pair consisting of a global and local index.
Definition: indexset.hh:85
Class for recomputing missing indices of a distributed index set.
Definition: indicessyncer.hh:41
Information about an index residing on another processor.
Definition: remoteindices.hh:73
The indices present on remote processes.
Definition: remoteindices.hh:189
MPI_Comm communicator() const
Get the mpi communicator used.
Definition: remoteindices.hh:1696
const_iterator end() const
Get an iterator over all remote index lists.
Definition: remoteindices.hh:1529
int neighbours() const
Get the number of processors we share indices with.
Definition: remoteindices.hh:1446
typename std::allocator_traits< A >::template rebind_alloc< RemoteIndex > Allocator
The type of the allocator for the remote index list.
Definition: remoteindices.hh:237
const_iterator begin() const
Get an iterator over all remote index lists.
Definition: remoteindices.hh:1522
A mutable iterator for the SLList.
Definition: sllist.hh:271
A single linked list.
Definition: sllist.hh:44
Dune::RemoteIndices< ParallelIndexSet > RemoteIndices
Type of the remote indices.
Definition: indicessyncer.hh:59
int publish
The number of indices we publish for the other process.
Definition: indicessyncer.hh:126
void repairLocalIndexPointers(std::map< int, SLList< std::pair< typename T::GlobalIndex, typename T::LocalIndex::Attribute >, A > > &globalMap, RemoteIndices< T, A1 > &remoteIndices, const T &indexSet)
Repair the pointers to the local indices in the remote indices.
Definition: indicessyncer.hh:487
ParallelIndexSet::GlobalIndex GlobalIndex
Type of the global index used in the index set.
Definition: indicessyncer.hh:51
int pairs
The number of pairs (attribute and process number) we publish to the neighbour process.
Definition: indicessyncer.hh:131
ParallelIndexSet::LocalIndex::Attribute Attribute
Type of the attribute used in the index set.
Definition: indicessyncer.hh:54
IndicesSyncer(ParallelIndexSet &indexSet, RemoteIndices &remoteIndices)
Constructor.
Definition: indicessyncer.hh:536
std::size_t operator()(const GlobalIndex &global)
Provide the local index, always std::numeric_limits<size_t>::max()
Definition: indicessyncer.hh:145
T ParallelIndexSet
The type of the index set.
Definition: indicessyncer.hh:45
TG GlobalIndex
the type of the global index. This type has to provide at least a operator< for sorting.
Definition: indexset.hh:226
void storeGlobalIndicesOfRemoteIndices(std::map< int, SLList< std::pair< typename T::GlobalIndex, typename T::LocalIndex::Attribute >, A > > &globalMap, const RemoteIndices< T, A1 > &remoteIndices)
Stores the corresponding global indices of the remote index information.
Definition: indicessyncer.hh:461
void sync()
Sync the index set.
Definition: indicessyncer.hh:728
int seqNo() const
Get the internal sequence number.
ParallelIndexSet::IndexPair IndexPair
The type of the index pair.
Definition: indicessyncer.hh:48
void push_back(const MemberType &item)
Add a new entry to the end of the list.
Definition: sllist.hh:643
SLListIterator< T, A > iterator
The mutable iterator of the list.
Definition: sllist.hh:69
iterator end()
Get an iterator pointing to the end of the list.
Definition: sllist.hh:774
ModifyIterator beginModify()
Get an iterator capable of deleting and inserting elements.
Definition: sllist.hh:787
SLListConstIterator< RemoteIndex, Allocator > const_iterator
The constant iterator of the list.
Definition: sllist.hh:74
SLListModifyIterator< T, A > ModifyIterator
The type of the iterator capable of deletion and insertion.
Definition: sllist.hh:103
iterator begin()
Get an iterator pointing to the first element in the list.
Definition: sllist.hh:762
EnableIfInterOperable< T1, T2, bool >::type operator<(const RandomAccessIteratorFacade< T1, V1, R1, D > &lhs, const RandomAccessIteratorFacade< T2, V2, R2, D > &rhs)
Comparison operator.
Definition: iteratorfacades.hh:637
EnableIfInterOperable< T1, T2, bool >::type operator==(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
Checks for equality.
Definition: iteratorfacades.hh:237
EnableIfInterOperable< T1, T2, bool >::type operator!=(const ForwardIteratorFacade< T1, V1, R1, D > &lhs, const ForwardIteratorFacade< T2, V2, R2, D > &rhs)
Checks for inequality.
Definition: iteratorfacades.hh:259
auto max(ADLTag< 0 >, const V &v1, const V &v2)
implements binary Simd::max()
Definition: defaults.hh:81
DVVerbType dvverb(std::cout)
stream for very verbose output.
Definition: stdstreams.hh:95
DVerbType dverb(std::cout)
Singleton of verbose debug stream.
Definition: stdstreams.hh:116
Provides a map between global and local indices.
Dune namespace.
Definition: alignedallocator.hh:13
Classes describing a distributed indexset.
Implements a singly linked list together with the necessary iterators.
Standard Dune debug streams.