Skip to content
Snippets Groups Projects
Commit c8d6fef8 authored by podlesny's avatar podlesny
Browse files

host grid getter

parent 3d8b7c40
No related branches found
No related tags found
No related merge requests found
...@@ -94,6 +94,12 @@ auto LeafBody<GridTEMPLATE, VectorType>::grid() const ...@@ -94,6 +94,12 @@ auto LeafBody<GridTEMPLATE, VectorType>::grid() const
return grid_; return grid_;
} }
template <class GridTEMPLATE, class VectorType>
auto LeafBody<GridTEMPLATE, VectorType>::hostGrid() const
-> std::shared_ptr<GridTEMPLATE> {
return hostGrid_;
}
template <class GridTEMPLATE, class VectorType> template <class GridTEMPLATE, class VectorType>
auto LeafBody<GridTEMPLATE, VectorType>::gridView() const auto LeafBody<GridTEMPLATE, VectorType>::gridView() const
......
...@@ -90,6 +90,7 @@ class LeafBody { ...@@ -90,6 +90,7 @@ class LeafBody {
void setDeformation(const VectorType& def); void setDeformation(const VectorType& def);
auto deformation() const -> DeformationFunction&; auto deformation() const -> DeformationFunction&;
auto grid() const -> std::shared_ptr<GridType>; auto grid() const -> std::shared_ptr<GridType>;
auto hostGrid() const -> std::shared_ptr<HostGridType>;
auto gridView() const -> const GridView&; auto gridView() const -> const GridView&;
auto nVertices() const -> size_t; auto nVertices() const -> size_t;
......
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