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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user