Skip to content
Snippets Groups Projects
Commit 38cfad0a authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Use real_type of field_type for variables storing convergence rates

[[Imported from SVN: r11782]]
parent 53e7a446
No related branches found
No related tags found
No related merge requests found
#ifndef DUNE_SOLVERS_ITERATIVE_SOLVER_HH #ifndef DUNE_SOLVERS_ITERATIVE_SOLVER_HH
#define DUNE_SOLVERS_ITERATIVE_SOLVER_HH #define DUNE_SOLVERS_ITERATIVE_SOLVER_HH
#include <dune/common/ftraits.hh>
#include <dune/solvers/solvers/solver.hh> #include <dune/solvers/solvers/solver.hh>
#include <dune/solvers/iterationsteps/iterationstep.hh> #include <dune/solvers/iterationsteps/iterationstep.hh>
#include <dune/solvers/norms/norm.hh> #include <dune/solvers/norms/norm.hh>
...@@ -9,6 +11,11 @@ ...@@ -9,6 +11,11 @@
template <class VectorType, class BitVectorType = Dune::BitSetVector<VectorType::block_type::dimension> > template <class VectorType, class BitVectorType = Dune::BitSetVector<VectorType::block_type::dimension> >
class IterativeSolver : public Solver class IterativeSolver : public Solver
{ {
typedef typename VectorType::field_type field_type;
// For complex-valued data
typedef typename Dune::FieldTraits<field_type>::real_type real_type;
public: public:
/** \brief Constructor taking all relevant data */ /** \brief Constructor taking all relevant data */
...@@ -60,7 +67,7 @@ ...@@ -60,7 +67,7 @@
directory name. All intermediate iterates are then written there. */ directory name. All intermediate iterates are then written there. */
std::string historyBuffer_; std::string historyBuffer_;
double maxTotalConvRate_; real_type maxTotalConvRate_;
bool useRelativeError_; bool useRelativeError_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment