* @note: The @p trilinos_vec is not allowed to have ghost entries.
*/
void
- import(
- const TrilinosWrappers::MPI::Vector & trilinos_vec,
- VectorOperation::values operation,
- std::shared_ptr<const CommunicationPatternBase> communication_pattern =
- std::shared_ptr<const CommunicationPatternBase>());
+ import(const TrilinosWrappers::MPI::Vector &trilinos_vec,
+ VectorOperation::values operation,
+ const std::shared_ptr<const CommunicationPatternBase>
+ &communication_pattern =
+ std::shared_ptr<const CommunicationPatternBase>());
# ifdef DEAL_II_WITH_MPI
/**
* performance.
*/
void
- import(
- const EpetraWrappers::Vector & epetra_vec,
- VectorOperation::values operation,
- std::shared_ptr<const CommunicationPatternBase> communication_pattern =
- std::shared_ptr<const CommunicationPatternBase>());
+ import(const EpetraWrappers::Vector &epetra_vec,
+ VectorOperation::values operation,
+ const std::shared_ptr<const CommunicationPatternBase>
+ &communication_pattern =
+ std::shared_ptr<const CommunicationPatternBase>());
# endif
#endif
* replace the current elements. The last parameter is not used.
*/
void
- import(
- const CUDAWrappers::Vector<Number> & cuda_vec,
- VectorOperation::values operation,
- std::shared_ptr<const CommunicationPatternBase> communication_pattern =
- std::shared_ptr<const CommunicationPatternBase>());
+ import(const CUDAWrappers::Vector<Number> &cuda_vec,
+ VectorOperation::values operation,
+ const std::shared_ptr<const CommunicationPatternBase>
+ &communication_pattern =
+ std::shared_ptr<const CommunicationPatternBase>());
#endif
/**
template <typename Number>
void
ReadWriteVector<Number>::import(
- const TrilinosWrappers::MPI::Vector & trilinos_vec,
- VectorOperation::values operation,
- std::shared_ptr<const CommunicationPatternBase> communication_pattern)
+ const TrilinosWrappers::MPI::Vector &trilinos_vec,
+ VectorOperation::values operation,
+ const std::shared_ptr<const CommunicationPatternBase>
+ &communication_pattern)
{
// While the import does work with Trilinos 12.8.x, it fails with 12.4.x. To
// be safe, we disable it here. Note that it would be a useful case, as
template <typename Number>
void
ReadWriteVector<Number>::import(
- const LinearAlgebra::EpetraWrappers::Vector & trilinos_vec,
- VectorOperation::values operation,
- std::shared_ptr<const CommunicationPatternBase> communication_pattern)
+ const LinearAlgebra::EpetraWrappers::Vector &trilinos_vec,
+ VectorOperation::values operation,
+ const std::shared_ptr<const CommunicationPatternBase>
+ &communication_pattern)
{
import(trilinos_vec.trilinos_vector(),
trilinos_vec.locally_owned_elements(),
ReadWriteVector<Number>::import(
const LinearAlgebra::CUDAWrappers::Vector<Number> &cuda_vec,
VectorOperation::values operation,
- std::shared_ptr<const CommunicationPatternBase>)
+ const std::shared_ptr<const CommunicationPatternBase> &)
{
const unsigned int n_elements = stored_elements.n_elements();
if (operation == VectorOperation::insert)