diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index 41552add2..912141d2a 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -439,7 +439,7 @@ list (APPEND PUBLIC_HEADER_FILES opm/simulators/flow/priVarsPacking.hpp opm/simulators/flow/BlackoilModelEbos.hpp opm/simulators/flow/BlackoilModelEbosNldd.hpp - opm/simulators/flow/BlackoilModelParametersEbos.hpp + opm/simulators/flow/BlackoilModelParameters.hpp opm/simulators/flow/Banners.hpp opm/simulators/flow/ConvergenceOutputConfiguration.hpp opm/simulators/flow/EclActionHandler.hpp diff --git a/ebos/ebos.hh b/ebos/ebos.hh index b4a6cb679..385690622 100644 --- a/ebos/ebos.hh +++ b/ebos/ebos.hh @@ -193,7 +193,7 @@ public: { ParentType::registerParameters(); - BlackoilModelParametersEbos::registerParameters(); + BlackoilModelParameters::registerParameters(); EWOMS_REGISTER_PARAM(TypeTag, bool, EnableTerminalOutput, "Do *NOT* use!"); EWOMS_HIDE_PARAM(TypeTag, DbhpMaxRel); EWOMS_HIDE_PARAM(TypeTag, DwellFractionMax); diff --git a/ebos/eclbasevanguard.hh b/ebos/eclbasevanguard.hh index 691b18383..5db011f7f 100644 --- a/ebos/eclbasevanguard.hh +++ b/ebos/eclbasevanguard.hh @@ -40,9 +40,7 @@ #include #include -#include - - +#include #include #include diff --git a/opm/simulators/flow/BlackoilModelEbos.hpp b/opm/simulators/flow/BlackoilModelEbos.hpp index 984d9138a..98080a321 100644 --- a/opm/simulators/flow/BlackoilModelEbos.hpp +++ b/opm/simulators/flow/BlackoilModelEbos.hpp @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include #include #include @@ -165,7 +165,7 @@ namespace Opm { { public: // --------- Types and enums --------- - using ModelParameters = BlackoilModelParametersEbos; + using ModelParameters = BlackoilModelParameters; using Simulator = GetPropType; using Grid = GetPropType; diff --git a/opm/simulators/flow/BlackoilModelEbosNldd.hpp b/opm/simulators/flow/BlackoilModelEbosNldd.hpp index b0ee88d09..12439e9e7 100644 --- a/opm/simulators/flow/BlackoilModelEbosNldd.hpp +++ b/opm/simulators/flow/BlackoilModelEbosNldd.hpp @@ -81,7 +81,7 @@ public: using FluidSystem = GetPropType; using Grid = GetPropType; using Indices = GetPropType; - using ModelParameters = BlackoilModelParametersEbos; + using ModelParameters = BlackoilModelParameters; using Scalar = GetPropType; using SolutionVector = GetPropType; diff --git a/opm/simulators/flow/BlackoilModelParametersEbos.hpp b/opm/simulators/flow/BlackoilModelParameters.hpp similarity index 99% rename from opm/simulators/flow/BlackoilModelParametersEbos.hpp rename to opm/simulators/flow/BlackoilModelParameters.hpp index 97dfb0a40..e90368e07 100644 --- a/opm/simulators/flow/BlackoilModelParametersEbos.hpp +++ b/opm/simulators/flow/BlackoilModelParameters.hpp @@ -17,8 +17,8 @@ along with OPM. If not, see . */ -#ifndef OPM_BLACKOILMODELPARAMETERS_EBOS_HEADER_INCLUDED -#define OPM_BLACKOILMODELPARAMETERS_EBOS_HEADER_INCLUDED +#ifndef OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED +#define OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED #include @@ -463,7 +463,7 @@ namespace Opm { /// Solver parameters for the BlackoilModel. template - struct BlackoilModelParametersEbos + struct BlackoilModelParameters { private: using Scalar = GetPropType; @@ -595,7 +595,7 @@ namespace Opm bool write_partitions_{false}; /// Construct from user parameters or defaults. - BlackoilModelParametersEbos() + BlackoilModelParameters() { dbhp_max_rel_= EWOMS_GET_PARAM(TypeTag, Scalar, DbhpMaxRel); dwell_fraction_max_ = EWOMS_GET_PARAM(TypeTag, Scalar, DwellFractionMax); @@ -715,4 +715,4 @@ namespace Opm }; } // namespace Opm -#endif // OPM_BLACKOILMODELPARAMETERS_EBOS_HEADER_INCLUDED +#endif // OPM_BLACKOILMODELPARAMETERS_HEADER_INCLUDED diff --git a/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp b/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp index 549a8ee47..b17d222b3 100644 --- a/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp +++ b/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include #include diff --git a/opm/simulators/linalg/ISTLSolverEbos.hpp b/opm/simulators/linalg/ISTLSolverEbos.hpp index 6d6653f96..f27adc057 100644 --- a/opm/simulators/linalg/ISTLSolverEbos.hpp +++ b/opm/simulators/linalg/ISTLSolverEbos.hpp @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/opm/simulators/wells/BlackoilWellModel.hpp b/opm/simulators/wells/BlackoilWellModel.hpp index bb3490451..de72dd055 100644 --- a/opm/simulators/wells/BlackoilWellModel.hpp +++ b/opm/simulators/wells/BlackoilWellModel.hpp @@ -96,7 +96,7 @@ namespace Opm { { public: // --------- Types --------- - typedef BlackoilModelParametersEbos ModelParameters; + using ModelParameters = BlackoilModelParameters; using Grid = GetPropType; using EquilGrid = GetPropType; diff --git a/opm/simulators/wells/WellInterface.hpp b/opm/simulators/wells/WellInterface.hpp index 1d0e48711..c695f10b1 100644 --- a/opm/simulators/wells/WellInterface.hpp +++ b/opm/simulators/wells/WellInterface.hpp @@ -39,7 +39,7 @@ namespace Opm { #include -#include +#include #include #include @@ -78,7 +78,7 @@ class WellInterface : public WellInterfaceIndices, GetPropType>; public: - using ModelParameters = BlackoilModelParametersEbos; + using ModelParameters = BlackoilModelParameters; using Grid = GetPropType; using Simulator = GetPropType; diff --git a/tests/test_equil.cc b/tests/test_equil.cc index 2917ca523..955acb8ae 100644 --- a/tests/test_equil.cc +++ b/tests/test_equil.cc @@ -39,7 +39,7 @@ #include #include -#include +#include #include #if HAVE_DUNE_FEM @@ -238,7 +238,7 @@ struct EquilFixture { Dune::MPIHelper::instance(argc, argv); #endif Opm::EclGenericVanguard::setCommunication(std::make_unique()); - Opm::BlackoilModelParametersEbos::registerParameters(); + Opm::BlackoilModelParameters::registerParameters(); Opm::AdaptiveTimeSteppingEbos::registerParameters(); Opm::Parameters::registerParam("EnableTerminalOutput", "EnableTerminalOutput", diff --git a/tests/test_wellmodel.cpp b/tests/test_wellmodel.cpp index 795588977..9840d1633 100644 --- a/tests/test_wellmodel.cpp +++ b/tests/test_wellmodel.cpp @@ -114,7 +114,7 @@ BOOST_AUTO_TEST_CASE(TestStandardWellInput) { const auto& wells_ecl = setup_test.schedule->getWells(setup_test.current_timestep); BOOST_CHECK_EQUAL( wells_ecl.size(), 2); const Opm::Well& well = wells_ecl[1]; - const Opm::BlackoilModelParametersEbos param; + const Opm::BlackoilModelParameters param; // For the conversion between the surface volume rate and resrevoir voidage rate typedef Opm::BlackOilFluidSystem FluidSystem; @@ -147,7 +147,7 @@ BOOST_AUTO_TEST_CASE(TestBehavoir) { { const int nw = wells_ecl.size(); - const Opm::BlackoilModelParametersEbos param; + const Opm::BlackoilModelParameters param; for (int w = 0; w < nw; ++w) { // For the conversion between the surface volume rate and resrevoir voidage rate