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:
parent
26f27daacd
commit
4544000065
@ -129,7 +129,7 @@ public:
|
|||||||
const std::vector<double>& total_mobilities,
|
const std::vector<double>& total_mobilities,
|
||||||
const std::vector<double>& omegas,
|
const std::vector<double>& omegas,
|
||||||
const std::vector<FlowBCTypes>& bctypes,
|
const std::vector<FlowBCTypes>& bctypes,
|
||||||
const std::vector<double> bcvalues)
|
const std::vector<double>& bcvalues)
|
||||||
{
|
{
|
||||||
if (state_ == Uninitialized) {
|
if (state_ == Uninitialized) {
|
||||||
throw std::runtime_error("Error in HybridPressureSolver::assemble(): You must call init() prior to calling assemble().");
|
throw std::runtime_error("Error in HybridPressureSolver::assemble(): You must call init() prior to calling assemble().");
|
||||||
|
@ -115,7 +115,7 @@ public:
|
|||||||
const std::vector<double>& total_mobilities,
|
const std::vector<double>& total_mobilities,
|
||||||
const std::vector<double>& omegas,
|
const std::vector<double>& omegas,
|
||||||
const std::vector<FlowBCTypes>& bctypes,
|
const std::vector<FlowBCTypes>& bctypes,
|
||||||
const std::vector<double> bcvalues)
|
const std::vector<double>& bcvalues)
|
||||||
{
|
{
|
||||||
if (state_ == Uninitialized) {
|
if (state_ == Uninitialized) {
|
||||||
throw std::runtime_error("Error in TPFAPressureSolver::assemble(): You must call init() prior to calling assemble().");
|
throw std::runtime_error("Error in TPFAPressureSolver::assemble(): You must call init() prior to calling assemble().");
|
||||||
|
Loading…
Reference in New Issue
Block a user