Use constant grid in output writing

Grid manager returns a const UnstructuredGrid*, and the entire chain
of pointer-passing glory should adhere to this const-ness.
This commit is contained in:
Roland Kaufmann
2013-11-19 14:33:58 +01:00
parent e02f0cd7de
commit 1baf7369ef
6 changed files with 10 additions and 10 deletions

View File

@@ -841,7 +841,7 @@ void EclipseWriter::writeTimeStep(
EclipseWriter::EclipseWriter (
const ParameterGroup& params,
std::shared_ptr <EclipseGridParser> parser,
std::shared_ptr <UnstructuredGrid> grid)
std::shared_ptr <const UnstructuredGrid> grid)
: parser_ (parser)
, grid_ (grid)
, uses_ (phaseUsageFromDeck (*parser)) {