15#ifndef dealii_portable_mg_transfer_global_coarsening_h
16#define dealii_portable_mg_transfer_global_coarsening_h
42 template <
typename Number>
43 struct MGTransferSharedData;
69 template <
int dim,
typename VectorType>
79 "This class is currently only implemented for vectors of "
80 "type LinearAlgebra::distributed::Vector.");
85 using Number =
typename VectorType::value_type;
107 interpolate(VectorType &dst,
const VectorType &src)
const override;
113 std::pair<bool, bool>
115 const std::shared_ptr<const Utilities::MPI::Partitioner>
117 const std::shared_ptr<const Utilities::MPI::Partitioner>
129 std::pair<const DoFHandler<dim> *,
unsigned int>
178 Kokkos::View<Number *, MemorySpace::Default::kokkos_space>
184 Kokkos::View<unsigned int **, MemorySpace::Default::kokkos_space>
190 Kokkos::View<unsigned int **, MemorySpace::Default::kokkos_space>
196 Kokkos::View<Number **, MemorySpace::Default::kokkos_space>
weights;
207 MemorySpace::Default::kokkos_space::execution_space>::member_type;
211 MemorySpace::Default::kokkos_space::execution_space::
212 scratch_memory_space,
213 Kokkos::MemoryTraits<Kokkos::Unmanaged>>;
244 const VectorType &src)
const override;
248 const VectorType &src)
const override;
friend class ObserverPointer
std::shared_ptr< const Utilities::MPI::Partitioner > partitioner_fine
std::shared_ptr< const Utilities::MPI::Partitioner > partitioner_coarse
friend class internal::MGTwoLevelTransferImplementation
::MGTwoLevelTransfer< dim, LinearAlgebra::distributed::Vector< Number, MemorySpace::Host > > transfer_cpu
unsigned int n_components
void prolongate_and_add_internal(VectorType &dst, const VectorType &src) const override
std::pair< bool, bool > enable_inplace_operations_if_possible(const std::shared_ptr< const Utilities::MPI::Partitioner > &partitioner_coarse, const std::shared_ptr< const Utilities::MPI::Partitioner > &partitioner_fine) override
typename VectorType::value_type Number
std::pair< const DoFHandler< dim > *, unsigned int > get_dof_handler_fine() const override
void interpolate(VectorType &dst, const VectorType &src) const override
unsigned int mg_level_fine
ObserverPointer< const DoFHandler< dim > > dof_handler_fine
void reinit_geometric_transfer(const DoFHandler< dim > &dof_handler_fine, const DoFHandler< dim > &dof_handler_coarse, const AffineConstraints< Number > &constraint_fine=AffineConstraints< Number >(), const AffineConstraints< Number > &constraint_coarse=AffineConstraints< Number >(), const unsigned int mg_level_fine=numbers::invalid_unsigned_int, const unsigned int mg_level_coarse=numbers::invalid_unsigned_int)
std::vector< MGTransferScheme > schemes
void restrict_and_add_internal(VectorType &dst, const VectorType &src) const override
std::size_t memory_consumption() const override
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
constexpr unsigned int invalid_unsigned_int
unsigned int degree_coarse
unsigned int n_dofs_per_cell_coarse
Kokkos::View< Number *, MemorySpace::Default::kokkos_space > prolongation_matrix
Kokkos::View< unsigned int **, MemorySpace::Default::kokkos_space > dof_indices_fine
unsigned int n_dofs_per_cell_fine
Kokkos::View< unsigned int **, MemorySpace::Default::kokkos_space > dof_indices_coarse
Kokkos::View< Number **, MemorySpace::Default::kokkos_space > weights
unsigned int n_coarse_cells
SharedViewScratchPad & values_fine
SharedViewScratchPad & values_coarse
Kokkos::TeamPolicy< MemorySpace::Default::kokkos_space::execution_space >::member_type TeamHandle
const SharedViewScratchPad & prolongation_matrix_device
Kokkos::View< Number *, MemorySpace::Default::kokkos_space::execution_space:: scratch_memory_space, Kokkos::MemoryTraits< Kokkos::Unmanaged > > SharedViewScratchPad
SharedViewScratchPad & scratch_pad