Skip to content
Snippets Groups Projects
Commit eee7c055 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

[localizable-flux-function] add is_affine() method to interface

parent 3dd6a38d
No related branches found
No related tags found
No related merge requests found
...@@ -501,6 +501,11 @@ public: ...@@ -501,6 +501,11 @@ public:
BaseType::template helper<>::jacobian_col(col, A_, ret); BaseType::template helper<>::jacobian_col(col, A_, ret);
} }
virtual bool is_affine() const override
{
return true;
}
private: private:
using BaseType::A_; using BaseType::A_;
using BaseType::b_; using BaseType::b_;
......
...@@ -68,6 +68,11 @@ public: ...@@ -68,6 +68,11 @@ public:
virtual std::unique_ptr<LocalfunctionType> local_function(const EntityType& /*entity*/) const = 0; virtual std::unique_ptr<LocalfunctionType> local_function(const EntityType& /*entity*/) const = 0;
virtual bool is_affine() const
{
return false;
}
/** /**
* \name ´´These methods should be implemented in order to identify the function.'' * \name ´´These methods should be implemented in order to identify the function.''
* \{ * \{
......
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