Belos Version of the Day
Loading...
Searching...
No Matches
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
17#include "BelosConfigDefs.hpp"
18#include "BelosTypes.hpp"
19#include "BelosIteration.hpp"
20
21namespace Belos {
22
24
25
30 template <class ScalarType, class MV>
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
43template<class ScalarType, class MV, class OP>
44class FixedPointIteration : virtual public Iteration<ScalarType,MV,OP> {
45
46 public:
47
49
50
64
73
74};
75
76} // end Belos namespace
77
78#endif /* BELOS_FIXEDPOINT_ITERATION_HPP */
Belos header file which uses auto-configuration information to include necessary C++ headers.
Pure virtual base class which describes the basic interface to the linear solver iteration.
Collection of types and exceptions used within the Belos solvers.
virtual FixedPointIterationState< ScalarType, MV > getState() const =0
Get the current state of the linear solver.
virtual void initializeFixedPoint(FixedPointIterationState< ScalarType, MV > &newstate)=0
Initialize the solver to an iterate, providing a complete state.
Alternative run-time polymorphic interface for operators.
Structure to contain pointers to FixedPointIteration state variables.
Teuchos::RCP< const MV > R
The current residual.
Teuchos::RCP< const MV > Z
The current preconditioned residual.

Generated for Belos by doxygen 1.9.8