42 #ifndef TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
43 #define TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
45 #include "TpetraCore_config.h"
47 #include "Kokkos_DualView.hpp"
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
73 template<
class T>
class Array;
75 template<
class T>
class ArrayView;
77 #endif // DOXYGEN_SHOULD_SKIP_THIS
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84 #endif // DOXYGEN_SHOULD_SKIP_THIS
143 template<
class LO,
class GO,
class NT>
146 const CrsGraph<LO, GO, NT> & sourceGraph,
147 const Teuchos::ArrayView<const LO> &importLIDs,
148 const Teuchos::ArrayView<
const typename CrsGraph<LO,GO,NT>::packet_type> &imports,
149 const Teuchos::ArrayView<const size_t>& numPacketsPerLID,
150 size_t constantNumPackets,
154 const Teuchos::ArrayView<const LO>& permuteToLIDs,
155 const Teuchos::ArrayView<const LO>& permuteFromLIDs);
171 template<
class LO,
class GO,
class NT>
174 const CrsGraph<LO, GO, NT> & sourceGraph,
175 const Teuchos::ArrayView<const LO>& importLIDs,
176 const Teuchos::ArrayView<
const typename CrsGraph<LO,GO,NT>::packet_type>& imports,
177 const Teuchos::ArrayView<const size_t>& numPacketsPerLID,
178 const size_t constantNumPackets,
181 const size_t numSameIDs,
182 const Teuchos::ArrayView<const LO>& permuteToLIDs,
183 const Teuchos::ArrayView<const LO>& permuteFromLIDs,
184 size_t TargetNumRows,
185 size_t TargetNumNonzeros,
186 const int MyTargetPID,
187 const Teuchos::ArrayView<size_t>& CRS_rowptr,
188 const Teuchos::ArrayView<GO>& CRS_colind,
189 const Teuchos::ArrayView<const int>& SourcePids,
190 Teuchos::Array<int>& TargetPids);
195 #endif // TPETRA_DETAILS_UNPACKCRSGRAPHANDCOMBINE_DECL_HPP
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, Distributor &distor, 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...
Declaration of Tpetra::CombineMode enum, and a function for setting a Tpetra::CombineMode parameter i...
CombineMode
Rule for combining data in an Import or Export.
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, Distributor &distor, 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
Declaration of the Tpetra::DistObject class.
Forward declaration of Tpetra::CrsGraph.