Hack to make the intial output of rs and rv Ecl compatible.

For cells with swat == 1 Ecl outputs; rs = rsSat and rv=rvSat, in all
but the initial step where it outputs rs and rv values calculated by the
initialization. To be compatible we overwrite rs and rv with the values
passed by the localState. Volume factors and densities needs to be
recalculated with the updated rs and rv values.
This commit is contained in:
Tor Harald Sandve
2017-03-16 10:22:27 +01:00
parent d640a16e5a
commit 6c859836f3
5 changed files with 49 additions and 6 deletions

View File

@@ -32,6 +32,7 @@
#include <opm/polymer/fullyimplicit/PolymerPropsAd.hpp>
#include <opm/core/utility/parameters/ParameterGroup.hpp>
#include <opm/simulators/timestepping/SimulatorTimerInterface.hpp>
#include <opm/common/data/SimulationDataContainer.hpp>
struct UnstructuredGrid;
struct Wells;
@@ -146,7 +147,7 @@ namespace Opm {
const PolymerBlackoilState& current ) const;
/// Return reservoir simulation data (for output functionality)
const SimulatorData& getSimulatorData() const {
const SimulatorData& getSimulatorData(const SimulationDataContainer&) const {
return sd_;
}