rename TTag::EclFlowProblemAlugrid to TTag::FlowProblemAlugrid

This commit is contained in:
Arne Morten Kvarving
2024-02-06 14:47:31 +01:00
parent 4aa6dc355f
commit 3c5fad58f1

View File

@@ -40,13 +40,13 @@
namespace Opm { namespace Opm {
namespace Properties { namespace Properties {
namespace TTag { namespace TTag {
struct EclFlowProblemAlugrid { struct FlowProblemAlugrid {
using InheritsFrom = std::tuple<FlowProblem>; using InheritsFrom = std::tuple<FlowProblem>;
}; };
} }
template<class TypeTag> template<class TypeTag>
struct Grid<TypeTag, TTag::EclFlowProblemAlugrid> { struct Grid<TypeTag, TTag::FlowProblemAlugrid> {
static const int dim = 3; static const int dim = 3;
#if HAVE_MPI #if HAVE_MPI
using type = Dune::ALUGrid<dim, dim, Dune::cube, Dune::nonconforming,Dune::ALUGridMPIComm>; using type = Dune::ALUGrid<dim, dim, Dune::cube, Dune::nonconforming,Dune::ALUGridMPIComm>;
@@ -54,20 +54,22 @@ struct Grid<TypeTag, TTag::EclFlowProblemAlugrid> {
using type = Dune::ALUGrid<dim, dim, Dune::cube, Dune::nonconforming, Dune::ALUGridNoComm>; using type = Dune::ALUGrid<dim, dim, Dune::cube, Dune::nonconforming, Dune::ALUGridNoComm>;
#endif #endif
}; };
// alugrid need cp grid as equilgrid // alugrid need cp grid as equilgrid
template<class TypeTag> template<class TypeTag>
struct EquilGrid<TypeTag, TTag::EclFlowProblemAlugrid> { struct EquilGrid<TypeTag, TTag::FlowProblemAlugrid> {
using type = Dune::CpGrid; using type = Dune::CpGrid;
}; };
template<class TypeTag> template<class TypeTag>
struct Vanguard<TypeTag, TTag::EclFlowProblemAlugrid> { struct Vanguard<TypeTag, TTag::FlowProblemAlugrid> {
using type = Opm::EclAluGridVanguard<TypeTag>; using type = Opm::EclAluGridVanguard<TypeTag>;
}; };
} }
} }
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
using TypeTag = Opm::Properties::TTag::EclFlowProblemAlugrid; using TypeTag = Opm::Properties::TTag::FlowProblemAlugrid;
auto mainObject = std::make_unique<Opm::Main>(argc, argv); auto mainObject = std::make_unique<Opm::Main>(argc, argv);
auto ret = mainObject->runStatic<TypeTag>(); auto ret = mainObject->runStatic<TypeTag>();
// Destruct mainObject as the destructor calls MPI_Finalize! // Destruct mainObject as the destructor calls MPI_Finalize!