Belos  Version of the Day
Belos_Details_registerSolverFactory.cpp
Go to the documentation of this file.
1 //@HEADER
2 // ************************************************************************
3 //
4 // Belos: Block Linear Solvers Package
5 // Copyright 2004 Sandia Corporation
6 //
7 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
8 // the U.S. Government retains certain rights in this software.
9 //
10 // Redistribution and use in source and binary forms, with or without
11 // modification, are permitted provided that the following conditions are
12 // met:
13 //
14 // 1. Redistributions of source code must retain the above copyright
15 // notice, this list of conditions and the following disclaimer.
16 //
17 // 2. Redistributions in binary form must reproduce the above copyright
18 // notice, this list of conditions and the following disclaimer in the
19 // documentation and/or other materials provided with the distribution.
20 //
21 // 3. Neither the name of the Corporation nor the names of the
22 // contributors may be used to endorse or promote products derived from
23 // this software without specific prior written permission.
24 //
25 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
26 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
29 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 //
37 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
38 //
39 // ************************************************************************
40 //@HEADER
41 
44 
45 #include "BelosMultiVec.hpp"
46 #include "BelosOperator.hpp"
47 #include "BelosSolverFactory.hpp"
48 
49 #include "BelosBiCGStabSolMgr.hpp"
50 #include "BelosBlockCGSolMgr.hpp"
53 #include "BelosGCRODRSolMgr.hpp"
54 #include "BelosLSQRSolMgr.hpp"
55 #include "BelosMinresSolMgr.hpp"
56 #include "BelosPCPGSolMgr.hpp"
60 #include "BelosRCGSolMgr.hpp"
61 #include "BelosTFQMRSolMgr.hpp"
62 
63 namespace Belos {
64 namespace Details {
65 
66 #ifdef HAVE_TEUCHOS_COMPLEX
67 #define BELOS_DEFINE_REGISTER_SOLVER_MANAGER(manager,name) \
68  Impl::registerSolverSubclassForTypes<manager<ST,MV,OP>, ST, MV, OP> (name); \
69  Impl::registerSolverSubclassForTypes<manager<cST,cMV,cOP>, cST, cMV, cOP> (name);
70 #else // HAVE_TEUCHOS_COMPLEX
71 #define BELOS_DEFINE_REGISTER_SOLVER_MANAGER(manager,name) \
72  Impl::registerSolverSubclassForTypes<manager<ST,MV,OP>, ST, MV, OP> (name);
73 #endif // HAVE_TEUCHOS_COMPLEX
74 
76  typedef double ST;
77  typedef MultiVec<ST> MV;
78  typedef Operator<ST> OP;
79 
80 #ifdef HAVE_TEUCHOS_COMPLEX
81  typedef std::complex<double> cST;
82  typedef MultiVec<cST> cMV;
83  typedef Operator<cST> cOP;
84 #endif // HAVE_TEUCHOS_COMPLEX
85 
99 }
100 
101 } // namespace Details
102 } // namespace Belos
103 
BelosMultiVec.hpp
Interface for multivectors used by Belos' linear solvers.
Belos::PseudoBlockCGSolMgr
The Belos::PseudoBlockCGSolMgr provides a powerful and fully-featured solver manager over the pseudo-...
Definition: BelosPseudoBlockCGSolMgr.hpp:116
Belos::BlockGmresSolMgr
Interface to Block GMRES and Flexible GMRES.
Definition: BelosBlockGmresSolMgr.hpp:125
BelosGCRODRSolMgr.hpp
Declaration and definition of Belos::GCRODRSolMgr, which implements the GCRODR (recycling GMRES) solv...
Belos::MultiVec
Interface for multivectors used by Belos' linear solvers.
Definition: BelosMultiVec.hpp:91
Belos::BlockCGSolMgr
The Belos::BlockCGSolMgr provides a powerful and fully-featured solver manager over the CG and BlockC...
Definition: BelosBlockCGSolMgr.hpp:121
Belos::TFQMRSolMgr
The Belos::TFQMRSolMgr provides a powerful and fully-featured solver manager over the TFQMR linear so...
Definition: BelosTFQMRSolMgr.hpp:104
BELOS_DEFINE_REGISTER_SOLVER_MANAGER
#define BELOS_DEFINE_REGISTER_SOLVER_MANAGER(manager, name)
Definition: Belos_Details_registerSolverFactory.cpp:71
BelosPseudoBlockTFQMRSolMgr.hpp
The Belos::PseudoBlockTFQMRSolMgr provides a solver manager for the pseudo-block TFQMR linear solver.
BelosPCPGSolMgr.hpp
Declaration and definition of Belos::PCPGSolMgr (PCPG iterative linear solver).
BelosFixedPointSolMgr.hpp
The Belos::FixedPointSolMgr provides a solver manager for the FixedPoint linear solver.
BelosRCGSolMgr.hpp
The Belos::RCGSolMgr provides a solver manager for the RCG (Recycling Conjugate Gradient) linear solv...
Belos
Definition: Belos_Details_EBelosSolverType.cpp:45
BelosOperator.hpp
Alternative run-time polymorphic interface for operators.
BelosPseudoBlockCGSolMgr.hpp
The Belos::PseudoBlockCGSolMgr provides a solver manager for the BlockCG linear solver.
Belos::LSQRSolMgr
LSQR method (for linear systems and linear least-squares problems).
Definition: BelosLSQRSolMgr.hpp:236
Belos::PseudoBlockTFQMRSolMgr
The Belos::PseudoBlockTFQMRSolMgr provides a powerful and fully-featured solver manager over the pseu...
Definition: BelosPseudoBlockTFQMRSolMgr.hpp:104
Belos::GCRODRSolMgr
Implementation of the GCRODR (Recycling GMRES) iterative linear solver.
Definition: BelosGCRODRSolMgr.hpp:157
BelosBlockGmresSolMgr.hpp
The Belos::BlockGmresSolMgr provides a solver manager for the BlockGmres linear solver.
Belos::MinresSolMgr
MINRES linear solver solution manager.
Definition: BelosMinresSolMgr.hpp:115
BelosBiCGStabSolMgr.hpp
The Belos::BiCGStabSolMgr provides a solver manager for the BiCGStab linear solver.
Belos::BiCGStabSolMgr
The Belos::BiCGStabSolMgr provides a powerful and fully-featured solver manager over the pseudo-block...
Definition: BelosBiCGStabSolMgr.hpp:109
Belos::PseudoBlockGmresSolMgr
Interface to standard and "pseudoblock" GMRES.
Definition: BelosPseudoBlockGmresSolMgr.hpp:126
Belos::FixedPointSolMgr
The Belos::FixedPointSolMgr provides a powerful and fully-featured solver manager over the FixedPoint...
Definition: BelosFixedPointSolMgr.hpp:93
Belos::PCPGSolMgr
PCPG iterative linear solver.
Definition: BelosPCPGSolMgr.hpp:155
BelosLSQRSolMgr.hpp
LSQRSolMgr: interface to the LSQR method.
BelosPseudoBlockGmresSolMgr.hpp
The Belos::PseudoBlockGmresSolMgr provides a solver manager for the BlockGmres linear solver.
BelosBlockCGSolMgr.hpp
The Belos::BlockCGSolMgr provides a solver manager for the BlockCG linear solver.
BelosSolverFactory.hpp
BelosMinresSolMgr.hpp
Solver manager for the MINRES linear solver.
BelosTFQMRSolMgr.hpp
The Belos::TFQMRSolMgr provides a solver manager for the TFQMR linear solver.
Belos::RCGSolMgr
Implementation of the RCG (Recycling Conjugate Gradient) iterative linear solver.
Definition: BelosRCGSolMgr.hpp:154
Belos::Details::registerSolverFactory
void registerSolverFactory()
Definition: Belos_Details_registerSolverFactory.cpp:75
Belos::Operator
Alternative run-time polymorphic interface for operators.
Definition: BelosOperator.hpp:80

Generated on Thu Feb 27 2020 16:06:46 for Belos by doxygen 1.8.16