From 400e9c7c85551e4bd8b34a405d013bb96453243c Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Thu, 20 Nov 2025 17:54:46 +0200 Subject: [PATCH] =?UTF-8?q?refactor(quadrature):=20Change=20IntegrationPoi?= =?UTF-8?q?nt=20=CE=BE=20field=20from=20NTuple=20to=20Vec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Changed ξ field type from NTuple{D,Float64} to Vec{D,Float64} - Updated docstring to reflect Vec type instead of tuple - Updated example to show Vec construction - Enables direct use in tensor operations without conversion --- src/quadrature/integration.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/quadrature/integration.jl b/src/quadrature/integration.jl index cbe65f1..fe95143 100644 --- a/src/quadrature/integration.jl +++ b/src/quadrature/integration.jl @@ -34,16 +34,16 @@ abstract type AbstractIntegration end Represents a single integration point in D-dimensional parametric space. # Fields -- `ξ::NTuple{D, Float64}`: Location in parametric coordinates +- `ξ::Vec{D, Float64}`: Location in parametric coordinates - `weight::Float64`: Integration weight # Examples ```julia -ip = IntegrationPoint((0.0, 0.0), 1.0) # 2D point at origin with weight 1 +ip = IntegrationPoint(Vec(0.0, 0.0), 1.0) # 2D point at origin with weight 1 ``` """ struct IntegrationPoint{D} - ξ::NTuple{D,Float64} + ξ::Vec{D,Float64} weight::Float64 end