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

[cleanup] Remove trailing whitespace

parent 11c14160
Branches
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ public: ...@@ -29,7 +29,7 @@ public:
} }
//! Subtract vector from box //! Subtract vector from box
BoxConstraint<T,dim>& operator-= (const Dune::FieldVector<T, dim>& v) BoxConstraint<T,dim>& operator-= (const Dune::FieldVector<T, dim>& v)
{ {
for (int i=0; i<dim; i++) { for (int i=0; i<dim; i++) {
val[2*i] -= v[i]; val[2*i] -= v[i];
...@@ -55,9 +55,9 @@ public: ...@@ -55,9 +55,9 @@ public:
std::ostream& operator<< (std::ostream& s, const BoxConstraint<T,dim>& v) std::ostream& operator<< (std::ostream& s, const BoxConstraint<T,dim>& v)
{ {
for (int i=0; i<dim; i++) for (int i=0; i<dim; i++)
s << "Direction: " << i <<", val[0] = " << v.val[2*i] s << "Direction: " << i <<", val[0] = " << v.val[2*i]
<< ", val[1] = " << v.val[2*i+1] << std::endl; << ", val[1] = " << v.val[2*i+1] << std::endl;
return s; return s;
} }
......
...@@ -24,21 +24,21 @@ public: ...@@ -24,21 +24,21 @@ public:
{ {
return data_[i]; return data_[i];
} }
/** \brief Const array-like access /** \brief Const array-like access
*/ */
const field_type& operator[](int i) const const field_type& operator[](int i) const
{ {
return data_[i]; return data_[i];
} }
/** \brief Project a scalar onto the interval /** \brief Project a scalar onto the interval
*/ */
field_type projectIn(const field_type& x) const field_type projectIn(const field_type& x) const
{ {
return std::max(std::min(x,data_[1]), data_[0]); return std::max(std::min(x,data_[1]), data_[0]);
} }
/** \brief Fast projection onto the interval if you know that your value /** \brief Fast projection onto the interval if you know that your value
* is smaller than your upper bound * is smaller than your upper bound
*/ */
...@@ -64,7 +64,7 @@ public: ...@@ -64,7 +64,7 @@ public:
}; };
private: private:
/** \brief The actual data */ /** \brief The actual data */
std::array<field_type,2> data_; std::array<field_type,2> data_;
}; };
...@@ -80,5 +80,5 @@ inline std::ostream& operator<< (std::ostream& s, const Interval<field_type>& in ...@@ -80,5 +80,5 @@ inline std::ostream& operator<< (std::ostream& s, const Interval<field_type>& in
} // namespace Solvers } // namespace Solvers
} // namespace Dune } // namespace Dune
#endif #endif
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
//! Idea of implementation: define an ordering for the nodes (with respect to the axis of anisotropy) //! Idea of implementation: define an ordering for the nodes (with respect to the axis of anisotropy)
//! and then use a merge sort algorithm to renumerate the nodes along the lines which are parallel to this axis. //! and then use a merge sort algorithm to renumerate the nodes along the lines which are parallel to this axis.
//! to do so, we introduce a 'NodeList' class. //! to do so, we introduce a 'NodeList' class.
//! everything is handeled by the PermutationManager //! everything is handeled by the PermutationManager
// type of nodes: // type of nodes:
...@@ -85,7 +85,7 @@ public: ...@@ -85,7 +85,7 @@ public:
}; };
template <class CoordinateImp, int dim_domain> template <class CoordinateImp, int dim_domain>
class AxisComparison class AxisComparison
{ {
...@@ -116,7 +116,7 @@ public: ...@@ -116,7 +116,7 @@ public:
while ( current_axis >= 0 ) while ( current_axis >= 0 )
{ {
if ( current_axis == primaryAxis_ ) if ( current_axis == primaryAxis_ )
current_axis -= 1; current_axis -= 1;
if ( current_axis < 0 ) if ( current_axis < 0 )
break; break;
...@@ -156,7 +156,7 @@ public: ...@@ -156,7 +156,7 @@ public:
template< class GridViewImp > template< class GridViewImp >
class PermutationManager{ class PermutationManager{
public: public:
...@@ -368,7 +368,7 @@ public: ...@@ -368,7 +368,7 @@ public:
if ( block_number < number_of_blocks_ ) if ( block_number < number_of_blocks_ )
{ return block_sizes[block_number]; } { return block_sizes[block_number]; }
else else
{ std :: cout << "Request for block number " << block_number << ", but there are only " << number_of_blocks_ << " blocks." << std :: endl; { std :: cout << "Request for block number " << block_number << ", but there are only " << number_of_blocks_ << " blocks." << std :: endl;
std :: cout << "Note that the numeration of the blocks starts with 0." << std :: endl; std :: cout << "Note that the numeration of the blocks starts with 0." << std :: endl;
abort(); abort();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment