Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jhale committed Nov 14, 2023
1 parent b473d43 commit 9c1b326
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion python/dolfinx/wrappers/fem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,8 @@ void declare_real_functions(py::module& m)
mesh0.geometry(), element0, mesh1,
std::span(cells.data(), cells.size()), padding);
},
py::arg("mesh0"), py::arg("element0"), py::arg("mesh1"), py::arg("padding"));
py::arg("mesh0"), py::arg("element0"), py::arg("mesh1"),
py::arg("padding"));
m.def(
"create_nonmatching_meshes_interpolation_data",
[](const dolfinx::mesh::Geometry<T>& geometry0,
Expand Down
6 changes: 4 additions & 2 deletions python/dolfinx/wrappers/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ void declare_bbtree(py::module& m, std::string type)
},
py::arg("mesh"), py::arg("dim"), py::arg("indices"), py::arg("points"));
m.def("determine_point_ownership",
[](const dolfinx::mesh::Mesh<T>& mesh, const py::array_t<T>& points, T padding)
[](const dolfinx::mesh::Mesh<T>& mesh, const py::array_t<T>& points,
T padding)
{
const std::size_t p_s0 = points.ndim() == 1 ? 1 : points.shape(0);
std::vector<T> _p(3 * p_s0);
Expand All @@ -272,7 +273,8 @@ void declare_bbtree(py::module& m, std::string type)
else
throw std::runtime_error("Array has wrong ndim.");

return dolfinx::geometry::determine_point_ownership<T>(mesh, _p, padding);
return dolfinx::geometry::determine_point_ownership<T>(mesh, _p,
padding);
});
}
} // namespace
Expand Down

0 comments on commit 9c1b326

Please sign in to comment.