changed: use Deck unit system from EclipseState

to avoid deck usage in simulator
This commit is contained in:
Arne Morten Kvarving 2020-03-23 15:45:10 +01:00
parent 187534780c
commit 1424b8e859

View File

@ -579,7 +579,7 @@ private:
std::size_t ny = eclState().getInputGrid().getNY();
auto nncData = sortNncAndApplyEditnnc(eclState().getInputNNC().data(),
eclState().getInputEDITNNC().data());
const auto& unitSystem = simulator_.vanguard().deck().getActiveUnitSystem();
const auto& unitSystem = simulator_.vanguard().eclState().getDeckUnitSystem();
std::vector<Opm::NNCdata> outputNnc;
std::size_t index = 0;