mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-02 05:49:09 -06:00
fixed: obtaining solvent values should be conditional on enableSolvent
regressed in f508f3d4e8
This commit is contained in:
parent
bf55fcfd93
commit
acc31ea695
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user