Skip to content
Snippets Groups Projects
Commit a7cf67bd authored by Elias Pipping's avatar Elias Pipping Committed by pipping
Browse files

Add missing #includes and namespace

[[Imported from SVN: r11790]]
parent 32b76e30
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,9 @@ ...@@ -3,7 +3,9 @@
#include <dune/common/bitsetvector.hh> #include <dune/common/bitsetvector.hh>
#include <dune/common/fmatrix.hh>
#include <dune/istl/matrix.hh> #include <dune/istl/matrix.hh>
#include <dune/istl/preconditioners.hh>
#include <dune/istl/solvers.hh> #include <dune/istl/solvers.hh>
#include <dune/solvers/common/preconditioner.hh> #include <dune/solvers/common/preconditioner.hh>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <cmath> #include <cmath>
#include <dune/common/misc.hh>
#include <dune/solvers/solvers/iterativesolver.hh> #include <dune/solvers/solvers/iterativesolver.hh>
#include <dune/solvers/iterationsteps/lineariterationstep.hh> #include <dune/solvers/iterationsteps/lineariterationstep.hh>
#include <dune/solvers/norms/norm.hh> #include <dune/solvers/norms/norm.hh>
...@@ -24,7 +25,7 @@ class TruncatedCGSolver : public IterativeSolver<VectorType> ...@@ -24,7 +25,7 @@ class TruncatedCGSolver : public IterativeSolver<VectorType>
field_type p = b/a; field_type p = b/a;
field_type q = c/a; field_type q = c/a;
field_type root1 = - p/2 - sign(p) * std::sqrt(p*p/4 - q); field_type root1 = - p/2 - Dune::sign(p) * std::sqrt(p*p/4 - q);
field_type root2 = q/root1; field_type root2 = q/root1;
// There must be one positive and one negative root // There must be one positive and one negative root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment