diff --git a/tests/test_wellmodel.cpp b/tests/test_wellmodel.cpp index c954e8e0a77..77fab123a67 100644 --- a/tests/test_wellmodel.cpp +++ b/tests/test_wellmodel.cpp @@ -77,7 +77,7 @@ struct SetupTest { Opm::ParseContext parse_context; Opm::Parser parser; auto deck = parser.parseFile("TESTWELLMODEL.DATA", parse_context); - ecl_state = std::make_unique(deck , parse_context); + ecl_state.reset(new Opm::EclipseState(deck , parse_context) ); // Create grid. const std::vector& porv = @@ -96,17 +96,17 @@ struct SetupTest { current_timestep = 0; // Create wells. - wells_manager = std::make_unique (*ecl_state, - current_timestep, - Opm::UgGridHelpers::numCells(grid), - Opm::UgGridHelpers::globalCell(grid), - Opm::UgGridHelpers::cartDims(grid), - Opm::UgGridHelpers::dimensions(grid), - Opm::UgGridHelpers::cell2Faces(grid), - Opm::UgGridHelpers::beginFaceCentroids(grid), - dummy_dynamic_list, - false, - std::unordered_set()); + wells_manager.reset(new Opm::WellsManager(*ecl_state, + current_timestep, + Opm::UgGridHelpers::numCells(grid), + Opm::UgGridHelpers::globalCell(grid), + Opm::UgGridHelpers::cartDims(grid), + Opm::UgGridHelpers::dimensions(grid), + Opm::UgGridHelpers::cell2Faces(grid), + Opm::UgGridHelpers::beginFaceCentroids(grid), + dummy_dynamic_list, + false, + std::unordered_set() ) ); };