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

remove trailing whitespace

[[Imported from SVN: r11777]]
parent fea0935a
Branches
Tags
No related merge requests found
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
EnergyNorm(const double tol=1e-10 ) : iterationStep_(NULL), matrix_(NULL), tol_(tol) {} EnergyNorm(const double tol=1e-10 ) : iterationStep_(NULL), matrix_(NULL), tol_(tol) {}
EnergyNorm(LinearIterationStep<OperatorType, DiscFuncType>& it, const double tol=1e-10) EnergyNorm(LinearIterationStep<OperatorType, DiscFuncType>& it, const double tol=1e-10)
: iterationStep_(&it), matrix_(NULL), tol_(tol) : iterationStep_(&it), matrix_(NULL), tol_(tol)
{} {}
EnergyNorm(const OperatorType& matrix, const double tol=1e-10) EnergyNorm(const OperatorType& matrix, const double tol=1e-10)
: iterationStep_(NULL), matrix_(&matrix), tol_(tol) : iterationStep_(NULL), matrix_(&matrix), tol_(tol)
{} {}
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
} }
//! Compute the norm of the given vector //! Compute the norm of the given vector
double operator()(const DiscFuncType& f) const double operator()(const DiscFuncType& f) const
{ {
return std::sqrt(this->EnergyNorm<OperatorType,DiscFuncType>::normSquared(f)); return std::sqrt(this->EnergyNorm<OperatorType,DiscFuncType>::normSquared(f));
} }
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
if (iterationStep_ == NULL && matrix_ == NULL) if (iterationStep_ == NULL && matrix_ == NULL)
DUNE_THROW(Dune::Exception, "You have supplied neither a matrix nor an IterationStep to the EnergyNorm!"); DUNE_THROW(Dune::Exception, "You have supplied neither a matrix nor an IterationStep to the EnergyNorm!");
const OperatorType& A = (iterationStep_) const OperatorType& A = (iterationStep_)
? *(iterationStep_->getMatrix()) ? *(iterationStep_->getMatrix())
: *matrix_; : *matrix_;
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
/** \brief Compute the squared norm for a given vector and matrix /** \brief Compute the squared norm for a given vector and matrix
\todo This could be implemented without the temporary. */ \todo This could be implemented without the temporary. */
static field_type normSquared(const DiscFuncType& u, static field_type normSquared(const DiscFuncType& u,
const OperatorType& A, const OperatorType& A,
const double tol=1e-10) const double tol=1e-10)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment