Skip to content
Snippets Groups Projects
Commit 003b6ce4 authored by Max Kahnt's avatar Max Kahnt
Browse files

[Cleanup] superfluouse semicolons and indentation

parent 92501b01
Branches
No related tags found
1 merge request!17Cleanup/norms
...@@ -25,7 +25,7 @@ public: ...@@ -25,7 +25,7 @@ public:
//! Compute the norm of the difference of two vectors //! Compute the norm of the difference of two vectors
double diff(const VectorType& u1, const VectorType& u2) const double diff(const VectorType& u1, const VectorType& u2) const
{ {
assert(u1.size()==u2.size()); assert(u1.size()==u2.size());
assert(u1.size()==matrix_->N()); assert(u1.size()==matrix_->N());
...@@ -36,7 +36,7 @@ public: ...@@ -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 cIt = (*matrix_)[i].begin();
typename Dune::BCRSMatrix<Dune::FieldMatrix<double,1,1> >::row_type::const_iterator cEndIt = (*matrix_)[i].end(); 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) for (; cIt!=cEndIt; ++cIt)
sum += differ_i * (u1[cIt.index()]-u2[cIt.index()]) * (*cIt); sum += differ_i * (u1[cIt.index()]-u2[cIt.index()]) * (*cIt);
} }
......
...@@ -18,7 +18,7 @@ class Norm { ...@@ -18,7 +18,7 @@ class Norm {
using field_type = typename Dune::FieldTraits<VectorType>::field_type; using field_type = typename Dune::FieldTraits<VectorType>::field_type;
/** \brief Destructor, doing nothing */ /** \brief Destructor, doing nothing */
virtual ~Norm() {}; virtual ~Norm() {}
//! Compute the norm of the given vector //! Compute the norm of the given vector
virtual field_type operator()(const VectorType& f) const = 0; virtual field_type operator()(const VectorType& f) const = 0;
......
...@@ -18,7 +18,7 @@ class TwoNorm : public Norm<VectorType> ...@@ -18,7 +18,7 @@ class TwoNorm : public Norm<VectorType>
public: public:
/** \brief Destructor, doing nothing */ /** \brief Destructor, doing nothing */
virtual ~TwoNorm() {}; virtual ~TwoNorm() {}
//! Compute the norm of the given vector //! Compute the norm of the given vector
virtual double operator()(const VectorType& f) const virtual double operator()(const VectorType& f) const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment