16 const int theNumRestartCycles,
17 const int theTotalNumIters,
18 const std::map<std::string, double>& theExtraData) :
19 result_ (validatedReturnType (theResult)),
20 numRestartCycles_ (requireNonNegInt (theNumRestartCycles)),
21 totalNumIters_ (requireNonNegInt (theTotalNumIters)),
22 extraData_ (theExtraData)
27 const int theNumRestartCycles,
28 const int theTotalNumIters) :
29 result_ (validatedReturnType (theResult)),
30 numRestartCycles_ (requireNonNegInt (theNumRestartCycles)),
31 totalNumIters_ (requireNonNegInt (theTotalNumIters))
35 InnerSolveResult::validatedReturnType (
const ReturnType ret)
38 std::invalid_argument,
39 "Invalid ReturnType enum value " << ret <<
". "
40 "Valid values are Converged=" <<
Converged <<
" and "
46 InnerSolveResult::requireNonNegInt (
const int k)
49 "The given integer argument k=" << k
50 <<
" 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.