| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// MueLu: A package for multigrid based preconditioning |
| 4 |
// |
| 5 |
// Copyright 2012 NTESS and the MueLu contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
#ifndef MUELU_REORDERBLOCKAFACTORY_DECL_HPP_ |
| 11 |
#define MUELU_REORDERBLOCKAFACTORY_DECL_HPP_ |
| 12 |
|
| 13 |
#include <Xpetra_Map_fwd.hpp> |
| 14 |
#include <Xpetra_MapExtractor_fwd.hpp> |
| 15 |
#include <Xpetra_StridedMap_fwd.hpp> |
| 16 |
#include <Xpetra_StridedMapFactory_fwd.hpp> |
| 17 |
#include "Xpetra_ReorderedBlockedCrsMatrix_fwd.hpp" |
| 18 |
|
| 19 |
#include "MueLu_ConfigDefs.hpp" |
| 20 |
#include "MueLu_SingleLevelFactoryBase.hpp" |
| 21 |
|
| 22 |
namespace MueLu { |
| 23 |
|
| 24 |
/*! |
| 25 |
@class ReorderBlockAFactory class. |
| 26 |
@brief Factory for building a reordered (nested) block operator |
| 27 |
|
| 28 |
Example |
| 29 |
\code |
| 30 |
Teuchos::RCP<Xpetra::BlockedCrsMatrix<Scalar,LO,GO,Node> > bOp = ...; |
| 31 |
bOp->fillComplete(); |
| 32 |
|
| 33 |
TODO |
| 34 |
\endcode |
| 35 |
*/ |
| 36 |
|
| 37 |
template <class Scalar, class LocalOrdinal, class GlobalOrdinal, class Node> |
| 38 |
class ReorderBlockAFactory : public SingleLevelFactoryBase { |
| 39 |
#undef MUELU_REORDERBLOCKAFACTORY_SHORT |
| 40 |
#include "MueLu_UseShortNames.hpp" |
| 41 |
|
| 42 |
public: |
| 43 |
//! Input |
| 44 |
//@{ |
| 45 |
|
| 46 |
RCP<const ParameterList> GetValidParameterList() const; |
| 47 |
|
| 48 |
void DeclareInput(Level ¤tLevel) const; |
| 49 |
|
| 50 |
//@} |
| 51 |
|
| 52 |
//@{ |
| 53 |
//! @name Build methods. |
| 54 |
|
| 55 |
/*! @brief Build an object with this factory. |
| 56 |
*/ |
| 57 |
void Build(Level ¤tLevel) const; |
| 58 |
|
| 59 |
//@} |
| 60 |
}; // class ReorderBlockAFactory |
| 61 |
|
| 62 |
} // namespace MueLu |
| 63 |
|
| 64 |
#define MUELU_REORDERBLOCKAFACTORY_SHORT |
| 65 |
#endif /* MUELU_REORDERBLOCKAFACTORY_DECL_HPP_ */ |