mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4128 from ElyesAhmed/alugrid_fix
some fixes for flow_alugrid
This commit is contained in:
commit
eb0a516ff0
@ -58,6 +58,11 @@
|
|||||||
#include <ebos/femcpgridcompat.hh>
|
#include <ebos/femcpgridcompat.hh>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if HAVE_DUNE_ALUGRID
|
||||||
|
#include <dune/alugrid/grid.hh>
|
||||||
|
#include <dune/alugrid/3d/gridview.hh>
|
||||||
|
#endif // HAVE_DUNE_ALUGRID
|
||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
namespace EQUIL {
|
namespace EQUIL {
|
||||||
|
|
||||||
@ -1920,7 +1925,35 @@ template InitialStateComputer<BlackOilFluidSystem<double>,
|
|||||||
const GridView&,
|
const GridView&,
|
||||||
const Dune::CartesianIndexMapper<Dune::CpGrid>&,
|
const Dune::CartesianIndexMapper<Dune::CpGrid>&,
|
||||||
const double,
|
const double,
|
||||||
|
const bool);
|
||||||
|
#if HAVE_DUNE_ALUGRID
|
||||||
|
#if HAVE_MPI
|
||||||
|
using ALUGridComm = Dune::ALUGridMPIComm;
|
||||||
|
#else
|
||||||
|
using ALUGridComm = Dune::ALUGridNoComm;
|
||||||
|
#endif //HAVE_MPI
|
||||||
|
using ALUGrid3CN = Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming, ALUGridComm>;
|
||||||
|
using ALUGridView = Dune::GridView<Dune::ALU3dLeafGridViewTraits<const ALUGrid3CN, Dune::PartitionIteratorType(4)>>;
|
||||||
|
using ALUGridMapper = Dune::MultipleCodimMultipleGeomTypeMapper<ALUGridView>;
|
||||||
|
template class InitialStateComputer<BlackOilFluidSystem<double>,
|
||||||
|
ALUGrid3CN,
|
||||||
|
ALUGridView,
|
||||||
|
ALUGridMapper,
|
||||||
|
Dune::CartesianIndexMapper<ALUGrid3CN>>;
|
||||||
|
|
||||||
|
template InitialStateComputer<BlackOilFluidSystem<double>,
|
||||||
|
ALUGrid3CN,
|
||||||
|
ALUGridView,
|
||||||
|
ALUGridMapper,
|
||||||
|
Dune::CartesianIndexMapper<ALUGrid3CN>>::
|
||||||
|
InitialStateComputer(MatLaw&,
|
||||||
|
const EclipseState&,
|
||||||
|
const ALUGrid3CN&,
|
||||||
|
const ALUGridView&,
|
||||||
|
const Dune::CartesianIndexMapper<ALUGrid3CN>&,
|
||||||
|
const double,
|
||||||
const bool);
|
const bool);
|
||||||
|
#endif //HAVE_DUNE_ALUGRID
|
||||||
|
|
||||||
|
|
||||||
} // namespace DeckDependent
|
} // namespace DeckDependent
|
||||||
|
@ -19,26 +19,19 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <opm/simulators/flow/Main.hpp>
|
#include <opm/simulators/flow/Main.hpp>
|
||||||
|
|
||||||
namespace Opm::Properties {
|
namespace Opm {
|
||||||
namespace TTag {
|
namespace Properties {
|
||||||
struct EclFlowProblemAlugrid {
|
namespace TTag {
|
||||||
using InheritsFrom = std::tuple<EclFlowProblem>;
|
struct EclFlowProblemAlugrid {
|
||||||
};
|
using InheritsFrom = std::tuple<EclFlowProblem>;
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// by default use the dummy aquifer "model"
|
|
||||||
template<class TypeTag>
|
|
||||||
struct EclAquiferModel<TypeTag, TTag::EclFlowProblemAlugrid> {
|
|
||||||
using type = Opm::EclBaseAquiferModel<TypeTag>;
|
|
||||||
};
|
};
|
||||||
// Enable aquifers by default in experimental mode
|
}
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct EclEnableAquifers<TypeTag, TTag::EclFlowProblemAlugrid> {
|
struct EclEnableAquifers<TypeTag, TTag::EclFlowProblemAlugrid> {
|
||||||
static constexpr bool value = false;
|
static constexpr bool value = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
using TypeTag = Opm::Properties::TTag::EclFlowProblemAlugrid;
|
using TypeTag = Opm::Properties::TTag::EclFlowProblemAlugrid;
|
||||||
|
Loading…
Reference in New Issue
Block a user