Commit 4b774a52 authored by Martin Schneider's avatar Martin Schneider
Browse files

[impes] Fix pressure volVars update

parent cb8b5fe4
......@@ -174,7 +174,7 @@ public:
fluidState.setSaturation(wPhaseIdx, sw_);
fluidState.setSaturation(nPhaseIdx, 1 - sw_);
pc_ = MaterialLaw::pc(materialParams, fluidState.saturation(wPhaseIdx));
fluidState.setPressure(nPhaseIdx, pw - pc_);
fluidState.setPressure(nPhaseIdx, pw + pc_);
typename FluidSystem::ParameterCache paramCache;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment