Only owned cells should be part of NLDD partitions.

This commit is contained in:
Atgeirr Flø Rasmussen
2023-08-22 16:32:24 +02:00
parent 8b12d13ec3
commit 609dfd6051

View File

@@ -119,9 +119,11 @@ public:
}
// Iterate through grid once, setting the seeds of all partitions.
// Note: owned cells only!
std::vector<int> count(num_domains, 0);
const auto beg = grid.template leafbegin<0>();
const auto end = grid.template leafend<0>();
const auto& gridView = grid.leafGridView();
const auto beg = gridView.template begin<0, Dune::Interior_Partition>();
const auto end = gridView.template end<0, Dune::Interior_Partition>();
int cell = 0;
for (auto it = beg; it != end; ++it, ++cell) {
const int p = partition_vector[cell];