10#ifndef MUELU_TENTATIVEPFACTORY_KOKKOS_DECL_HPP
11#define MUELU_TENTATIVEPFACTORY_KOKKOS_DECL_HPP
17#include <Tpetra_KokkosCompat_ClassicNodeAPI_Wrapper.hpp>
19#include "Teuchos_ScalarTraits.hpp"
21#include "Xpetra_CrsGraphFactory_fwd.hpp"
27#include "MueLu_PFactory.hpp"
69template <
class Scalar,
class LocalOrdinal,
class GlobalOrdinal,
class Node>
75 typedef Kokkos::RangePolicy<local_ordinal_type, execution_space>
range_type;
78 typedef typename Teuchos::ScalarTraits<Scalar>::coordinateType
real_type;
82#undef MUELU_TENTATIVEPFACTORY_KOKKOS_SHORT
116 RCP<MultiVector> fineNullspace, RCP<const Map> coarseMap, RCP<Matrix>& Ptentative, RCP<MultiVector>& coarseNullspace,
const int levelID)
const;
118 bool isGoodMap(
const Map& rowMap,
const Map& colMap)
const;
120 void BuildPcoupled(RCP<Matrix> A, RCP<Aggregates> aggregates,
121 RCP<AmalgamationInfo> amalgInfo, RCP<MultiVector> fineNullspace,
122 RCP<const Map> coarseMap, RCP<Matrix>& Ptentative,
123 RCP<MultiVector>& coarseNullspace)
const;
126 RCP<AmalgamationInfo> amalgInfo, RCP<MultiVector> fineNullspace,
127 RCP<const Map> coarseMap, RCP<Matrix>& Ptentative,
128 RCP<MultiVector>& coarseNullspace,
const int levelID)
const;
135#define MUELU_TENTATIVEPFACTORY_KOKKOS_SHORT
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Class that holds all level-specific information.
Factory that provides an interface for a concrete implementation of a prolongation operator.
bool bTransferCoordinates_
bool isGoodMap(const Map &rowMap, const Map &colMap) const
TentativePFactory_kokkos()
Constructor.
void BuildP(Level &fineLevel, Level &coarseLevel) const
Abstract Build method.
void BuildPuncoupledBlockCrs(Level &coarseLevel, RCP< Matrix > A, RCP< Aggregates > aggregates, RCP< AmalgamationInfo > amalgInfo, RCP< MultiVector > fineNullspace, RCP< const Map > coarseMap, RCP< Matrix > &Ptentative, RCP< MultiVector > &coarseNullspace, const int levelID) const
virtual ~TentativePFactory_kokkos()
Destructor.
Kokkos::RangePolicy< local_ordinal_type, execution_space > range_type
void BuildPuncoupled(Level &coarseLevel, RCP< Matrix > A, RCP< Aggregates > aggregates, RCP< AmalgamationInfo > amalgInfo, RCP< MultiVector > fineNullspace, RCP< const Map > coarseMap, RCP< Matrix > &Ptentative, RCP< MultiVector > &coarseNullspace, const int levelID) const
void Build(Level &fineLevel, Level &coarseLevel) const
Build an object with this factory.
Node::execution_space execution_space
Node::device_type DeviceType
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
Teuchos::ScalarTraits< Scalar >::coordinateType real_type
void DeclareInput(Level &fineLevel, Level &coarseLevel) const
Input.
Xpetra::MultiVector< real_type, LocalOrdinal, GlobalOrdinal, node_type > RealValuedMultiVector
void BuildPcoupled(RCP< Matrix > A, RCP< Aggregates > aggregates, RCP< AmalgamationInfo > amalgInfo, RCP< MultiVector > fineNullspace, RCP< const Map > coarseMap, RCP< Matrix > &Ptentative, RCP< MultiVector > &coarseNullspace) const
GlobalOrdinal global_ordinal_type
LocalOrdinal local_ordinal_type
Namespace for MueLu classes and methods.