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

Move class Interval into the namespace Dune::Solvers

This should avoid clashes with the copy in dune-fufem.

[[Imported from SVN: r12799]]
parent 9139bbea
No related branches found
No related tags found
No related merge requests found
#ifndef DUNE_SOLVERS_COMMON_INTERVAL_HH #ifndef DUNE_SOLVERS_COMMON_INTERVAL_HH
#define DUNE_SOLVERS_COMMON_INTERVAL_HH #define DUNE_SOLVERS_COMMON_INTERVAL_HH
// Note: This file exists both in dune-solvers and in dune-fufem. To
// avoid redefinitions, please make sure that they have *identical*
// include guards.
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
...@@ -12,7 +8,9 @@ ...@@ -12,7 +8,9 @@
#include <dune/common/array.hh> #include <dune/common/array.hh>
namespace Dune {
namespace Solvers {
/** \brief Encapsulates a closed interval /** \brief Encapsulates a closed interval
* \tparam field_type The type used for real numbers * \tparam field_type The type used for real numbers
...@@ -79,5 +77,9 @@ inline std::ostream& operator<< (std::ostream& s, const Interval<field_type>& in ...@@ -79,5 +77,9 @@ inline std::ostream& operator<< (std::ostream& s, const Interval<field_type>& in
s << "[" << interval[0] << ", " << interval[1] << "]"; s << "[" << interval[0] << ", " << interval[1] << "]";
return s; return s;
} }
} // namespace Solvers
} // namespace Dune
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment