Skip to content
Snippets Groups Projects
Commit b4094424 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Move into namespace Dune::Solvers

parent 3826ae18
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include <dune/solvers/solvers/solver.hh> #include <dune/solvers/solvers/solver.hh>
template <class VectorType, class BitVectorType> template <class VectorType, class BitVectorType>
void ::LoopSolver<VectorType, BitVectorType>::check() const void Dune::Solvers::LoopSolver<VectorType, BitVectorType>::check() const
{ {
if (!iterationStep_) if (!iterationStep_)
DUNE_THROW(SolverError, "You need to supply an iteration step to an iterative solver!"); DUNE_THROW(SolverError, "You need to supply an iteration step to an iterative solver!");
...@@ -20,13 +20,13 @@ void ::LoopSolver<VectorType, BitVectorType>::check() const ...@@ -20,13 +20,13 @@ void ::LoopSolver<VectorType, BitVectorType>::check() const
} }
template <class VectorType, class BitVectorType> template <class VectorType, class BitVectorType>
void LoopSolver<VectorType, BitVectorType>::preprocess() void Dune::Solvers::LoopSolver<VectorType, BitVectorType>::preprocess()
{ {
this->iterationStep_->preprocess(); this->iterationStep_->preprocess();
} }
template <class VectorType, class BitVectorType> template <class VectorType, class BitVectorType>
void LoopSolver<VectorType, BitVectorType>::solve() void Dune::Solvers::LoopSolver<VectorType, BitVectorType>::solve()
{ {
int i; int i;
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
#include <dune/solvers/iterationsteps/iterationstep.hh> #include <dune/solvers/iterationsteps/iterationstep.hh>
#include <dune/solvers/norms/norm.hh> #include <dune/solvers/norms/norm.hh>
namespace Dune {
namespace Solvers {
/** \brief A solver which consists of a single loop /** \brief A solver which consists of a single loop
* *
* This class basically implements a loop that calls an iteration procedure * This class basically implements a loop that calls an iteration procedure
...@@ -58,6 +62,10 @@ public: ...@@ -58,6 +62,10 @@ public:
}; };
}
}
#include "loopsolver.cc" #include "loopsolver.cc"
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment