diff --git a/opm/models/blackoil/blackoilprimaryvariables.hh b/opm/models/blackoil/blackoilprimaryvariables.hh index 54f85f2471..e2638aac65 100644 --- a/opm/models/blackoil/blackoilprimaryvariables.hh +++ b/opm/models/blackoil/blackoilprimaryvariables.hh @@ -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) {