// @HEADER // ***************************************************************************** // MueLu: A package for multigrid based preconditioning // // Copyright 2012 NTESS and the MueLu contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef MUELU_PATTERNFACTORY_DECL_HPP #define MUELU_PATTERNFACTORY_DECL_HPP #include "MueLu_ConfigDefs.hpp" #include "MueLu_TwoLevelFactoryBase.hpp" #include "MueLu_Level_fwd.hpp" #include "MueLu_Utilities_fwd.hpp" namespace MueLu { /*! @class PatternFactory class. @brief Factory for building nonzero patterns for energy minimization. @ingroup MueLuTransferClasses */ template class PatternFactory : public TwoLevelFactoryBase { #undef MUELU_PATTERNFACTORY_SHORT #include "MueLu_UseShortNames.hpp" public: //! @name Constructors/Destructors. //@{ //! @brief Constructor. PatternFactory() {} //! Destructor. virtual ~PatternFactory() {} //@} RCP GetValidParameterList() const; //! @name Input //@{ void DeclareInput(Level& fineLevel, Level& coarseLevel) const; //@} //! @name Build methods. //@{ /*! @brief Build method. Builds nonzero pattern (graph) and returns it in coarseLevel. */ void Build(Level& fineLevel, Level& coarseLevel) const; //@} }; // class PatternFactory } // namespace MueLu #define MUELU_PATTERNFACTORY_SHORT #endif // MUELU_PATTERNFACTORY_DECL_HPP