41 #ifndef DTK_CENTERDISTRIBUTOR_HPP 42 #define DTK_CENTERDISTRIBUTOR_HPP 46 #include <Teuchos_Array.hpp> 47 #include <Teuchos_ArrayView.hpp> 48 #include <Teuchos_Comm.hpp> 49 #include <Teuchos_RCP.hpp> 51 #include <Tpetra_Distributor.hpp> 71 const Teuchos::ArrayView<const double> &source_centers,
72 const Teuchos::ArrayView<const double> &target_centers,
74 Teuchos::Array<double> &target_decomp_source_centers );
78 int getNumExports()
const {
return d_num_exports; }
82 int getNumImports()
const {
return d_num_imports; }
87 void distribute(
const Teuchos::ArrayView<const T> &source_decomp_data,
88 const Teuchos::ArrayView<T> &target_decomp_data )
const;
93 const Teuchos::ArrayView<const double> &target_centers )
const;
97 Teuchos::RCP<Tpetra::Distributor> d_distributor;
106 Teuchos::Array<unsigned> d_export_ids;
121 #endif // end DTK_CENTERDISTRIBUTOR_HPP CenterDistributor(const Teuchos::RCP< const Teuchos::Comm< int >> &comm, const Teuchos::ArrayView< const double > &source_centers, const Teuchos::ArrayView< const double > &target_centers, const double radius, Teuchos::Array< double > &target_decomp_source_centers)
Constructor.
Global acenter distributor.
Global source distributor.
Axis-aligned Cartesian cloud domain container.
void distribute(const Teuchos::ArrayView< const T > &source_decomp_data, const Teuchos::ArrayView< T > &target_decomp_data) const
Given a set of scalar values at the given source centers in the source decomposition, distribute them to the target decomposition.
Cloud domain declaration.