diff --git a/opm/autodiff/ParallelDebugOutput.hpp b/opm/autodiff/ParallelDebugOutput.hpp index 1f1f9d504..39fd6218a 100644 --- a/opm/autodiff/ParallelDebugOutput.hpp +++ b/opm/autodiff/ParallelDebugOutput.hpp @@ -543,7 +543,14 @@ namespace Opm Opm::UgGridHelpers::beginFaceCentroids( globalGrid ), permeability_, dynamic_list_econ_limited, - false); + false + // We need to pass the optionaly arguments + // as we get the following error otherwise + // with c++ (Debian 4.9.2-10) 4.9.2 and -std=c++11 + // converting to ‘const std::unordered_set >’ from initializer list would use explicit constructor + , std::vector(), + std::unordered_set() + ); const Wells* wells = wells_manager.c_wells(); globalWellState_.init(wells, *globalReservoirState_, globalWellState_ ); diff --git a/opm/autodiff/SimulatorFullyImplicitBlackoilMultiSegment_impl.hpp b/opm/autodiff/SimulatorFullyImplicitBlackoilMultiSegment_impl.hpp index e92bc9fd8..efadd3e0e 100644 --- a/opm/autodiff/SimulatorFullyImplicitBlackoilMultiSegment_impl.hpp +++ b/opm/autodiff/SimulatorFullyImplicitBlackoilMultiSegment_impl.hpp @@ -108,7 +108,13 @@ namespace Opm Opm::UgGridHelpers::beginFaceCentroids(grid_), props_.permeability(), dynamic_list_econ_limited, - is_parallel_run_); + is_parallel_run_, + // We need to pass the optionaly arguments + // as we get the following error otherwise + // with c++ (Debian 4.9.2-10) 4.9.2 and -std=c++11 + // converting to ‘const std::unordered_set >’ from initializer list would use explicit constructor + std::vector(), // null well_potentials + Base::defunct_well_names_); const Wells* wells = wells_manager.c_wells(); WellState well_state; // well_state.init(wells, state, prev_well_state); diff --git a/opm/autodiff/SimulatorFullyImplicitBlackoilOutput.hpp b/opm/autodiff/SimulatorFullyImplicitBlackoilOutput.hpp index 8e878dade..5bd508743 100644 --- a/opm/autodiff/SimulatorFullyImplicitBlackoilOutput.hpp +++ b/opm/autodiff/SimulatorFullyImplicitBlackoilOutput.hpp @@ -397,7 +397,14 @@ namespace Opm Opm::UgGridHelpers::cell2Faces(grid), Opm::UgGridHelpers::beginFaceCentroids(grid), permeability, - dummy_list_econ_limited); + dummy_list_econ_limited + // We need to pass the optionaly arguments + // as we get the following error otherwise + // with c++ (Debian 4.9.2-10) 4.9.2 and -std=c++11 + // converting to ‘const std::unordered_set >’ from initializer list would use explicit constructo + , false, + std::vector(), + std::unordered_set()); const Wells* wells = wellsmanager.c_wells(); wellstate.resize(wells, simulatorstate); //Resize for restart step diff --git a/tests/test_multisegmentwells.cpp b/tests/test_multisegmentwells.cpp index 0bbe10d59..3f7d74dd3 100644 --- a/tests/test_multisegmentwells.cpp +++ b/tests/test_multisegmentwells.cpp @@ -28,6 +28,7 @@ #define BOOST_TEST_MODULE MultisegmentWellsTest #include +#include #include #include @@ -106,7 +107,13 @@ struct SetupMSW { Opm::UgGridHelpers::beginFaceCentroids(grid), fluidprops->permeability(), dummy_dynamic_list, - false); + false + // We need to pass the optionaly arguments + // as we get the following error otherwise + // with c++ (Debian 4.9.2-10) 4.9.2 and -std=c++11 + // converting to ‘const std::unordered_set >’ from initializer list would use explicit constructor + , std::vector(), // null well_potentials + std::unordered_set()); const Wells* wells = wells_manager.c_wells(); const auto wells_ecl = ecl_state->getSchedule()->getWells(current_timestep);