From 003b6ce4c33bac8aef160142dc2d03cfad32013b Mon Sep 17 00:00:00 2001 From: Max Kahnt <max.kahnt@fu-berlin.de> Date: Fri, 22 Sep 2017 18:45:22 +0200 Subject: [PATCH] [Cleanup] superfluouse semicolons and indentation --- dune/solvers/norms/h1seminorm.hh | 4 ++-- dune/solvers/norms/norm.hh | 2 +- dune/solvers/norms/twonorm.hh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dune/solvers/norms/h1seminorm.hh b/dune/solvers/norms/h1seminorm.hh index aff87ec4..93152aaa 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 8b0e6fc8..f7555f80 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 65b41dad..09d99b7b 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 -- GitLab