fixes no mpi compilation

This commit is contained in:
hnil 2023-08-09 09:03:59 +02:00
parent 3442a549cd
commit e55008b336

View File

@ -47,7 +47,11 @@ struct EclFlowProblemAlugrid {
template<class TypeTag>
struct Grid<TypeTag, TTag::EclFlowProblemAlugrid> {
static const int dim = 3;
using type = Dune::ALUGrid<dim, dim, Dune::cube, Dune::nonconforming,Dune::ALUGridMPIComm>;
#if HAVE_MPI
using type = Dune::ALUGrid<dim, dim, Dune::cube, Dune::nonconforming,Dune::ALUGridMPIComm>;
#else
using type = Dune::ALUGrid<dim, dim, Dune::cube, Dune::nonconforming, Dune::ALUGridNoComm>;
#endif
};
// alugrid need cp grid as equilgrid
template<class TypeTag>