Belos Version of the Day
Loading...
Searching...
No Matches
BelosTypes.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_TYPES_HPP
11#define BELOS_TYPES_HPP
12
18#include "BelosConfigDefs.hpp"
19#include "Teuchos_Assert.hpp"
20
21namespace Belos {
22
24
25
28 class BelosError : public std::logic_error {
29 public:
30 BelosError (const std::string& what_arg) : std::logic_error(what_arg) {}
31 };
32
34
35
49 enum ETrans { NOTRANS = 0,
50 TRANS = 1,
51 CONJTRANS = 2
52 };
53
70
97 };
98
111 User
112 };
113
127
129 std::string
131
157 enum StatusType { Passed = 0x1,
158 Failed = 0x2,
159 Undefined = 0x4
160 };
161
174 enum ResetType { Problem = 0x1,
175 RecycleSubspace = 0x2
176 };
177
179 std::string
181
184 convertStringToStatusType (const std::string& status);
185
188 convertStringToNormType (const std::string& normType);
189
192 convertStringToScaleType (const std::string& scaleType);
193
195 std::string
196 convertScaleTypeToString (const ScaleType scaleType);
197
210
232
243 std::string
244 convertMsgTypeToString (const MsgType msgType);
245
261 static const double convTol;
262
264 static const double polyTol;
265
267 static const double orthoKappa;
268
270 static const double resScaleFactor;
271
273 static const double impTolScale;
274 };
275
276
277} // end Belos namespace
278
279#endif /* BELOS_TYPES_HPP */
Belos header file which uses auto-configuration information to include necessary C++ headers.
Parent class to all Belos exceptions.
BelosError(const std::string &what_arg)
Alternative run-time polymorphic interface for operators.
std::string convertMsgTypeToString(const MsgType msgType)
Show MsgType as a comma-delimited list of names.
ScaleType convertStringToScaleType(const std::string &scaleType)
Convert the given string to its ScaleType enum value.
NormType
The type of vector norm to compute.
@ PreconditionerNorm
MsgType
Available message types recognized by the linear solvers.
@ OrthoDetails
@ StatusTestDetails
@ FinalSummary
@ TimingDetails
@ IterationDetails
StatusType
Whether the StatusTest wants iteration to stop.
NormType convertStringToNormType(const std::string &normType)
Convert the given string to its NormType enum value.
ReturnType
Whether the Belos solve converged for all linear systems.
@ Unconverged
std::string convertScaleTypeToString(const ScaleType scaleType)
Convert the given ScaleType enum value to its corresponding string.
OutputType
Style of output used to display status test information.
ConjType
Whether or not to conjugate the transpose for block inner products.
std::string convertStatusTypeToString(const StatusType status)
The string name corresponding to the given StatusType enum value.
ScaleType
The type of scaling to use on the residual norm value.
@ UserProvided
@ NormOfFullInitRes
@ NormOfFullPrecInitRes
@ NormOfFullScaledPrecInitRes
@ NormOfFullScaledInitRes
@ NormOfPrecInitRes
@ NormOfInitRes
@ NormOfRHS
ETrans
Whether to apply the (conjugate) transpose of an operator.
@ CONJTRANS
ResetType
How to reset the solver.
@ RecycleSubspace
std::string convertReturnTypeToString(const ReturnType result)
Convert the given ReturnType enum value to its corresponding string.
StatusType convertStringToStatusType(const std::string &status)
The StatusType enum value corresponding to the given string name.
Default parameters common to most Belos solvers.
static const double resScaleFactor
User-defined residual scaling factor.
static const double impTolScale
"Implicit Tolerance Scale Factor"
static const double convTol
Default convergence tolerance.
static const double orthoKappa
DGKS orthogonalization constant.
static const double polyTol
Relative residual tolerance for matrix polynomial construction.

Generated for Belos by doxygen 1.9.8