Skip to content

Commit 66024a1

Browse files
committed
using asImpl_() instead of *this in blackoilprimaryvariables
making the function assignNaive() work for derived class
1 parent f673e43 commit 66024a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opm/models/blackoil/blackoilprimaryvariables.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public:
269269
bool onlyWater = FluidSystem::phaseIsActive(waterPhaseIdx)?(fluidState.saturation(waterPhaseIdx) > thresholdWaterFilledCell):false;
270270

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

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

0 commit comments

Comments
 (0)