improving the initSolvent in StandardWellsSolvent

This commit is contained in:
Kai Bao
2016-04-18 15:37:18 +02:00
parent ebe60bc5d7
commit b82e917b0d
3 changed files with 5 additions and 4 deletions

View File

@@ -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());

View File

@@ -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,

View File

@@ -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;