refactor(quadrature): Change IntegrationPoint ξ field from NTuple to Vec

- 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
This commit is contained in:
Jukka Aho
2025-11-20 17:54:46 +02:00
parent 2bbc9805cb
commit 400e9c7c85
+3 -3
View File
@@ -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