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 Sep 22, 2020
1 parent f87159f commit f4d6864
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 f4d6864

Please sign in to comment.