diff --git a/dune/solvers/norms/h1seminorm.hh b/dune/solvers/norms/h1seminorm.hh index aff87ec471352b6a9e9a762acd4778fbbcd21360..93152aaa3f7b219ea4b5f85e82655c70f1a91a81 100644 --- a/dune/solvers/norms/h1seminorm.hh +++ b/dune/solvers/norms/h1seminorm.hh @@ -25,7 +25,7 @@ public: //! Compute the norm of the difference of two vectors double diff(const VectorType& u1, const VectorType& u2) const - { + { assert(u1.size()==u2.size()); assert(u1.size()==matrix_->N()); @@ -36,7 +36,7 @@ public: typename Dune::BCRSMatrix<Dune::FieldMatrix<double,1,1> >::row_type::const_iterator cIt = (*matrix_)[i].begin(); typename Dune::BCRSMatrix<Dune::FieldMatrix<double,1,1> >::row_type::const_iterator cEndIt = (*matrix_)[i].end(); - typename VectorType::block_type differ_i = u1[i] - u2[i]; + typename VectorType::block_type differ_i = u1[i] - u2[i]; for (; cIt!=cEndIt; ++cIt) sum += differ_i * (u1[cIt.index()]-u2[cIt.index()]) * (*cIt); } diff --git a/dune/solvers/norms/norm.hh b/dune/solvers/norms/norm.hh index 8b0e6fc8b62a42ca8d0ff581ce59236a8c071680..f7555f800b4007c1b591b4231cc034f4718a79ca 100644 --- a/dune/solvers/norms/norm.hh +++ b/dune/solvers/norms/norm.hh @@ -18,7 +18,7 @@ class Norm { using field_type = typename Dune::FieldTraits<VectorType>::field_type; /** \brief Destructor, doing nothing */ - virtual ~Norm() {}; + virtual ~Norm() {} //! Compute the norm of the given vector virtual field_type operator()(const VectorType& f) const = 0; diff --git a/dune/solvers/norms/twonorm.hh b/dune/solvers/norms/twonorm.hh index 65b41dadcb06a4fc036295c4f4ec70bb3780b0bb..09d99b7b592f420737c5d2abd5b77ccbd6f13c00 100644 --- a/dune/solvers/norms/twonorm.hh +++ b/dune/solvers/norms/twonorm.hh @@ -18,7 +18,7 @@ class TwoNorm : public Norm<VectorType> public: /** \brief Destructor, doing nothing */ - virtual ~TwoNorm() {}; + virtual ~TwoNorm() {} //! Compute the norm of the given vector virtual double operator()(const VectorType& f) const