mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Make method calls in variableState() polymorphic.
Achieved by using asImpl().
This commit is contained in:
parent
9aaf428f29
commit
143b213f53
@ -362,9 +362,9 @@ namespace detail {
|
||||
BlackoilModelBase<Grid, Implementation>::variableState(const ReservoirState& x,
|
||||
const WellState& xw) const
|
||||
{
|
||||
std::vector<V> vars0 = variableStateInitials(x, xw);
|
||||
std::vector<V> vars0 = asImpl().variableStateInitials(x, xw);
|
||||
std::vector<ADB> vars = ADB::variables(vars0);
|
||||
return variableStateExtractVars(x, variableStateIndices(), vars);
|
||||
return asImpl().variableStateExtractVars(x, asImpl().variableStateIndices(), vars);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user