From 531d5cc2080e91d7eb935b42accfd4b1c3806095 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Thu, 20 Nov 2025 17:56:28 +0200 Subject: [PATCH] refactor(assemblers): Remove Vec{3} conversions in geometry cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed 'ξ = Vec{3}(ip.ξ)' to 'ξ = ip.ξ' in two locations - First occurrence in ∇N_data_tuple computation - Second occurrence in detJ_w_tuple computation - No conversions needed since ip.ξ is now already Vec{3} --- src/assemblers/geometry_cache.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assemblers/geometry_cache.jl b/src/assemblers/geometry_cache.jl index f879f53..902f544 100644 --- a/src/assemblers/geometry_cache.jl +++ b/src/assemblers/geometry_cache.jl @@ -195,7 +195,7 @@ function create_geometry_cache( # Compute gradients and weights at all integration points ∇N_data_tuple = ntuple(NIP) do q ip = ips[q] - ξ = Vec{3}(ip.ξ) + ξ = ip.ξ w = ip.weight # Compute Jacobian and physical gradients @@ -220,7 +220,7 @@ function create_geometry_cache( # Compute detJ * weight detJ_w_tuple = ntuple(NIP) do q ip = ips[q] - ξ = Vec{3}(ip.ξ) + ξ = ip.ξ w = ip.weight # Recompute Jacobian (could optimize by storing from above)