diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index 34d6a1391..d8968aec5 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -409,7 +409,6 @@ list (APPEND PUBLIC_HEADER_FILES ebos/collecttoiorank.hh ebos/collecttoiorank_impl.hh ebos/ebos.hh - ebos/eclalugridvanguard.hh ebos/eclbaseaquifermodel.hh ebos/eclbasevanguard.hh ebos/eclcpgridvanguard.hh @@ -442,6 +441,7 @@ list (APPEND PUBLIC_HEADER_FILES ebos/vtkecltracermodule.hh opm/simulators/flow/ActionHandler.hpp opm/simulators/flow/AluGridCartesianIndexMapper.hpp + opm/simulators/flow/AluGridVanguard.hpp opm/simulators/flow/Banners.hpp opm/simulators/flow/BlackoilModel.hpp opm/simulators/flow/BlackoilModelNldd.hpp diff --git a/flow/flow_blackoil_alugrid.cpp b/flow/flow_blackoil_alugrid.cpp index d15cb5614..e0a98fa5d 100644 --- a/flow/flow_blackoil_alugrid.cpp +++ b/flow/flow_blackoil_alugrid.cpp @@ -19,7 +19,6 @@ #include #include -#include #include // for equilgrid in writer @@ -35,6 +34,7 @@ #include #include #include +#include #include namespace Opm { @@ -62,7 +62,7 @@ struct EquilGrid { }; template struct Vanguard { - using type = Opm::EclAluGridVanguard; + using type = Opm::AluGridVanguard; }; } } diff --git a/ebos/eclalugridvanguard.hh b/opm/simulators/flow/AluGridVanguard.hpp similarity index 95% rename from ebos/eclalugridvanguard.hh rename to opm/simulators/flow/AluGridVanguard.hpp index edcc35c14..8a1ff04e6 100644 --- a/ebos/eclalugridvanguard.hh +++ b/opm/simulators/flow/AluGridVanguard.hpp @@ -22,10 +22,10 @@ */ /*! * \file - * \copydoc Opm::EclAluGridVanguard + * \copydoc Opm::AluGridVanguard */ -#ifndef EWOMS_ECL_ALU_GRID_VANGUARD_HH -#define EWOMS_ECL_ALU_GRID_VANGUARD_HH +#ifndef OPM_ALUGRID_VANGUARD_HPP +#define OPM_ALUGRID_VANGUARD_HPP #include #include @@ -51,25 +51,25 @@ namespace Opm { template -class EclAluGridVanguard; +class FlowAluGridVanguard; } // namespace Opm namespace Opm::Properties { namespace TTag { -struct EclAluGridVanguard { +struct AluGridVanguard { using InheritsFrom = std::tuple; }; } // declare the properties template -struct Vanguard { - using type = Opm::EclAluGridVanguard; +struct Vanguard { + using type = Opm::FlowAluGridVanguard; }; template -struct Grid { +struct Grid { #if HAVE_MPI using type = Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming, Dune::ALUGridMPIComm>; #else @@ -77,7 +77,7 @@ struct Grid { #endif //HAVE_MPI }; template -struct EquilGrid { +struct EquilGrid { using type = Dune::CpGrid; }; @@ -93,7 +93,7 @@ namespace Opm { * This class uses Dune::ALUGrid as the simulation grid. */ template -class EclAluGridVanguard : public EclBaseVanguard +class AluGridVanguard : public EclBaseVanguard { friend class EclBaseVanguard; using ParentType = EclBaseVanguard; @@ -114,15 +114,13 @@ public: static constexpr int dimension = Grid::dimension; static constexpr int dimensionworld = Grid::dimensionworld; - EclAluGridVanguard(Simulator& simulator) + AluGridVanguard(Simulator& simulator) : EclBaseVanguard(simulator) { this->mpiRank = EclGenericVanguard::comm().rank(); this->callImplementationInit(); } - ~EclAluGridVanguard() = default; - /*! * \brief Return a reference to the simulation grid. */ @@ -365,4 +363,4 @@ protected: } // namespace Opm -#endif +#endif // OPM_ALUGRID_VANGUARD_HPP