53 #ifndef MUELU_COARSEMAPFACTORY_DECL_HPP_ 54 #define MUELU_COARSEMAPFACTORY_DECL_HPP_ 56 #include "Xpetra_StridedMapFactory_fwd.hpp" 113 template <
class Scalar =
double,
class LocalOrdinal =
int,
class GlobalOrdinal = LocalOrdinal,
class Node = KokkosClassic::DefaultNode::DefaultNodeType>
115 #undef MUELU_COARSEMAPFACTORY_SHORT 162 std::vector<size_t>::const_iterator it;
189 return pL.get<LocalOrdinal>(
"Strided block id");
197 SetParameter(
"Strided block id", ParameterEntry(stridedBlockId));
214 #define MUELU_COARSEMAPFACTORY_SHORT CoarseMapFactory()
Constructor.
Factory for generating coarse level map. Used by TentativePFactory.
virtual std::vector< size_t > getStridingData() const
getStridingData returns vector with size of striding blocks in the domain DOF map (= coarse map)...
void Build(Level ¤tLevel) const
Build an object with this factory.
Namespace for MueLu classes and methods.
virtual ~CoarseMapFactory()
Destructor.
virtual LocalOrdinal getStridedBlockId() const
getStridedBlockId returns strided block id for the domain DOF map of Ptent (= coarse map) or -1 if fu...
Class that holds all level-specific information.
virtual const Teuchos::ParameterList & GetParameterList() const
void SetParameter(const std::string &name, const ParameterEntry &entry)
Set a parameter directly as a ParameterEntry.
RCP< const ParameterList > GetValidParameterList() const
Return a const parameter list of valid parameters that setParameterList() will accept.
std::vector< size_t > stridingInfo_
virtual size_t getFixedBlockSize() const
getFixedBlockSize returns the full block size (number of DOFs per node) of the domain DOF map (= coar...
virtual void setStridingData(std::vector< size_t > stridingInfo)
setStridingData set striding vector for the domain DOF map (= coarse map), e.g. (2,1) for 2 velocity dofs and 1 pressure dof
void DeclareInput(Level ¤tLevel) const
Specifies the data that this class needs, and the factories that generate that data.
Base class for factories that use one level (currentLevel).
virtual void setStridedBlockId(LocalOrdinal stridedBlockId)
setStridedBlockId set strided block id for the domain DOF map of Ptent (= coarse map) or -1 if full s...