diff --git a/examples/sim_2p_comp_ad.cpp b/examples/sim_2p_comp_ad.cpp index fd6183d0b..842517426 100644 --- a/examples/sim_2p_comp_ad.cpp +++ b/examples/sim_2p_comp_ad.cpp @@ -104,7 +104,7 @@ try if (use_deck) { std::string deck_filename = param.get("deck_filename"); Opm::ParserPtr parser(new Opm::Parser()); - Opm::DeckConstPtr deck = parser->parseFile( deck_filename ); + deck = parser->parseFile( deck_filename ); eclipseState.reset(new EclipseState(deck)); // Grid init