From 45440000655e3e79a4cff9de577911c000bb2be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Fri, 23 Mar 2012 19:47:27 +0100 Subject: [PATCH] Fix likely omission: don't pass objects when references will do. This avoids copying a vector of size grid_.numFaces(). --- opm/core/pressure/HybridPressureSolver.hpp | 2 +- opm/core/pressure/TPFAPressureSolver.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/core/pressure/HybridPressureSolver.hpp b/opm/core/pressure/HybridPressureSolver.hpp index 58b64be4..6e7a934e 100644 --- a/opm/core/pressure/HybridPressureSolver.hpp +++ b/opm/core/pressure/HybridPressureSolver.hpp @@ -129,7 +129,7 @@ public: const std::vector& total_mobilities, const std::vector& omegas, const std::vector& bctypes, - const std::vector bcvalues) + const std::vector& bcvalues) { if (state_ == Uninitialized) { throw std::runtime_error("Error in HybridPressureSolver::assemble(): You must call init() prior to calling assemble()."); diff --git a/opm/core/pressure/TPFAPressureSolver.hpp b/opm/core/pressure/TPFAPressureSolver.hpp index d1988c88..cf19adfe 100644 --- a/opm/core/pressure/TPFAPressureSolver.hpp +++ b/opm/core/pressure/TPFAPressureSolver.hpp @@ -115,7 +115,7 @@ public: const std::vector& total_mobilities, const std::vector& omegas, const std::vector& bctypes, - const std::vector bcvalues) + const std::vector& bcvalues) { if (state_ == Uninitialized) { throw std::runtime_error("Error in TPFAPressureSolver::assemble(): You must call init() prior to calling assemble().");