Skip to content

Commit c51f507

Browse files
authored
Merge pull request #6352 from atgeirr/remove-unused-fluidstate-setter
Remove unneeded setPc() call.
2 parents e7548a1 + 309a656 commit c51f507

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

opm/simulators/flow/FlowProblemBlackoil.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,6 @@ class FlowProblemBlackoil : public FlowProblem<TypeTag>
782782
Valgrind::CheckDefined(pc);
783783
for (unsigned activePhaseIdx = 0; activePhaseIdx < FluidSystem::numActivePhases(); ++activePhaseIdx) {
784784
const auto phaseIdx = FluidSystem::activeToCanonicalPhaseIdx(activePhaseIdx);
785-
786-
fluidState.setPc(phaseIdx, pc[phaseIdx]);
787785
if (Indices::oilEnabled)
788786
fluidState.setPressure(phaseIdx, pressure + (pc[phaseIdx] - pc[oilPhaseIdx]));
789787
else if (Indices::gasEnabled)

0 commit comments

Comments
 (0)