42 #ifndef TPETRA_DIRECTORY_DECL_HPP 43 #define TPETRA_DIRECTORY_DECL_HPP 45 #include <Kokkos_DefaultNode.hpp> 46 #include <Teuchos_Describable.hpp> 47 #include "Tpetra_ConfigDefs.hpp" 49 #include "Tpetra_DirectoryImpl_decl.hpp" 121 template<
class LocalOrdinal,
122 class GlobalOrdinal = LocalOrdinal,
123 class Node = Kokkos::DefaultNode::DefaultNodeType>
161 template <
class Node2>
165 typedef LocalOrdinal LO;
166 typedef GlobalOrdinal GO;
167 using Teuchos::rcp_dynamic_cast;
170 if (clone_map->isDistributed ()) {
171 if (clone_map->isUniform ()) {
173 dir->impl_ = rcp_dynamic_cast<
const impl_type> (impl_)->
template clone<Node2> (clone_map);
175 else if (clone_map->isContiguous ()) {
177 dir->impl_ = rcp_dynamic_cast<
const impl_type> (impl_)->
template clone<Node2> (clone_map);
181 dir->impl_ = rcp_dynamic_cast<
const impl_type> (impl_)->
template clone<Node2> (clone_map);
186 dir->impl_ = rcp_dynamic_cast<
const impl_type> (impl_)->
template clone<Node2> (clone_map);
281 template <
class LO,
class GO,
class N>
friend class Directory;
293 #endif // TPETRA_DIRECTORY_DECL_HPP Namespace Tpetra contains the class and methods constituting the Tpetra library.
Implementation of Directory for a locally replicated Map.
Map< LocalOrdinal, GlobalOrdinal, Node > map_type
Type of the Map specialization to give to the constructor.
RCP< Directory< LocalOrdinal, GlobalOrdinal, Node2 > > clone(const RCP< const Map< LocalOrdinal, GlobalOrdinal, Node2 > > &clone_map) const
Clone the Directory for a different Node type, using a cloned Map.
Implementation of Directory for a distributed noncontiguous Map.
Implementation of Directory for a distributed contiguous Map.
Declarations for the Tpetra::Map class and related nonmember constructors.
LookupStatus getDirectoryEntries(const Teuchos::ArrayView< const GlobalOrdinal > &globalIDs, const Teuchos::ArrayView< int > &nodeIDs) const
Given a global ID list, return the list of their owning process IDs.
Describes a parallel distribution of objects over processes.
Computes the local ID and process ID corresponding to given global IDs.
Implement mapping from global ID to process ID and local ID.
std::string description() const
A one-line human-readable description of this object.