mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Merge pull request #524 from blattms/prevent-copying-porevolume
Prevent copying the porevolume when checking for convergence.
This commit is contained in:
@@ -2445,7 +2445,7 @@ namespace detail {
|
||||
const int nm = asImpl().numMaterials();
|
||||
assert(int(rq_.size()) == nm);
|
||||
|
||||
const V pv = geo_.poreVolume();
|
||||
const V& pv = geo_.poreVolume();
|
||||
|
||||
std::vector<double> R_sum(nm);
|
||||
std::vector<double> B_avg(nm);
|
||||
@@ -2564,7 +2564,7 @@ namespace detail {
|
||||
const int np = asImpl().numPhases();
|
||||
const int nm = asImpl().numMaterials();
|
||||
|
||||
const V pv = geo_.poreVolume();
|
||||
const V& pv = geo_.poreVolume();
|
||||
std::vector<double> R_sum(nm);
|
||||
std::vector<double> B_avg(nm);
|
||||
std::vector<double> maxCoeff(nm);
|
||||
|
||||
Reference in New Issue
Block a user