fixed: obtaining solvent values should be conditional on enableSolvent

regressed in f508f3d4e8
This commit is contained in:
Arne Morten Kvarving 2024-01-02 11:29:21 +01:00
parent bf55fcfd93
commit acc31ea695

View File

@ -1298,7 +1298,9 @@ public:
values.setPvtRegionIndex(pvtRegionIndex(context, spaceIdx, timeIdx));
values.assignNaive(initialFluidStates_[globalDofIdx]);
SolventModule::assignPrimaryVars(values, this->solventSaturation_[globalDofIdx], this->solventRsw_[globalDofIdx]);
SolventModule::assignPrimaryVars(values,
enableSolvent ? this->solventSaturation_[globalDofIdx] : 0.0,
enableSolvent ? this->solventRsw_[globalDofIdx] : 0.0);
if constexpr (enablePolymer)
values[Indices::polymerConcentrationIdx] = this->polymer_.concentration[globalDofIdx];