Skip to content
Snippets Groups Projects
Commit a3d234b8 authored by Christian Engwer's avatar Christian Engwer
Browse files

[solvers]

remeber default reduction when apply is called with an explicit reduction

[[Imported from SVN: r1498]]
parent a754d58d
No related branches found
No related tags found
No related merge requests found
......@@ -326,8 +326,9 @@ namespace Dune {
//! \copydoc InverseOperator::apply(X&,Y&,double,InverseOperatorResult&)
virtual void apply (X& x, X& b, double reduction, InverseOperatorResult& res)
{
_reduction = reduction;
std::swap(_reduction,reduction);
(*this).apply(x,b,res);
std::swap(_reduction,reduction);
}
private:
......@@ -456,8 +457,9 @@ namespace Dune {
*/
virtual void apply (X& x, X& b, double reduction, InverseOperatorResult& res)
{
_reduction = reduction;
std::swap(_reduction,reduction);
(*this).apply(x,b,res);
std::swap(_reduction,reduction);
}
private:
......@@ -620,8 +622,9 @@ namespace Dune {
virtual void apply (X& x, X& b, double reduction,
InverseOperatorResult& res)
{
_reduction = reduction;
std::swap(_reduction,reduction);
(*this).apply(x,b,res);
std::swap(_reduction,reduction);
}
private:
......@@ -880,8 +883,9 @@ namespace Dune {
*/
virtual void apply (X& x, X& b, double reduction, InverseOperatorResult& res)
{
_reduction = reduction;
std::swap(_reduction,reduction);
(*this).apply(x,b,res);
std::swap(_reduction,reduction);
}
private:
......@@ -1128,8 +1132,9 @@ namespace Dune {
*/
virtual void apply (X& x, X& b, double reduction, InverseOperatorResult& res)
{
_reduction = reduction;
std::swap(_reduction,reduction);
(*this).apply(x,b,res);
std::swap(_reduction,reduction);
}
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment