Skip to content
Snippets Groups Projects
Commit 90c59a15 authored by Stephan Hilb's avatar Stephan Hilb
Browse files

add mesh_size function for maximum cell diameter

parent 5eae7012
No related branches found
No related tags found
No related merge requests found
......@@ -378,6 +378,8 @@ function diam(mesh, cell)
norm(A[:, 3] - A[:, 1]))
end
mesh_size(mesh) = mapreduce(cell -> diam(mesh, cell), max, cells(mesh))
function elmap(mesh, cell)
# TODO: can be improved
A = SArray{Tuple{ndims_space(mesh), nvertices_cell(mesh)}}(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment