mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
improving the initSolvent in StandardWellsSolvent
This commit is contained in:
@@ -105,7 +105,7 @@ namespace Opm {
|
||||
|
||||
residual_.matbalscale.resize(fluid_.numPhases() + 1, 0.0031); // use the same as gas
|
||||
|
||||
stdWells().initilazeSolvent(&solvent_props_, solvent_pos_);
|
||||
stdWells().initSolvent(&solvent_props_, solvent_pos_);
|
||||
}
|
||||
if (is_miscible_) {
|
||||
mu_eff_.resize(fluid_.numPhases() + 1, ADB::null());
|
||||
|
@@ -39,8 +39,7 @@ namespace Opm {
|
||||
explicit StandardWellsSolvent(const Wells* wells);
|
||||
|
||||
// added the Solvent related
|
||||
// TODO: Should add interface in StandardWells, so this can be put in the constructor
|
||||
void initilazeSolvent(const SolventPropsAdFromDeck* solvent_props, const int solvent_pos);
|
||||
void initSolvent(const SolventPropsAdFromDeck* solvent_props, const int solvent_pos);
|
||||
|
||||
template <class SolutionState, class WellState>
|
||||
void computePropertiesForWellConnectionPressures(const SolutionState& state,
|
||||
|
@@ -34,6 +34,8 @@ namespace Opm
|
||||
|
||||
StandardWellsSolvent::StandardWellsSolvent(const Wells* wells_arg)
|
||||
: Base(wells_arg)
|
||||
, solvent_props_(nullptr)
|
||||
, solvent_pos_(-1)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -41,7 +43,7 @@ namespace Opm
|
||||
|
||||
|
||||
|
||||
void StandardWellsSolvent::initilazeSolvent(const SolventPropsAdFromDeck* solvent_props, const int solvent_pos)
|
||||
void StandardWellsSolvent::initSolvent(const SolventPropsAdFromDeck* solvent_props, const int solvent_pos)
|
||||
{
|
||||
solvent_props_ = solvent_props;
|
||||
solvent_pos_ = solvent_pos;
|
||||
|
Reference in New Issue
Block a user