Skip to content

Commit

Permalink
using asImpl_() instead of *this in blackoilprimaryvariables
Browse files Browse the repository at this point in the history
making the function assignNaive() work for derived class
  • Loading branch information
GitPaean committed Aug 19, 2020
1 parent f673e43 commit 66024a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opm/models/blackoil/blackoilprimaryvariables.hh
Expand Up @@ -269,7 +269,7 @@ public:
bool onlyWater = FluidSystem::phaseIsActive(waterPhaseIdx)?(fluidState.saturation(waterPhaseIdx) > thresholdWaterFilledCell):false;

// deal with the primary variables for the energy extension
EnergyModule::assignPrimaryVars(*this, fluidState);
EnergyModule::assignPrimaryVars(asImp_(), fluidState);

// determine the meaning of the primary variables
if (FluidSystem::numActivePhases() == 1) {
Expand Down

0 comments on commit 66024a1

Please sign in to comment.