47 #ifndef MUELU_COARSEMAPFACTORY_DECL_HPP_ 48 #define MUELU_COARSEMAPFACTORY_DECL_HPP_ 50 #include "Xpetra_StridedMapFactory_fwd.hpp" 115 #undef MUELU_COARSEMAPFACTORY_SHORT 139 void Build(
Level ¤tLevel)
const override;
153 std::vector<size_t>::const_iterator it;
188 SetParameter(
"Strided block id", ParameterEntry(stridedBlockId));
204 LocalOrdinal stridedBlockId,
const size_t nullspaceDimension)
const;
213 #define MUELU_COARSEMAPFACTORY_SHORT MueLu::DefaultLocalOrdinal LocalOrdinal
Factory for generating coarse level map. Used by TentativePFactory.
KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
virtual GlobalOrdinal GetDomainGIDOffset(Level ¤tLevel) const
Extract domain GID offset from user data.
virtual std::vector< size_t > getStridingData() const
getStridingData returns vector with size of striding blocks in the domain DOF map (= coarse map)...
virtual void BuildCoarseMap(Level ¤tLevel, const GlobalOrdinal domainGIDOffset) const
Build the coarse map using the domain GID offset.
Namespace for MueLu classes and methods.
RCP< const ParameterList > GetValidParameterList() const override
Return a const parameter list of valid parameters that setParameterList() will accept.
virtual LocalOrdinal getStridedBlockId() const
getStridedBlockId returns strided block id for the domain DOF map of Ptent (= coarse map) or -1 if fu...
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
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.
std::vector< size_t > stridingInfo_
Vector with size of strided blocks (dofs)
void Build(Level ¤tLevel) const override
Build an object with this factory.
virtual size_t getFixedBlockSize() const
Get information on the fixed block size.
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
virtual void CheckForConsistentStridingInformation(LocalOrdinal stridedBlockId, const size_t nullspaceDimension) const
void DeclareInput(Level ¤tLevel) const override
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...