10 #ifndef TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
11 #define TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
13 #include "TpetraCore_config.h"
15 #include "Kokkos_DualView.hpp"
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
41 template<
class T>
class Array;
43 template<
class T>
class ArrayView;
45 #endif // DOXYGEN_SHOULD_SKIP_THIS
104 template<
class LO,
class GO,
class NT>
107 const CrsGraph<LO, GO, NT> & sourceGraph,
108 const Teuchos::ArrayView<const LO> &importLIDs,
109 const Teuchos::ArrayView<
const typename CrsGraph<LO,GO,NT>::packet_type> &imports,
110 const Teuchos::ArrayView<const size_t>& numPacketsPerLID,
111 size_t constantNumPackets,
114 const Teuchos::ArrayView<const LO>& permuteToLIDs,
115 const Teuchos::ArrayView<const LO>& permuteFromLIDs);
131 template<
class LO,
class GO,
class NT>
134 const CrsGraph<LO, GO, NT> & sourceGraph,
135 const Teuchos::ArrayView<const LO>& importLIDs,
136 const Teuchos::ArrayView<
const typename CrsGraph<LO,GO,NT>::packet_type>& imports,
137 const Teuchos::ArrayView<const size_t>& numPacketsPerLID,
138 const size_t constantNumPackets,
140 const size_t numSameIDs,
141 const Teuchos::ArrayView<const LO>& permuteToLIDs,
142 const Teuchos::ArrayView<const LO>& permuteFromLIDs,
143 size_t TargetNumRows,
144 size_t TargetNumNonzeros,
145 const int MyTargetPID,
146 const Teuchos::ArrayView<size_t>& CRS_rowptr,
147 const Teuchos::ArrayView<GO>& CRS_colind,
148 const Teuchos::ArrayView<const int>& SourcePids,
149 Teuchos::Array<int>& TargetPids);
154 #endif // TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
Declaration of Tpetra::CombineMode enum, and a function for setting a Tpetra::CombineMode parameter i...
void unpackAndCombineIntoCrsArrays(const CrsGraph< LO, GO, NT > &sourceGraph, const Teuchos::ArrayView< const LO > &importLIDs, const Teuchos::ArrayView< const typename CrsGraph< LO, GO, NT >::packet_type > &imports, const Teuchos::ArrayView< const size_t > &numPacketsPerLID, const size_t constantNumPackets, const CombineMode combineMode, const size_t numSameIDs, const Teuchos::ArrayView< const LO > &permuteToLIDs, const Teuchos::ArrayView< const LO > &permuteFromLIDs, size_t TargetNumRows, size_t TargetNumNonzeros, const int MyTargetPID, const Teuchos::ArrayView< size_t > &CRS_rowptr, const Teuchos::ArrayView< GO > &CRS_colind, const Teuchos::ArrayView< const int > &SourcePids, Teuchos::Array< int > &TargetPids)
unpackAndCombineIntoCrsArrays
CombineMode
Rule for combining data in an Import or Export.
Declaration of the Tpetra::DistObject class.
size_t unpackAndCombineWithOwningPIDsCount(const CrsGraph< LO, GO, NT > &sourceGraph, const Teuchos::ArrayView< const LO > &importLIDs, const Teuchos::ArrayView< const typename CrsGraph< LO, GO, NT >::packet_type > &imports, const Teuchos::ArrayView< const size_t > &numPacketsPerLID, size_t constantNumPackets, CombineMode combineMode, size_t numSameIDs, const Teuchos::ArrayView< const LO > &permuteToLIDs, const Teuchos::ArrayView< const LO > &permuteFromLIDs)
Special version of Tpetra::Details::unpackCrsGraphAndCombine that also unpacks owning process ranks...
Forward declaration of Tpetra::CrsGraph.