47#ifndef MUELU_REGIONRFACTORY_KOKKOS_DECL_HPP
48#define MUELU_REGIONRFACTORY_KOKKOS_DECL_HPP
53#include <KokkosCompat_ClassicNodeAPI_Wrapper.hpp>
54#include <Kokkos_Core.hpp>
71#undef MUELU_REGIONRFACTORY_KOKKOS_SHORT
75 using real_type =
typename Teuchos::ScalarTraits<SC>::coordinateType;
79 using device_type = Kokkos::Device<execution_space, memory_space>;
81 using LOTupleView =
typename Kokkos::View<LO[3], device_type>;
106 void Build3D(
const int numDimensions,
107 Array<LO>& lFineNodesPerDim,
108 const RCP<Matrix>& A,
109 const RCP<realvaluedmultivector_type>& fineCoordinates,
111 RCP<realvaluedmultivector_type>& coarseCoordinates,
112 Array<LO>& lCoarseNodesPerDim)
const;
120#define MUELU_REGIONRFACTORY_KOKKOS_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Factory that builds a restriction operator for region multigrid.
RegionRFactory_kokkos()=default
Default Constructor.
typename Teuchos::ScalarTraits< SC >::coordinateType real_type
typename Xpetra::MultiVector< real_type, LO, GO, NO > realvaluedmultivector_type
typename Node::memory_space memory_space
typename Kokkos::View< int[3], device_type > intTupleView
typename Kokkos::View< LO[3], device_type > LOTupleView
Kokkos::Device< execution_space, memory_space > device_type
void Build3D(const int numDimensions, Array< LO > &lFineNodesPerDim, const RCP< Matrix > &A, const RCP< realvaluedmultivector_type > &fineCoordinates, RCP< Matrix > &R, RCP< realvaluedmultivector_type > &coarseCoordinates, Array< LO > &lCoarseNodesPerDim) const
typename Node::execution_space execution_space
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
RCP< const ParameterList > GetValidParameterList() const
Input.
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
virtual ~RegionRFactory_kokkos()=default
Destructor.
Base class for factories that use two levels (fineLevel and coarseLevel).
Namespace for MueLu classes and methods.
KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar