friend class BlackoilModelBas in BlackoilMultiSegmentModel

and adding asImp() when using variableWellStateInitials and
variableWellStateInitials.
This commit is contained in:
Kai Bao 2015-09-24 15:40:24 +02:00
parent eb73b64e3d
commit 02b187e14c
2 changed files with 4 additions and 2 deletions

View File

@ -496,7 +496,7 @@ namespace detail {
// and bhp and Q for the wells // and bhp and Q for the wells
vars0.reserve(np + 1); vars0.reserve(np + 1);
variableReservoirStateInitials(x, vars0); variableReservoirStateInitials(x, vars0);
variableWellStateInitials(xw, vars0); asImpl().variableWellStateInitials(xw, vars0);
return vars0; return vars0;
} }
@ -681,7 +681,7 @@ namespace detail {
} }
} }
// wells // wells
variableStateExtractWellsVars(indices, vars, state); asImpl().variableStateExtractWellsVars(indices, vars, state);
return state; return state;
} }

View File

@ -60,6 +60,8 @@ namespace Opm {
typedef typename Base::WellState WellState; typedef typename Base::WellState WellState;
typedef BlackoilMultiSegmentSolutionState SolutionState; typedef BlackoilMultiSegmentSolutionState SolutionState;
friend Base;
// --------- Public methods --------- // --------- Public methods ---------
/// Construct the model. It will retain references to the /// Construct the model. It will retain references to the