diff --git a/opm/autodiff/BlackoilModelEbos.hpp b/opm/autodiff/BlackoilModelEbos.hpp index b3c5a862e..6fdd69f46 100644 --- a/opm/autodiff/BlackoilModelEbos.hpp +++ b/opm/autodiff/BlackoilModelEbos.hpp @@ -91,6 +91,10 @@ SET_BOOL_PROP(EclFlowProblem, UseVolumetricResidual, false); // SWATINIT is done by the flow part of flow_ebos. this can be removed once the legacy // code for fluid and satfunc handling gets fully retired. SET_BOOL_PROP(EclFlowProblem, EnableSwatinit, false); + +// Silence the deprecation warnings about the SimulatorParameter mechanism. This needs to +// be removed once the SimulatorParameter mechanism bites the dust! +SET_TYPE_PROP(EclFlowProblem, SimulatorParameter, Ewoms::EmptySimulationParameters); }} namespace Opm { diff --git a/opm/autodiff/FlowMainEbos.hpp b/opm/autodiff/FlowMainEbos.hpp index 0002a1453..5804336d8 100755 --- a/opm/autodiff/FlowMainEbos.hpp +++ b/opm/autodiff/FlowMainEbos.hpp @@ -93,19 +93,17 @@ namespace Opm /// simulator classes, based on user command-line input. The /// content of this function used to be in the main() function of /// flow.cpp. - int execute(int argc, char** argv, - std::shared_ptr deck = std::shared_ptr(), - std::shared_ptr eclipseState = std::shared_ptr() ) + int execute(int argc, char** argv) { try { - setupParallelism(argc, argv); + setupParallelism(); printStartupMessage(); const bool ok = setupParameters(argc, argv); if (!ok) { return EXIT_FAILURE; } - setupEbosSimulator( deck, eclipseState ); + setupEbosSimulator(); setupOutput(); setupLogging(); printPRTHeader(); @@ -145,7 +143,7 @@ namespace Opm } protected: - void setupParallelism(int argc, char** argv) + void setupParallelism() { // determine the rank of the current process and the number of processes // involved in the simulation. MPI must have already been initialized here. @@ -410,7 +408,7 @@ namespace Opm detail::ParallelFileMerger(output_path, deck_filename.stem().string())); } - void setupEbosSimulator( std::shared_ptr& dck, std::shared_ptr& eclipseState) + void setupEbosSimulator() { std::string progName("flow_ebos"); std::string deckFile("--ecl-deck-file-name="); diff --git a/opm/autodiff/SimulatorFullyImplicitBlackoilEbos.hpp b/opm/autodiff/SimulatorFullyImplicitBlackoilEbos.hpp index e388d81f0..0404f56d8 100644 --- a/opm/autodiff/SimulatorFullyImplicitBlackoilEbos.hpp +++ b/opm/autodiff/SimulatorFullyImplicitBlackoilEbos.hpp @@ -455,7 +455,7 @@ public: { return ebosSimulator_.gridManager().grid(); } protected: - void handleAdditionalWellInflow(SimulatorTimer& timer, + void handleAdditionalWellInflow(SimulatorTimer& /*timer*/, WellsManager& /* wells_manager */, WellState& /* well_state */, const Wells* /* wells */)