Skip to content
Snippets Groups Projects
Commit a2d22e0b authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[spaces.basis] import convenience localize from base

parent 3794cb9e
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,8 @@ public: ...@@ -79,6 +79,8 @@ public:
return max_size_; return max_size_;
} }
using BaseType::localize;
std::unique_ptr<LocalizedBasisType> localize() const override final std::unique_ptr<LocalizedBasisType> localize() const override final
{ {
return std::make_unique<LocalizedDefaultGlobalBasis>(*this); return std::make_unique<LocalizedDefaultGlobalBasis>(*this);
......
...@@ -76,6 +76,8 @@ public: ...@@ -76,6 +76,8 @@ public:
return 1; return 1;
} }
using BaseType::localize;
std::unique_ptr<LocalizedBasisType> localize() const override final std::unique_ptr<LocalizedBasisType> localize() const override final
{ {
return std::make_unique<LocalizedFiniteVolumeGlobalBasis>(); return std::make_unique<LocalizedFiniteVolumeGlobalBasis>();
......
...@@ -90,16 +90,13 @@ public: ...@@ -90,16 +90,13 @@ public:
return max_size_; return max_size_;
} }
using BaseType::localize;
std::unique_ptr<LocalizedBasisType> localize() const override final std::unique_ptr<LocalizedBasisType> localize() const override final
{ {
return std::make_unique<LocalizedRaviartThomasGlobalBasis>(*this); return std::make_unique<LocalizedRaviartThomasGlobalBasis>(*this);
} }
std::unique_ptr<LocalizedBasisType> localize(const ElementType& element) const override final
{
return std::make_unique<LocalizedRaviartThomasGlobalBasis>(*this, element);
}
private: private:
class LocalizedRaviartThomasGlobalBasis : public XT::Functions::ElementFunctionSetInterface<E, r, rC, R> class LocalizedRaviartThomasGlobalBasis : public XT::Functions::ElementFunctionSetInterface<E, r, rC, R>
{ {
......
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