EclipseWriter: don't convert the pressure field to active cells

because that array already is restricted to the active cells...

found using ASAN.
This commit is contained in:
Andreas Lauser
2014-03-20 15:59:02 +01:00
parent ae5d9746e0
commit 2443903928

View File

@@ -1405,7 +1405,6 @@ void EclipseWriter::writeSolution_(const SimulatorTimer& timer,
// thinkable, but this is also not in the most performance
// critical code path!
std::vector<double> tmp = reservoirState.pressure();
restrictToActiveCells_(tmp, *grid_);
convertUnit_(tmp, toBar);
sol.add(EclipseKeyword<float>("PRESSURE", tmp));