From fc7f853fdb3c47f4d48b9b9d04e458d96b291d9d Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Thu, 26 Jan 2023 09:52:45 -0600 Subject: [PATCH] convenience functionality for MeshData --- src/MeshData.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MeshData.jl b/src/MeshData.jl index 78f2a017..1381ff8d 100644 --- a/src/MeshData.jl +++ b/src/MeshData.jl @@ -217,6 +217,9 @@ and outputs a new MeshData struct. Only fields modified are the coordinate-depen `xyz`, `xyzf`, `xyzq`, `rstxyzJ`, `J`, `nxyzJ`, `Jf`. """ +# splat `uniform_mesh` arguments, e.g., enables `MeshData(uniform_mesh(Line(), 1), rd)` +MeshData(mesh::Tuple{<:Any, Matrix{Int64}}, other_args...) = MeshData(mesh..., other_args...) + # splats VXYZ MeshData(VXYZ::T, EToV, other_args...) where {NDIMS, T <: NTuple{NDIMS}} = MeshData(VXYZ..., EToV, other_args...)