28 #ifndef OPM_DUMMY_GRADIENT_CALCULATOR_HPP 29 #define OPM_DUMMY_GRADIENT_CALCULATOR_HPP 31 #include <dune/common/fvector.hh> 48 template<
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>
68 QuantityType calculateValue(
const ElementContext&,
70 const QuantityCallback&)
const 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&,
79 const QuantityCallback&)
const 81 throw std::logic_error(
"Generic gradients are not supported by the black-oil simulator");
84 template <
class QuantityCallback>
85 Scalar calculateBoundaryValue(
const ElementContext&,
87 const QuantityCallback&)
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&,
96 const QuantityCallback&)
const 98 throw std::logic_error(
"Generic boundary gradients are not supported by the black-oil simulator");
103 #endif // OPM_DUMMY_GRADIENT_CALCULATOR_HPP 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:233
This is a "dummy" gradient calculator which does not do anything.
Definition: DummyGradientCalculator.hpp:49
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Declare the properties used by the infrastructure code of the finite volume discretizations.