From 6442d3fda23487af621ce1f0aaab2effffe875b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Thu, 13 Oct 2011 19:38:33 +0200 Subject: [PATCH] Don't reference (non-existent) Dune directories. Remove disabled code. --- examples/spu_2p.cpp | 5 +++-- src/CSRMatrixBlockAssembler.hpp | 3 +-- src/CSRMatrixUmfpackSolver.hpp | 2 +- src/SinglePointUpwindTwoPhase.hpp | 30 +----------------------------- 4 files changed, 6 insertions(+), 34 deletions(-) diff --git a/examples/spu_2p.cpp b/examples/spu_2p.cpp index 9b28eed7..e80462bc 100644 --- a/examples/spu_2p.cpp +++ b/examples/spu_2p.cpp @@ -34,9 +34,10 @@ */ #include +#include #include -#include +#include #include #include #include @@ -61,7 +62,7 @@ #include #include -#include + template Ostream& operator<<(Ostream& os, const Collection& c) diff --git a/src/CSRMatrixBlockAssembler.hpp b/src/CSRMatrixBlockAssembler.hpp index d876b6f7..d3f44c11 100644 --- a/src/CSRMatrixBlockAssembler.hpp +++ b/src/CSRMatrixBlockAssembler.hpp @@ -42,8 +42,7 @@ #include #include -#include -#include +#include namespace Opm { namespace ImplicitTransportDefault { diff --git a/src/CSRMatrixUmfpackSolver.hpp b/src/CSRMatrixUmfpackSolver.hpp index 06f19aa0..daaf836a 100644 --- a/src/CSRMatrixUmfpackSolver.hpp +++ b/src/CSRMatrixUmfpackSolver.hpp @@ -36,7 +36,7 @@ #ifndef OPM_CSRMATRIXUMFPACKSOLVER_HPP_HEADER #define OPM_CSRMATRIXUMFPACKSOLVER_HPP_HEADER -#include +#include namespace Opm { namespace ImplicitTransportLinAlgSupport { diff --git a/src/SinglePointUpwindTwoPhase.hpp b/src/SinglePointUpwindTwoPhase.hpp index 0d39249d..2cb423bb 100644 --- a/src/SinglePointUpwindTwoPhase.hpp +++ b/src/SinglePointUpwindTwoPhase.hpp @@ -131,36 +131,8 @@ namespace Opm { std::copy(porevol.begin(), porevol.end(), store_.porevol()); } - /* - template - void init(const TwophaseFluid& fluid , - const Grid& g , - const std::vector& porevol , - const double* grav = 0, - const double* trans = 0) - { - fluid_ = fluid; - gravity_ = grav; - f2hf_.resize(2 * g.number_of_faces, -1); - store_(g.number_of_cells,g.cell_facepos[ g.number_of_cells ]); - if (gravity_) { - store_.drho() = fluid_.density(0) - fluid_.density(1); - this->computeStaticGravity(g, grav, trans); - } - - for (int c = 0, i = 0; c < g.number_of_cells; ++c) { - for (; i < g.cell_facepos[c + 1]; ++i) { - const int f = g.cell_faces[i]; - const int p = 1 - (g.face_cells[2*f + 0] == c); - - f2hf_[2*f + p] = i; - } - } - - std::copy(porevol.begin(), porevol.end(), store_.porevol()); - */ - // ----- ------------------------------------------------------------ + // ----------------------------------------------------------------- // System assembly innards // -----------------------------------------------------------------