1 #ifndef MUELU_CREATE_EPETRA_PRECONDITIONER_CPP
2 #define MUELU_CREATE_EPETRA_PRECONDITIONER_CPP
13 #include <MueLu_Hierarchy.hpp>
16 #include <MueLu_MLParameterListInterpreter.hpp>
17 #include <MueLu_ParameterListInterpreter.hpp>
18 #include <MueLu_Utilities.hpp>
19 #include <MueLu_HierarchyUtils.hpp>
23 #if defined(HAVE_MUELU_EPETRA)
54 RCP<Matrix> A = EpetraCrs_To_XpetraMatrix<SC, LO, GO, NO>(inA);
56 if (inCoords != Teuchos::null) {
57 coordinates = EpetraMultiVector_To_XpetraMultiVector<SC,LO,GO,NO>(inCoords);
60 if (inNullspace != Teuchos::null) {
61 nullspace = EpetraMultiVector_To_XpetraMultiVector<SC, LO, GO, NO>(inNullspace);
63 RCP<Hierarchy> H = MueLu::CreateXpetraPreconditioner<SC,LO,GO,NO>(A,paramListIn,coordinates,nullspace);
94 const std::string& xmlFileName,
111 typedef MueLu ::Hierarchy<SC,LO,GO,NO>
Hierarchy;
114 RCP<Matrix> A = EpetraCrs_To_XpetraMatrix<SC,LO,GO,NO>(inA);
116 MueLu::ReuseXpetraPreconditioner<SC,LO,GO,NO>(A, H);
120 #endif // HAVE_MUELU_SERIAL and HAVE_MUELU_EPETRA
122 #endif //ifndef MUELU_CREATE_EPETRA_PRECONDITIONER_CPP