28#ifndef OPM_DUMMY_GRADIENT_CALCULATOR_HPP
29#define OPM_DUMMY_GRADIENT_CALCULATOR_HPP
31#include <dune/common/fvector.hh>
48template<
class TypeTag>
55 enum { dimWorld = GridView::dimensionworld };
57 using DimVector = Dune::FieldVector<Scalar, dimWorld>;
60 static void registerParameters()
63 template <
bool prepareValues = true,
bool prepareGradients = true>
64 void prepare(
const ElementContext&,
unsigned)
67 template <
class QuantityCallback,
class QuantityType = Scalar>
72 throw std::logic_error(
"Generic values are not supported by the black-oil simulator");
75 template <
class QuantityCallback>
76 void calculateGradient(DimVector&,
77 const ElementContext&,
81 throw std::logic_error(
"Generic gradients are not supported by the black-oil simulator");
84 template <
class QuantityCallback>
85 Scalar calculateBoundaryValue(
const ElementContext&,
89 throw std::logic_error(
"Generic boundary values are not supported by the black-oil simulator");
92 template <
class QuantityCallback>
93 void calculateBoundaryGradient(DimVector&,
94 const ElementContext&,
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
Declare the properties used by the infrastructure code of the finite volume discretizations.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition propertysystem.hh:235