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

[spaces.h1] allow to copy() flattop space

parent db73164e
No related branches found
No related tags found
No related merge requests found
...@@ -56,19 +56,35 @@ public: ...@@ -56,19 +56,35 @@ public:
ContinuousFlatTopSpace(GridViewType grd_vw, const int fe_order, const D& overlap = 0.5) ContinuousFlatTopSpace(GridViewType grd_vw, const int fe_order, const D& overlap = 0.5)
: grid_view_(grd_vw) : grid_view_(grd_vw)
, fe_order_(fe_order) , fe_order_(fe_order)
, local_finite_elements_(std::make_unique<LocalFlatTopFiniteElementFamily<D, d, R, r>>(overlap)) , overlap_(overlap)
, local_finite_elements_(std::make_unique<LocalFlatTopFiniteElementFamily<D, d, R, r>>(overlap_))
, mapper_(nullptr)
, basis_(nullptr)
{
this->update_after_adapt();
}
ContinuousFlatTopSpace(const ThisType& other)
: grid_view_(other.grid_view_)
, fe_order_(other.fe_order_)
, overlap_(other.overlap_)
, local_finite_elements_(std::make_unique<LocalFlatTopFiniteElementFamily<D, d, R, r>>(overlap_))
, mapper_(nullptr) , mapper_(nullptr)
, basis_(nullptr) , basis_(nullptr)
{ {
this->update_after_adapt(); this->update_after_adapt();
} }
ContinuousFlatTopSpace(const ThisType&) = default;
ContinuousFlatTopSpace(ThisType&&) = default; ContinuousFlatTopSpace(ThisType&&) = default;
ThisType& operator=(const ThisType&) = delete; ThisType& operator=(const ThisType&) = delete;
ThisType& operator=(ThisType&&) = delete; ThisType& operator=(ThisType&&) = delete;
BaseType* copy() const override final
{
return new ThisType(*this);
}
const GridViewType& grid_view() const override final const GridViewType& grid_view() const override final
{ {
return grid_view_; return grid_view_;
...@@ -144,6 +160,7 @@ public: ...@@ -144,6 +160,7 @@ public:
private: private:
const GridViewType grid_view_; const GridViewType grid_view_;
const int fe_order_; const int fe_order_;
const D overlap_;
std::unique_ptr<const LocalFlatTopFiniteElementFamily<D, d, R, r>> local_finite_elements_; std::unique_ptr<const LocalFlatTopFiniteElementFamily<D, d, R, r>> local_finite_elements_;
std::unique_ptr<MapperImplementation> mapper_; std::unique_ptr<MapperImplementation> mapper_;
std::unique_ptr<GlobalBasisImplementation> basis_; std::unique_ptr<GlobalBasisImplementation> basis_;
......
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