Belos
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
src
BelosFixedPointIteration.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_FIXEDPOINT_ITERATION_HPP
11
#define BELOS_FIXEDPOINT_ITERATION_HPP
12
16
17
#include "
BelosConfigDefs.hpp
"
18
#include "
BelosTypes.hpp
"
19
#include "
BelosIteration.hpp
"
20
21
namespace
Belos
{
22
24
25
30
template
<
class
ScalarType,
class
MV>
31
struct
FixedPointIterationState
{
32
34
Teuchos::RCP<const MV>
R
;
35
37
Teuchos::RCP<const MV>
Z
;
38
39
FixedPointIterationState
() :
R
(Teuchos::null),
Z
(Teuchos::null)
40
{}
41
};
42
43
template
<
class
ScalarType,
class
MV,
class
OP>
44
class
FixedPointIteration
:
virtual
public
Iteration
<ScalarType,MV,OP> {
45
46
public
:
47
49
50
63
virtual
void
initializeFixedPoint
(
FixedPointIterationState<ScalarType,MV>
& newstate) = 0;
64
71
virtual
FixedPointIterationState<ScalarType,MV>
getState
()
const
= 0;
73
74
};
75
76
}
// end Belos namespace
77
78
#endif
/* BELOS_FIXEDPOINT_ITERATION_HPP */
BelosConfigDefs.hpp
Belos header file which uses auto-configuration information to include necessary C++ headers.
BelosIteration.hpp
Pure virtual base class which describes the basic interface to the linear solver iteration.
BelosTypes.hpp
Collection of types and exceptions used within the Belos solvers.
Belos::FixedPointIteration
Definition
BelosFixedPointIteration.hpp:44
Belos::FixedPointIteration::getState
virtual FixedPointIterationState< ScalarType, MV > getState() const =0
Get the current state of the linear solver.
Belos::FixedPointIteration::initializeFixedPoint
virtual void initializeFixedPoint(FixedPointIterationState< ScalarType, MV > &newstate)=0
Initialize the solver to an iterate, providing a complete state.
Belos::Iteration::Iteration
Iteration()
Default Constructor.
Definition
BelosIteration.hpp:49
Belos
Definition
Belos_Details_EBelosSolverType.cpp:13
Belos::FixedPointIterationState
Structure to contain pointers to FixedPointIteration state variables.
Definition
BelosFixedPointIteration.hpp:31
Belos::FixedPointIterationState::R
Teuchos::RCP< const MV > R
The current residual.
Definition
BelosFixedPointIteration.hpp:34
Belos::FixedPointIterationState::Z
Teuchos::RCP< const MV > Z
The current preconditioned residual.
Definition
BelosFixedPointIteration.hpp:37
Belos::FixedPointIterationState::FixedPointIterationState
FixedPointIterationState()
Definition
BelosFixedPointIteration.hpp:39
Generated for Belos by
1.17.0