Belos
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
src
BelosInnerSolveResult.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Belos: Block Linear Solvers Package
4
//
5
// Copyright 2004-2016 NTESS and the Belos contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef __Belos_InnerSolverResult_hpp
11
#define __Belos_InnerSolverResult_hpp
12
13
#include <
BelosTypes.hpp
>
// ReturnType
14
#include <map>
15
#include <string>
16
17
namespace
Belos
{
18
34
class
InnerSolveResult
{
35
public
:
53
InnerSolveResult
(
const
ReturnType
theResult,
54
const
int
theNumRestartCycles,
55
const
int
theTotalNumIters,
56
const
std::map<std::string, double>& theExtraData);
57
59
InnerSolveResult
(
const
ReturnType
theResult,
60
const
int
theNumRestartCycles,
61
const
int
theTotalNumIters);
62
69
ReturnType
result
() {
70
return
result_;
71
}
72
76
int
totalNumIters
()
const
{
77
return
totalNumIters_;
78
}
79
81
int
numRestartCycles
()
const
{
82
return
numRestartCycles_;
83
}
84
91
const
std::map<std::string, double>&
extraData
()
const
{
92
return
extraData_;
93
}
94
95
private
:
96
ReturnType
result_;
97
int
numRestartCycles_, totalNumIters_;
98
std::map<std::string, double> extraData_;
99
100
static
ReturnType
101
validatedReturnType (
const
ReturnType
ret);
102
103
static
int
104
requireNonNegInt (
const
int
k);
105
};
106
107
}
// namespace Belos
108
109
110
#endif
// __Belos_InnerSolverResult_hpp
BelosTypes.hpp
Collection of types and exceptions used within the Belos solvers.
Belos::InnerSolveResult::numRestartCycles
int numRestartCycles() const
Total number of restart cycles.
Definition
BelosInnerSolveResult.hpp:81
Belos::InnerSolveResult::totalNumIters
int totalNumIters() const
Total number of iterations completed over all restarts.
Definition
BelosInnerSolveResult.hpp:76
Belos::InnerSolveResult::result
ReturnType result()
Did the inner solve converge?
Definition
BelosInnerSolveResult.hpp:69
Belos::InnerSolveResult::InnerSolveResult
InnerSolveResult(const ReturnType theResult, const int theNumRestartCycles, const int theTotalNumIters, const std::map< std::string, double > &theExtraData)
Constructor.
Definition
BelosInnerSolveResult.cpp:15
Belos::InnerSolveResult::extraData
const std::map< std::string, double > & extraData() const
"Extra" data from the inner solve.
Definition
BelosInnerSolveResult.hpp:91
Belos
Definition
Belos_Details_EBelosSolverType.cpp:13
Belos::ReturnType
ReturnType
Whether the Belos solve converged for all linear systems.
Definition
BelosTypes.hpp:123
Generated for Belos by
1.17.0