Skip to content
Snippets Groups Projects
Commit 861b58e4 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Port to dune 2.6 GeometryType syntax

parent 73fc9b39
Branches
No related tags found
No related merge requests found
...@@ -35,12 +35,9 @@ public: ...@@ -35,12 +35,9 @@ public:
factory.insertVertex(pos); factory.insertVertex(pos);
} }
Dune::GeometryType triangle;
triangle.makeTriangle();
for (size_t i=0; i<vtkFile.cellConnectivity_.size(); i+=3) for (size_t i=0; i<vtkFile.cellConnectivity_.size(); i+=3)
{ {
factory.insertElement(triangle, {vtkFile.cellConnectivity_[i], factory.insertElement(Dune::GeometryTypes::triangle, {vtkFile.cellConnectivity_[i],
vtkFile.cellConnectivity_[i+1], vtkFile.cellConnectivity_[i+1],
vtkFile.cellConnectivity_[i+2]}); vtkFile.cellConnectivity_[i+2]});
...@@ -51,4 +48,4 @@ public: ...@@ -51,4 +48,4 @@ public:
}; };
#endif #endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment