diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index 7f617ae48..a48bac1c6 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -437,7 +437,7 @@ list (APPEND PUBLIC_HEADER_FILES ebos/vtkecltracermodule.hh opm/simulators/flow/countGlobalCells.hpp opm/simulators/flow/priVarsPacking.hpp - opm/simulators/flow/BlackoilModelEbos.hpp + opm/simulators/flow/BlackoilModel.hpp opm/simulators/flow/BlackoilModelNldd.hpp opm/simulators/flow/BlackoilModelParameters.hpp opm/simulators/flow/Banners.hpp diff --git a/opm/simulators/flow/BlackoilModelEbos.hpp b/opm/simulators/flow/BlackoilModel.hpp similarity index 98% rename from opm/simulators/flow/BlackoilModelEbos.hpp rename to opm/simulators/flow/BlackoilModel.hpp index 709890efa..c9dec7302 100644 --- a/opm/simulators/flow/BlackoilModelEbos.hpp +++ b/opm/simulators/flow/BlackoilModel.hpp @@ -21,8 +21,8 @@ along with OPM. If not, see . */ -#ifndef OPM_BLACKOILMODELEBOS_HEADER_INCLUDED -#define OPM_BLACKOILMODELEBOS_HEADER_INCLUDED +#ifndef OPM_BLACKOILMODEL_HEADER_INCLUDED +#define OPM_BLACKOILMODEL_HEADER_INCLUDED #include @@ -161,7 +161,7 @@ namespace Opm { /// uses an industry-standard TPFA discretization with per-phase /// upwind weighting of mobilities. template - class BlackoilModelEbos + class BlackoilModel { public: // --------- Types and enums --------- @@ -225,10 +225,10 @@ namespace Opm { /// \param[in] linsolver linear solver /// \param[in] eclState eclipse state /// \param[in] terminal_output request output to cout/cerr - BlackoilModelEbos(Simulator& ebosSimulator, - const ModelParameters& param, - BlackoilWellModel& well_model, - const bool terminal_output) + BlackoilModel(Simulator& ebosSimulator, + const ModelParameters& param, + BlackoilWellModel& well_model, + const bool terminal_output) : ebosSimulator_(ebosSimulator) , grid_(ebosSimulator_.vanguard().grid()) , phaseUsage_(phaseUsageFromDeck(eclState())) @@ -818,7 +818,7 @@ namespace Opm { B_avg, R_sum, maxCoeff, maxCoeffCell); } - OPM_END_PARALLEL_TRY_CATCH("BlackoilModelEbos::localConvergenceData() failed: ", grid_.comm()); + OPM_END_PARALLEL_TRY_CATCH("BlackoilModel::localConvergenceData() failed: ", grid_.comm()); // compute local average in terms of global number of elements const int bSize = B_avg.size(); @@ -872,7 +872,7 @@ namespace Opm { } } - OPM_END_PARALLEL_TRY_CATCH("BlackoilModelEbos::ComputeCnvError() failed: ", grid_.comm()); + OPM_END_PARALLEL_TRY_CATCH("BlackoilModel::ComputeCnvError() failed: ", grid_.comm()); return grid_.comm().sum(errorPV); } @@ -881,7 +881,7 @@ namespace Opm { void updateTUNING(const Tuning& tuning) { param_.tolerance_mb_ = tuning.XXXMBE; if ( terminal_output_ ) { - OpmLog::debug(fmt::format("Setting BlackoilModelEbos mass balance limit (XXXMBE) to {:.2e}", tuning.XXXMBE)); + OpmLog::debug(fmt::format("Setting BlackoilModel mass balance limit (XXXMBE) to {:.2e}", tuning.XXXMBE)); } } @@ -1285,4 +1285,4 @@ namespace Opm { }; } // namespace Opm -#endif // OPM_BLACKOILMODELBASE_IMPL_HEADER_INCLUDED +#endif // OPM_BLACKOILMODEL_HEADER_INCLUDED diff --git a/opm/simulators/flow/BlackoilModelNldd.hpp b/opm/simulators/flow/BlackoilModelNldd.hpp index 4aa08fcc0..b1fe4491f 100644 --- a/opm/simulators/flow/BlackoilModelNldd.hpp +++ b/opm/simulators/flow/BlackoilModelNldd.hpp @@ -71,7 +71,7 @@ namespace Opm { -template class BlackoilModelEbos; +template class BlackoilModel; /// A NLDD implementation for three-phase black oil. template @@ -85,10 +85,10 @@ public: using Scalar = GetPropType; using SolutionVector = GetPropType; - using BVector = typename BlackoilModelEbos::BVector; + using BVector = typename BlackoilModel::BVector; using Domain = SubDomain; using ISTLSolverType = ISTLSolverEbos; - using Mat = typename BlackoilModelEbos::Mat; + using Mat = typename BlackoilModel::Mat; static constexpr int numEq = Indices::numEq; @@ -96,7 +96,7 @@ public: //! \param model BlackOil model to solve for //! \param param param Model parameters //! \param compNames Names of the solution components - BlackoilModelNldd(BlackoilModelEbos& model) + BlackoilModelNldd(BlackoilModel& model) : model_(model), rank_(model_.ebosSimulator().vanguard().grid().comm().rank()) { // Create partitions. @@ -958,7 +958,7 @@ private: return p; } - BlackoilModelEbos& model_; //!< Reference to model + BlackoilModel& model_; //!< Reference to model std::vector domains_; //!< Vector of subdomains std::vector> domain_matrices_; //!< Vector of matrix operator for each subdomain std::vector domain_linsolvers_; //!< Vector of linear solvers for each domain diff --git a/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp b/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp index b17d222b3..fb5469157 100644 --- a/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp +++ b/opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include #include @@ -170,7 +170,7 @@ public: typedef BlackOilPolymerModule PolymerModule; typedef BlackOilMICPModule MICPModule; - typedef BlackoilModelEbos Model; + using Model = BlackoilModel; typedef NonlinearSolverEbos Solver; typedef typename Model::ModelParameters ModelParameters; typedef typename Solver::SolverParameters SolverParameters; diff --git a/tests/test_glift1.cpp b/tests/test_glift1.cpp index e0355c966..63d2c725c 100644 --- a/tests/test_glift1.cpp +++ b/tests/test_glift1.cpp @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/tests/test_wellmodel.cpp b/tests/test_wellmodel.cpp index 9840d1633..777c19d8d 100644 --- a/tests/test_wellmodel.cpp +++ b/tests/test_wellmodel.cpp @@ -44,7 +44,7 @@ #include #include #include -#include +#include #include #include