Belos  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Belos::Details::RealSolverManager< ScalarType, MV, OP, isComplex > Class Template Reference

Base class for Belos::SolverManager subclasses which normally can only compile for real ScalarType. More...

#include <BelosSolverManager.hpp>

Inheritance diagram for Belos::Details::RealSolverManager< ScalarType, MV, OP, isComplex >:
Inheritance graph
[legend]

Detailed Description

template<class ScalarType, class MV, class OP, const bool isComplex = Teuchos::ScalarTraits<ScalarType>::isComplex>
class Belos::Details::RealSolverManager< ScalarType, MV, OP, isComplex >

Base class for Belos::SolverManager subclasses which normally can only compile for real ScalarType.

It can be a lot of trouble to make a solver implementation compile correctly for both real and complex ScalarType. That's why this class exists. If a Belos solver inherits from this class, that indicates that the solver's implementation can only compile if ScalarType is real (not complex). If you attempt to invoke the solver's constructor when ScalarType is complex, the constructor will throw an exception.

The point of this class is to ensure that Belos::SolverFactory will always compile, even if some Belos solvers' implementations cannot compile when ScalarType is complex. See GCRODRSolMgr for an example of how to use this class to avoid compilation of code that only works for real ScalarType.

Definition at line 224 of file BelosSolverManager.hpp.


The documentation for this class was generated from the following file:

Generated on Fri Aug 14 2020 10:48:35 for Belos by doxygen 1.8.5