/*
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see .
*/
#include "config.h"
#include
#include
#include
// modifications from standard
#include
#include
#include
#include
#include
#include
#include
namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowProblemTPFA {
using InheritsFrom = std::tuple;
};
}
}
}
namespace Opm {
namespace Properties {
template
struct Problem {
using type = EclProblemTPFA;
};
}
}
namespace Opm {
namespace Properties {
// template
// struct Linearizer { using type = LinearizerTPFA; };
// Override default: use the TPFA linearizer.
template
struct UseTpfaLinearizer { static constexpr bool value = true; };
template
struct LocalLinearizerSplice {
using type = TTag::AutoDiffLocalLinearizerTPFA;
};
}
}
namespace Opm {
namespace Properties {
template
struct LocalResidual { using type = BlackOilLocalResidualTPFA; };
template
struct DiscLocalResidual { using type = FvBaseLocalResidualTPFA; };
template
struct ElementContext { using type = SmallElementContext; };
//struct ElementContext { using type = FvBaseElementContext; };
}
}
namespace Opm{
template
struct EclTransFluxModuleTPFA
{
typedef EclTransIntensiveQuantities FluxIntensiveQuantities;
typedef EclTransExtensiveQuantitiesTPFA FluxExtensiveQuantities;
typedef EclTransBaseProblem FluxBaseProblem;
/*!
* \brief Register all run-time parameters for the flux module.
*/
static void registerParameters()
{ }
};
}
namespace Opm {
namespace Properties {
template
struct FluxModule {
using type = EclTransFluxModuleTPFA;
};
template
struct IntensiveQuantities {
using type = BlackOilIntensiveQuantitiesSimple;
};
}
}
int main(int argc, char** argv)
{
using TypeTag = Opm::Properties::TTag::EclFlowProblemTPFA;
auto mainObject = Opm::Main(argc, argv);
return mainObject.runStatic();
}