10 #ifndef MUELU_CREATE_EPETRA_PRECONDITIONER_CPP
11 #define MUELU_CREATE_EPETRA_PRECONDITIONER_CPP
16 #include <Xpetra_MultiVectorFactory.hpp>
22 #include <MueLu_Hierarchy.hpp>
25 #include <MueLu_ParameterListInterpreter.hpp>
26 #include <MueLu_Utilities.hpp>
27 #include <MueLu_HierarchyUtils.hpp>
31 #if defined(HAVE_MUELU_EPETRA)
61 coordinates = EpetraMultiVector_To_XpetraMultiVector<typename Teuchos::ScalarTraits<SC>::coordinateType, LO, GO,
NO>(userList.
get<
RCP<Epetra_MultiVector> >(
"Coordinates"));
81 RCP<Matrix> A = EpetraCrs_To_XpetraMatrix<SC, LO, GO, NO>(inA);
82 RCP<Hierarchy> H = MueLu::CreateXpetraPreconditioner<SC, LO, GO, NO>(A, paramListIn);
95 const std::string& xmlFileName) {
126 RCP<Matrix> A = EpetraCrs_To_XpetraMatrix<SC, LO, GO, NO>(inA);
128 MueLu::ReuseXpetraPreconditioner<SC, LO, GO, NO>(A, H);
132 #endif // HAVE_MUELU_SERIAL and HAVE_MUELU_EPETRA
134 #endif // ifndef MUELU_CREATE_EPETRA_PRECONDITIONER_CPP
Various adapters that will create a MueLu preconditioner that is an Xpetra::Matrix.
void ReuseEpetraPreconditioner(const Teuchos::RCP< Epetra_CrsMatrix > &inA, MueLu::EpetraOperator &Op)
T & get(const std::string &name, T def_value)
bool nonnull(const std::shared_ptr< T > &p)
Kokkos::Compat::KokkosSerialWrapperNode EpetraNode
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
EpetraOperatorT< int > EpetraOperator
bool isParameter(const std::string &name) const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Teuchos::RCP< MueLu::EpetraOperator > CreateEpetraPreconditioner(const Teuchos::RCP< Epetra_CrsMatrix > &inA, Teuchos::ParameterList ¶mListIn)
Helper function to create a MueLu preconditioner that can be used by Epetra.Given a EpetraCrs_Matrix...
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)
ParameterList & sublist(const std::string &name, bool mustAlreadyExist=false, const std::string &docString="")
const Epetra_Comm & Comm() const
Provides methods to build a multigrid hierarchy and apply multigrid cycles.