// @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 "BelosPseudoBlockGmresSolMgr.hpp" #include "TpetraCore_ETIHelperMacros.h" #include "Teuchos_TypeNameTraits.hpp" #include namespace BelosTpetra { namespace Impl { template void register_PseudoBlockGmres_tmpl (const bool verbose) { using ::Belos::Impl::registerSolverSubclassForTypes; using MV = ::Tpetra::MultiVector; using OP = ::Tpetra::Operator; using solver_type = ::Belos::PseudoBlockGmresSolMgr; if (verbose) { using Teuchos::TypeNameTraits; std::cout << "Registering BelosTpetra PseudoBlockGmresSolMgr<" << TypeNameTraits::name () << ", " << TypeNameTraits::name () << ", " << TypeNameTraits::name () << ", " << TypeNameTraits::name () << ">" << std::endl; } const char solverName[] = "PSEUDOBLOCK GMRES"; registerSolverSubclassForTypes (solverName); } void register_PseudoBlockGmres (const bool verbose) { TPETRA_ETI_MANGLING_TYPEDEFS() #ifdef BELOS_TPETRA_REGISTER_PSEUDOBLOCKGMRES # undef BELOS_TPETRA_REGISTER_PSEUDOBLOCKGMRES #endif // BELOS_TPETRA_REGISTER_PSEUDOBLOCKGMRES #define BELOS_TPETRA_REGISTER_PSEUDOBLOCKGMRES( SC, LO, GO, NT ) register_PseudoBlockGmres_tmpl (verbose); TPETRA_INSTANTIATE_SLGN_NO_ORDINAL_SCALAR( BELOS_TPETRA_REGISTER_PSEUDOBLOCKGMRES ) #undef BELOS_TPETRA_REGISTER_PSEUDOBLOCKGMRES } } // namespace Impl } // namespace BelosTpetra