28#ifndef OPM_DUMMY_GRADIENT_CALCULATOR_HPP
29#define OPM_DUMMY_GRADIENT_CALCULATOR_HPP
31#include <dune/common/fvector.hh>
33#include <opm/models/discretization/common/fvbaseproperties.hh>
48template<
class TypeTag>
51 using GridView = GetPropType<TypeTag, Properties::GridView>;
52 using Scalar = GetPropType<TypeTag, Properties::Scalar>;
53 using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
55 enum { dimWorld = GridView::dimensionworld };
57 using DimVector = Dune::FieldVector<Scalar, dimWorld>;
63 template <
bool prepareValues = true,
bool prepareGradients = true>
64 void prepare(
const ElementContext&,
unsigned)
67 template <
class QuantityCallback,
class QuantityType = Scalar>
70 const QuantityCallback&)
const
72 throw std::logic_error(
"Generic values are not supported by the black-oil simulator");
75 template <
class QuantityCallback>
77 const ElementContext&,
79 const QuantityCallback&)
const
81 throw std::logic_error(
"Generic gradients are not supported by the black-oil simulator");
84 template <
class QuantityCallback>
87 const QuantityCallback&)
89 throw std::logic_error(
"Generic boundary values are not supported by the black-oil simulator");
92 template <
class QuantityCallback>
94 const ElementContext&,
96 const QuantityCallback&)
const
98 throw std::logic_error(
"Generic boundary gradients are not supported by the black-oil simulator");
This is a "dummy" gradient calculator which does not do anything.
Definition: DummyGradientCalculator.hpp:50
void calculateGradient(DimVector &, const ElementContext &, unsigned, const QuantityCallback &) const
Definition: DummyGradientCalculator.hpp:76
QuantityType calculateValue(const ElementContext &, unsigned, const QuantityCallback &) const
Definition: DummyGradientCalculator.hpp:68
Scalar calculateBoundaryValue(const ElementContext &, unsigned, const QuantityCallback &)
Definition: DummyGradientCalculator.hpp:85
static void registerParameters()
Definition: DummyGradientCalculator.hpp:60
void calculateBoundaryGradient(DimVector &, const ElementContext &, unsigned, const QuantityCallback &) const
Definition: DummyGradientCalculator.hpp:93
void prepare(const ElementContext &, unsigned)
Definition: DummyGradientCalculator.hpp:64
Definition: BlackoilPhases.hpp:27