Skip to content

Commit

Permalink
Allow extra control for mesh partitioning from python (#2598)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Mar 28, 2023
1 parent 6e67e07 commit 8fc8e1c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions python/dolfinx/wrappers/mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,14 @@ void mesh(py::module& m)
[](const std::function<dolfinx::graph::AdjacencyList<std::int32_t>(
MPICommWrapper comm, int nparts,
const dolfinx::graph::AdjacencyList<std::int64_t>& local_graph,
bool ghosting)>& part) -> PythonCellPartitionFunction
bool ghosting)>& part,
dolfinx::mesh::GhostMode ghost_mode) -> PythonCellPartitionFunction
{
return create_cell_partitioner_py(
dolfinx::mesh::create_cell_partitioner(
dolfinx::mesh::GhostMode::none,
create_cell_partitioner_cpp(part)));
ghost_mode, create_cell_partitioner_cpp(part)));
},
py::arg("part"));

py::arg("part"), py::arg("ghost_mode") = dolfinx::mesh::GhostMode::none);
m.def(
"locate_entities",
[](const dolfinx::mesh::Mesh& mesh, int dim,
Expand Down

0 comments on commit 8fc8e1c

Please sign in to comment.