42 #ifndef THYRA_LINEAR_OP_WITH_SOLVE_FACTORY_SUBCLASS_HELPERS_HPP
43 #define THYRA_LINEAR_OP_WITH_SOLVE_FACTORY_SUBCLASS_HELPERS_HPP
46 #include "Thyra_LinearOpWithSolveBase.hpp"
47 #include "Teuchos_toString.hpp"
60 template<
class Scalar>
74 template<
class Scalar>
75 void assertSupportsSolveMeasureType(
90 template<
class Scalar>
91 void Thyra::assertSolveSupports(
101 "Error, the LinearOpWithSolve object \"" << lows.
description() <<
"\"\n"
102 "for M_trans = " <<
toString(M_trans) <<
" does not support the solve"
104 << (
nonnull(solveCriteria) ?
toString(*solveCriteria) : std::string(
"null") )
111 template<
class Scalar>
112 void Thyra::assertSupportsSolveMeasureType(
113 const LinearOpWithSolveBase<Scalar> &lows,
115 const SolveMeasureType &solveMeasureType
121 "Error, the LinearOpWithSolve object \"" << lows.description() <<
"\"\n"
122 "for M_trans = " <<
toString(M_trans) <<
" does not support the solve"
124 <<
toString(solveMeasureType.numerator)
126 <<
toString(solveMeasureType.denominator)
131 #endif // THYRA_LINEAR_OP_WITH_SOLVE_FACTORY_SUBCLASS_HELPERS_HPP