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().");