In C++ we can choose the partitioner and ghost mode:
#ifdef HAS_PARMETIS
auto graph_part = dolfinx::graph::parmetis::partitioner();
#elif HAS_PTSCOTCH
auto graph_part = dolfinx::graph::scotch::partitioner(
dolfinx::graph::scotch::strategy::scalability);
#elif HAS_KAHIP
auto graph_part = dolfinx::graph::kahip::partitioner();
#else
#error "No mesh partitioner has been selected"
#endif
auto cell_part = dolfinx::mesh::create_cell_partitioner(
dolfinx::mesh::GhostMode::none, graph_part);
This is not possible in Python, as we only have two interfaces:
where the first one only vies you the option to chose ghost mode.
The second one lets you send in a graph partitioner, but not the ghost mode (it assumes ghost mode none).
Describe new/missing feature
In C++ we can choose the partitioner and ghost mode:
This is not possible in Python, as we only have two interfaces:
where the first one only vies you the option to chose ghost mode. The second one lets you send in a graph partitioner, but not the ghost mode (it assumes ghost mode none).
Adding the optional input argument ghost-mode to the latter function, i.e changing: https://github.com/FEniCS/dolfinx/blob/362f241e63052c2c320026498ae404c2c2702d0b/python/dolfinx/wrappers/mesh.cpp#L376-L388 to
we would be able to chose partitioner and ghost mode at the same time from C++
Suggestion user interface
No response