// @HEADER // ***************************************************************************** // Belos: Block Linear Solvers Package // // Copyright 2004-2016 NTESS and the Belos contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #include "BelosSolverFactory.hpp" #include "BelosSolverFactory_Tpetra.hpp" #include "BelosMinresSolMgr.hpp" #include "TpetraCore_ETIHelperMacros.h" #include "Teuchos_TypeNameTraits.hpp" #include namespace BelosTpetra { namespace Impl { template void register_Minres_tmpl (const bool verbose) { using ::Belos::Impl::registerSolverSubclassForTypes; using MV = ::Tpetra::MultiVector; using OP = ::Tpetra::Operator; using solver_type = ::Belos::MinresSolMgr; if (verbose) { using Teuchos::TypeNameTraits; std::cout << "Registering BelosTpetra MinresSolMgr<" << TypeNameTraits::name () << ", " << TypeNameTraits::name () << ", " << TypeNameTraits::name () << ", " << TypeNameTraits::name () << ">" << std::endl; } const char solverName[] = "MINRES"; registerSolverSubclassForTypes (solverName); } void register_Minres (const bool verbose) { TPETRA_ETI_MANGLING_TYPEDEFS() #ifdef BELOS_TPETRA_REGISTER_MINRES # undef BELOS_TPETRA_REGISTER_MINRES #endif // BELOS_TPETRA_REGISTER_MINRES #define BELOS_TPETRA_REGISTER_MINRES( SC, LO, GO, NT ) register_Minres_tmpl (verbose); TPETRA_INSTANTIATE_SLGN_NO_ORDINAL_SCALAR( BELOS_TPETRA_REGISTER_MINRES ) #undef BELOS_TPETRA_REGISTER_MINRES } } // namespace Impl } // namespace BelosTpetra