From b425045224da3d1cc016e57a61598ba3ff150196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 28 Feb 2012 11:08:57 +0100 Subject: [PATCH] Remove unused parameter "grav" from computeStaticGravity(). Update callers accordingly, and remove a previously disabled call. --- opm/core/transport/SinglePointUpwindTwoPhase.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/opm/core/transport/SinglePointUpwindTwoPhase.hpp b/opm/core/transport/SinglePointUpwindTwoPhase.hpp index 5f6d06c0..3ada6148 100644 --- a/opm/core/transport/SinglePointUpwindTwoPhase.hpp +++ b/opm/core/transport/SinglePointUpwindTwoPhase.hpp @@ -136,7 +136,6 @@ namespace Opm { if (gravity_) { store_.drho() = fluid_.density(0) - fluid_.density(1); - //this->computeStaticGravity(g, gravity_); } for (int c = 0, i = 0; c < g.number_of_cells; ++c) { @@ -337,7 +336,7 @@ namespace Opm { } if (gravity_) { - this->computeStaticGravity(g, gravity_); + this->computeStaticGravity(g); } } @@ -499,8 +498,8 @@ namespace Opm { template void - computeStaticGravity(const Grid& g , - const double* grav ){ + computeStaticGravity(const Grid& g) { + const int d = g.dimensions; for (int c = 0, i = 0; c < g.number_of_cells; ++c) {