DataTransferKit - Multiphysics Solution Transfer Services  2.0
Public Member Functions | List of all members
DataTransferKit::CenterDistributor< DIM > Class Template Reference

Global source distributor. More...

#include <DTK_CenterDistributor.hpp>

Public Member Functions

 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. More...
 
template<class T >
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. More...
 

Detailed Description

template<int DIM>
class DataTransferKit::CenterDistributor< DIM >

Global source distributor.

The CenterDistributor distributes the centers to their target processes. In addition, it saves that communication plan to move source field values to the same destination processes.

Definition at line 66 of file DTK_CenterDistributor.hpp.

Constructor & Destructor Documentation

template<int DIM>
DataTransferKit::CenterDistributor< DIM >::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.

Definition at line 59 of file DTK_CenterDistributor_impl.hpp.

Member Function Documentation

template<int DIM>
template<class T >
void DataTransferKit::CenterDistributor< DIM >::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.

Definition at line 150 of file DTK_CenterDistributor_impl.hpp.


The documentation for this class was generated from the following files: