| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// Belos: Block Linear Solvers Package |
| 4 |
// |
| 5 |
// Copyright 2004-2016 NTESS and the Belos contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
|
| 11 |
/// \file Belos_Details_Epetra_registerSolverFactory |
| 12 |
/// \brief Implement Injection and Inversion (DII) for Epetra |
| 13 |
|
| 14 |
#include "BelosSolverFactory.hpp" |
| 15 |
#include "BelosEpetraAdapter.hpp" |
| 16 |
|
| 17 |
#include "BelosBiCGStabSolMgr.hpp" |
| 18 |
#include "BelosBlockCGSolMgr.hpp" |
| 19 |
#include "BelosBlockGmresSolMgr.hpp" |
| 20 |
#include "BelosFixedPointSolMgr.hpp" |
| 21 |
#include "BelosGCRODRSolMgr.hpp" |
| 22 |
#include "BelosGmresPolySolMgr.hpp" |
| 23 |
#include "BelosLSQRSolMgr.hpp" |
| 24 |
#include "BelosMinresSolMgr.hpp" |
| 25 |
#include "BelosPCPGSolMgr.hpp" |
| 26 |
#include "BelosPseudoBlockCGSolMgr.hpp" |
| 27 |
#include "BelosPseudoBlockGmresSolMgr.hpp" |
| 28 |
#include "BelosPseudoBlockTFQMRSolMgr.hpp" |
| 29 |
#include "BelosRCGSolMgr.hpp" |
| 30 |
#include "BelosTFQMRSolMgr.hpp" |
| 31 |
|
| 32 |
namespace Belos { |
| 33 |
namespace Details { |
| 34 |
namespace Epetra { |
| 35 |
|
| 36 |
void registerSolverFactory() { |
| 37 |
typedef double ST; |
| 38 |
typedef Epetra_MultiVector MV; |
| 39 |
typedef Epetra_Operator OP; |
| 40 |
|
| 41 |
Impl::registerSolverSubclassForTypes<BiCGStabSolMgr<ST,MV,OP>, ST, MV, OP> ("BICGSTAB"); |
| 42 |
Impl::registerSolverSubclassForTypes<BlockCGSolMgr<ST,MV,OP>, ST, MV, OP> ("BLOCK CG"); |
| 43 |
Impl::registerSolverSubclassForTypes<BlockGmresSolMgr<ST,MV,OP>, ST, MV, OP> ("BLOCK GMRES"); |
| 44 |
Impl::registerSolverSubclassForTypes<FixedPointSolMgr<ST,MV,OP>, ST, MV, OP> ("FIXED POINT"); |
| 45 |
Impl::registerSolverSubclassForTypes<GCRODRSolMgr<ST,MV,OP>, ST, MV, OP> ("GCRODR"); |
| 46 |
Impl::registerSolverSubclassForTypes<GmresPolySolMgr<ST,MV,OP>, ST, MV, OP> ("HYBRID BLOCK GMRES"); |
| 47 |
Impl::registerSolverSubclassForTypes<LSQRSolMgr<ST,MV,OP>, ST, MV, OP> ("LSQR"); |
| 48 |
Impl::registerSolverSubclassForTypes<MinresSolMgr<ST,MV,OP>, ST, MV, OP> ("MINRES"); |
| 49 |
Impl::registerSolverSubclassForTypes<PCPGSolMgr<ST,MV,OP>, ST, MV, OP> ("PCPG"); |
| 50 |
Impl::registerSolverSubclassForTypes<PseudoBlockCGSolMgr<ST,MV,OP>, ST, MV, OP> ("PSEUDOBLOCK CG"); |
| 51 |
Impl::registerSolverSubclassForTypes<PseudoBlockGmresSolMgr<ST,MV,OP>, ST, MV, OP> ("PSEUDOBLOCK GMRES"); |
| 52 |
Impl::registerSolverSubclassForTypes<PseudoBlockTFQMRSolMgr<ST,MV,OP>, ST, MV, OP> ("PSEUDOBLOCK TFQMR"); |
| 53 |
Impl::registerSolverSubclassForTypes<RCGSolMgr<ST,MV,OP>, ST, MV, OP> ("RCG"); |
| 54 |
Impl::registerSolverSubclassForTypes<TFQMRSolMgr<ST,MV,OP>, ST, MV, OP> ("TFQMR"); |
| 55 |
} |
| 56 |
|
| 57 |
} // namespace Epetra |
| 58 |
} // namespace Details |
| 59 |
} // namespace Belos |
| 60 |
|