Skip to content

Commit

Permalink
Fix for elements that might have unassigned partition via parallel De…
Browse files Browse the repository at this point in the history
…launay meshgenerator
  • Loading branch information
wdeconinck committed Jan 19, 2024
1 parent dc63328 commit b8f8a4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/atlas/meshgenerator/detail/DelaunayMeshGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ void DelaunayMeshGenerator::generate(const Grid& grid, const grid::Distribution&
element_nodes_uncertainty.insert(g_node_connectivity(jelem,2));
element_uncertainty.insert(jelem);
}
else if (elem_ownership != GHOST && elem_ownership != CERTAIN) {
ATLAS_NOTIMPLEMENTED;
}
}
// Log::info() << "element_uncertainty" << std::endl;
// for( auto& jelem: element_uncertainty ) {
Expand Down Expand Up @@ -291,6 +294,9 @@ void DelaunayMeshGenerator::generate(const Grid& grid, const grid::Distribution&
else if (e2 != UNCERTAIN) {
elem_part = e2;
}
if (elem_part == UNCERTAIN) {
elem_part = elem_node_partition(jelem,0);
}
if (elem_part == part_) {
collect_element(jelem);
}
Expand Down

0 comments on commit b8f8a4d

Please sign in to comment.