Skip to content
Snippets Groups Projects
Commit 5a648f65 authored by Tim Keil's avatar Tim Keil
Browse files

[base/transformed] update transformed function

parent 6f8dc056
No related branches found
No related tags found
No related merge requests found
...@@ -75,31 +75,28 @@ class TransformedGridFunction : public XT::Functions::GridFunctionInterface<type ...@@ -75,31 +75,28 @@ class TransformedGridFunction : public XT::Functions::GridFunctionInterface<type
protected: protected:
void post_bind(const ElementType& element) override final void post_bind(const ElementType& element) override final
{ {
// local_function_->post_bind(element); local_function_->bind(element);
DUNE_THROW(NotImplemented, 'Implement it');
} }
public: public:
int order(const XT::Common::Parameter& mu = {}) const override final int order(const XT::Common::Parameter& param = {}) const override final
{ {
return local_function_->order(mu); return local_function_->order(param);
} }
RangeType evaluate(const DomainType& xx, const XT::Common::Parameter& mu = {}) const override final RangeType evaluate(const DomainType& xx, const XT::Common::Parameter& param = {}) const override final
{ {
RangeType tmp; return transformation_(local_function_->evaluate(xx, param));
local_function_->evaluate(xx, tmp, mu);
return transformation_(tmp);
} }
DerivativeRangeType jacobian(const DomainType& /*xx*/, DerivativeRangeType jacobian(const DomainType& /*xx*/,
const XT::Common::Parameter& /*mu*/ = {}) const override final const XT::Common::Parameter& /*param*/ = {}) const override final
{ {
DUNE_THROW(NotImplemented, "Yet!"); DUNE_THROW(NotImplemented, "Yet!");
} }
private: private:
const std::unique_ptr<UntransformedLocalFunctionType> local_function_; std::unique_ptr<UntransformedLocalFunctionType> local_function_;
const Transformation& transformation_; const Transformation& transformation_;
}; // class TransformedLocalFunction }; // class TransformedLocalFunction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment