mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Update for new surfaceDensity() interface.
This commit is contained in:
parent
b2bf88e689
commit
bbf1862023
@ -951,9 +951,9 @@ namespace {
|
|||||||
const std::vector<PhasePresence>& cond,
|
const std::vector<PhasePresence>& cond,
|
||||||
const std::vector<int>& cells) const
|
const std::vector<int>& cells) const
|
||||||
{
|
{
|
||||||
const double* rhos = fluid_.surfaceDensity();
|
const V rhos = fluid_.surfaceDensity(phase, cells);
|
||||||
ADB b = fluidReciprocFVF(phase, p, T, cond, cells);
|
const ADB b = fluidReciprocFVF(phase, p, T, cond, cells);
|
||||||
ADB rho = V::Constant(p.size(), 1, rhos[phase]) * b;
|
const ADB rho = rhos * b;
|
||||||
return rho;
|
return rho;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user