Skip to content
Snippets Groups Projects

Use DiscretizationDefaultLocalOperator.

Merged Ivan Buntic requested to merge feature/default-discretization-local-operator into master
Files
4
@@ -15,6 +15,7 @@
#include <dumux/common/properties.hh>
#include <dumux/common/numeqvector.hh>
#include <dumux/discretization/defaultlocaloperator.hh>
namespace Dumux
{
@@ -24,9 +25,10 @@ namespace Dumux
* using the n-phase immiscible fully implicit models.
*/
template<class TypeTag>
class MyLocalResidual : public GetPropType<TypeTag, Properties::BaseLocalResidual>
class MyLocalResidual : public DiscretizationDefaultLocalOperator<TypeTag>
{
using ParentType = GetPropType<TypeTag, Properties::BaseLocalResidual>;
using GridGeometry = GetPropType<TypeTag, Properties::GridGeometry>;
using ParentType = DiscretizationDefaultLocalOperator<TypeTag>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Problem = GetPropType<TypeTag, Properties::Problem>;
using NumEqVector = Dumux::NumEqVector<GetPropType<TypeTag, Properties::PrimaryVariables>>;
@@ -34,10 +36,10 @@ class MyLocalResidual : public GetPropType<TypeTag, Properties::BaseLocalResidua
using ElementVolumeVariables = typename GetPropType<TypeTag, Properties::GridVolumeVariables>::LocalView;
using FluxVariables = GetPropType<TypeTag, Properties::FluxVariables>;
using ElementFluxVariablesCache = typename GetPropType<TypeTag, Properties::GridFluxVariablesCache>::LocalView;
using FVElementGeometry = typename GetPropType<TypeTag, Properties::GridGeometry>::LocalView;
using FVElementGeometry = typename GridGeometry::LocalView;
using SubControlVolume = typename FVElementGeometry::SubControlVolume;
using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace;
using GridView = typename GetPropType<TypeTag, Properties::GridGeometry>::GridView;
using GridView = typename GridGeometry::GridView;
using Element = typename GridView::template Codim<0>::Entity;
using EnergyLocalResidual = GetPropType<TypeTag, Properties::EnergyLocalResidual>;
Loading