mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Made phase mixing functors a class hierarchy.
In summary: - added RsFunction (base class), - made NoMixing, RsVD, RsSatAtContact inherit RsFunction, - RS and RV are no longer template arguments for EquilReg class, - EquilReg constructor now takes two shared_ptr<Miscibility::RsFunction>, - use of constructor updated, mostly using make_shared.
This commit is contained in:
@@ -296,7 +296,8 @@ namespace Opm
|
||||
const int repcell = *cells.begin();
|
||||
const RhoCalc calc(props, repcell);
|
||||
|
||||
const EqReg eqreg(rec[r], calc, NoMix(), NoMix(),
|
||||
const EqReg eqreg(rec[r], calc,
|
||||
std::make_shared<NoMix>(), std::make_shared<NoMix>(),
|
||||
props.phaseUsage());
|
||||
|
||||
const PPress& res = phasePressures(G, eqreg, cells, grav);
|
||||
@@ -334,7 +335,8 @@ namespace Opm
|
||||
const int repcell = *cells.begin();
|
||||
const RhoCalc calc(props, repcell);
|
||||
|
||||
const EqReg eqreg(rec[r], calc, NoMix(), NoMix(),
|
||||
const EqReg eqreg(rec[r], calc,
|
||||
std::make_shared<NoMix>(), std::make_shared<NoMix>(),
|
||||
props.phaseUsage());
|
||||
|
||||
const PPress press = phasePressures(G, eqreg, cells, grav);
|
||||
|
||||
Reference in New Issue
Block a user