48 const int theNumRestartCycles,
49 const int theTotalNumIters,
50 const std::map<std::string, double>& theExtraData) :
51 result_ (validatedReturnType (theResult)),
52 numRestartCycles_ (requireNonNegInt (theNumRestartCycles)),
53 totalNumIters_ (requireNonNegInt (theTotalNumIters)),
54 extraData_ (theExtraData)
59 const int theNumRestartCycles,
60 const int theTotalNumIters) :
61 result_ (validatedReturnType (theResult)),
62 numRestartCycles_ (requireNonNegInt (theNumRestartCycles)),
63 totalNumIters_ (requireNonNegInt (theTotalNumIters))
67 InnerSolveResult::validatedReturnType (
const ReturnType ret)
70 std::invalid_argument,
71 "Invalid ReturnType enum value " << ret <<
". "
72 "Valid values are Converged=" <<
Converged <<
" and "
78 InnerSolveResult::requireNonNegInt (
const int k)
81 "The given integer argument k=" << k
82 <<
" must be nonnegative.");
InnerSolveResult(const ReturnType theResult, const int theNumRestartCycles, const int theTotalNumIters, const std::map< std::string, double > &theExtraData)
Constructor.
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
ReturnType
Whether the Belos solve converged for all linear systems.