DUNE PDELab (unstable)
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
finefunctiononcoarsegridview.hh
44 return distance(Dune::Impl::baseTopologyId(topologyId, dim), dim-1, x, scaleFactor) + dist_x_last;
70 return checkInside(Dune::Impl::baseTopologyId(topologyId, dim), dim-1, x, tolerance - max(dist_x_last, FT(0)), scaleFactor);
101template<class GridFunction, class GV, template<class> class DerivativeTraits=Dune::Functions::DefaultDerivativeTraits>
125 using Traits = Dune::Functions::Imp::GridFunctionTraits<Range(Domain), EntitySet, DerivativeTraits, 56>;
133 using Derivative = decltype(localFunction(derivative(std::declval<FineFunctionOnCoarseGridView>())));
134 using RawLocalFunction = std::decay_t<decltype(localFunction(std::declval<const RawGridFunction&>()))>;
141 FineLocalFunctionOnCoarseGridView(RawLocalFunction&& localFunction, const FineEntitySet& fineEntitySet)
196 return Derivative(derivative(f.localFunction_), f.fineEntitySet_, f.forwardToFineFunction_, f.element_);
284 return FineFunctionOnCoarseGridView<RawDerivative, GridView, DerivativeTraits>(derivative(f.rawFunction()), f.entitySet_.gridView());
A wrapper representing a fine grid function on a gridview.
Definition: finefunctiononcoarsegridview.hh:103
Range operator()(const Domain &x) const
Evaluate function in global coordinates.
Definition: finefunctiononcoarsegridview.hh:273
FineFunctionOnCoarseGridView(const GridFunction &function, const GridView &gridView)
Create FineFunctionOnCoarseGridView from GridFunction and GridView.
Definition: finefunctiononcoarsegridview.hh:256
friend auto derivative(const FineFunctionOnCoarseGridView &f)
Obtain global derivative of this function.
Definition: finefunctiononcoarsegridview.hh:279
FineFunctionOnCoarseGridView(GridFunction &&function, const GridView &gridView)
Create FineFunctionOnCoarseGridView from GridFunction and GridView.
Definition: finefunctiononcoarsegridview.hh:267
friend LocalFunction localFunction(const FineFunctionOnCoarseGridView &f)
Create a LocalFunction for evaluation in local coordinates.
Definition: finefunctiononcoarsegridview.hh:291
const EntitySet & entitySet() const
Return the EntitySet associated to this GridViewFunction.
Definition: finefunctiononcoarsegridview.hh:297
GridView::template Codim< codim >::Entity Element
Type of Elements contained in this EntitySet.
Definition: gridviewentityset.hh:36
const GridView & gridView() const
Return the associated GridView.
Definition: gridviewentityset.hh:80
Element::Geometry::LocalCoordinate LocalCoordinate
Type of local coordinates with respect to the Element.
Definition: gridviewentityset.hh:39
constexpr T & resolveRef(T &gf) noexcept
Helper function to resolve std::reference_wrapper.
Definition: referencehelper.hh:47
constexpr auto max
Function object that returns the greater of the given values.
Definition: hybridutilities.hh:485
constexpr auto min
Function object that returns the smaller of the given values.
Definition: hybridutilities.hh:507
ImplementationDefined child(Node &&node, Indices... indices)
Extracts the child of a node given by a sequence of compile-time and run-time indices.
Definition: childextraction.hh:127
std::remove_reference_t< decltype(Dune::resolveRef(std::declval< T & >()))> ResolveRef_t
Type trait to resolve std::reference_wrapper.
Definition: referencehelper.hh:100
STL namespace.
Default implementation for derivative traits.
Definition: defaultderivativetraits.hh:41
A unique label for each type of element that can occur in a grid.
