mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
Change back relative change computation to old order.
Changing this caused tiny timestepping differences.
This commit is contained in:
parent
71c5129d3d
commit
0b9b20695c
@ -422,6 +422,12 @@ namespace Opm {
|
||||
|
||||
Scalar saturationsOld[FluidSystem::numPhases] = { 0.0 };
|
||||
Scalar oilSaturationOld = 1.0;
|
||||
|
||||
// NB fix me! adding pressures changes to satutation changes does not make sense
|
||||
Scalar tmp = pressureNew - pressureOld;
|
||||
resultDelta += tmp*tmp;
|
||||
resultDenom += pressureNew*pressureNew;
|
||||
|
||||
if (FluidSystem::numActivePhases() > 1) {
|
||||
if (FluidSystem::phaseIsActive(FluidSystem::waterPhaseIdx)) {
|
||||
saturationsOld[FluidSystem::waterPhaseIdx] = priVarsOld[Indices::waterSaturationIdx];
|
||||
@ -446,10 +452,6 @@ namespace Opm {
|
||||
assert(std::isfinite(resultDenom));
|
||||
}
|
||||
}
|
||||
// NB fix me! adding pressures changes to satutation changes does not make sense
|
||||
Scalar tmp = pressureNew - pressureOld;
|
||||
resultDelta += tmp*tmp;
|
||||
resultDenom += pressureNew*pressureNew;
|
||||
}
|
||||
|
||||
resultDelta = gridView.comm().sum(resultDelta);
|
||||
|
Loading…
Reference in New Issue
Block a user