From 414de67114ba15615b571a50d29676cb0fee4e99 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Thu, 20 Nov 2025 17:56:08 +0200 Subject: [PATCH] refactor(backend): Remove Vec{3} conversion in CPU backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed 'ξ = Vec{3}(ip.ξ)' to 'ξ = ip.ξ' in compute_element_stiffness - No conversion needed since ip.ξ is now already Vec{3} --- src/backend/cpu.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/cpu.jl b/src/backend/cpu.jl index 14ca208..342217d 100644 --- a/src/backend/cpu.jl +++ b/src/backend/cpu.jl @@ -142,7 +142,7 @@ function compute_element_stiffness(element::Element{N,NIP,F,B}, time::Float64) w # Integrate over element for ip in ips - ξ = Vec{3}(ip.ξ) + ξ = ip.ξ w = ip.weight # NEW API: Basis function derivatives (shape function gradients in reference coords)