Skip to content
Snippets Groups Projects
Commit 30cbc8be authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Use FieldTraits to access the real_type

This works even if the VectorType is a MultiTypeBlockVector.
parent 31a2c399
Branches
No related tags found
No related merge requests found
Pipeline #
...@@ -13,10 +13,8 @@ ...@@ -13,10 +13,8 @@
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::value_type::field_type field_type; // For norms and convergence rates
typedef typename Dune::FieldTraits<VectorType>::real_type real_type;
// For complex-valued data
typedef typename Dune::FieldTraits<field_type>::real_type real_type;
public: public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment