40#ifndef TPETRA_DETAILS_TIEBREAK_HPP
41#define TPETRA_DETAILS_TIEBREAK_HPP
47#include "Teuchos_RCP.hpp"
67 template <
typename LocalOrdinal,
typename GlobalOrdinal>
127 const std::vector<std::pair<int, LocalOrdinal> >&
pid_and_lid)
const = 0;
Forward declaration for Tpetra::TieBreak.
Struct that holds views of the contents of a CrsMatrix.
Interface for breaking ties in ownership.
virtual ~TieBreak()=default
Virtual destructor (for memory safety of derived classes).
virtual bool mayHaveSideEffects() const
Whether selectedIndex() may have side effects.
virtual std::size_t selectedIndex(GlobalOrdinal GID, const std::vector< std::pair< int, LocalOrdinal > > &pid_and_lid) const =0
Break any ties in ownership of the given global index GID.
Implementation details of Tpetra.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
Representation of a global index on a process.