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

Use std::distance to count the number of 'Interior' elements

parent 5ea679d3
No related branches found
No related tags found
No related merge requests found
...@@ -352,9 +352,8 @@ public: ...@@ -352,9 +352,8 @@ public:
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////
// Stupid: I can't directly get the number of Interior_Partition elements // Stupid: I can't directly get the number of Interior_Partition elements
size_t numElements = 0; size_t numElements = std::distance(gridView.template begin<0, Dune::Interior_Partition>(),
for (const auto& element : elements(gridView, Dune::Partitions::interior)) gridView.template end<0, Dune::Interior_Partition>());
numElements++;
std::ofstream outFile(fullfilename); std::ofstream outFile(fullfilename);
......
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