diff --git a/src/mesh.jl b/src/mesh.jl index bd3eb64d7ef4ebec30a3713e1446d8faf656f2e2..fc82db5c8a3d988845e83078548aaa0bb6dd4972 100644 --- a/src/mesh.jl +++ b/src/mesh.jl @@ -412,7 +412,7 @@ function inradius(mesh, cell) return sqrt((s - a) * (s - b) * (s - c) / s) end -function norm_gradient(mesh, cell) +function norm_gradient(mesh) min_inradius = mapreduce(cell -> inradius(mesh, cell), min, cells(mesh)) return 2 * sqrt(6) / (2 * min_inradius) end