Fix likely omission: don't pass objects when references will do.

This avoids copying a vector of size grid_.numFaces().
This commit is contained in:
Bård Skaflestad 2012-03-23 19:47:27 +01:00
parent 26f27daacd
commit 4544000065
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ public:
const std::vector<double>& total_mobilities,
const std::vector<double>& omegas,
const std::vector<FlowBCTypes>& bctypes,
const std::vector<double> bcvalues)
const std::vector<double>& bcvalues)
{
if (state_ == Uninitialized) {
throw std::runtime_error("Error in HybridPressureSolver::assemble(): You must call init() prior to calling assemble().");

View File

@ -115,7 +115,7 @@ public:
const std::vector<double>& total_mobilities,
const std::vector<double>& omegas,
const std::vector<FlowBCTypes>& bctypes,
const std::vector<double> bcvalues)
const std::vector<double>& bcvalues)
{
if (state_ == Uninitialized) {
throw std::runtime_error("Error in TPFAPressureSolver::assemble(): You must call init() prior to calling assemble().");