mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-08-29 07:32:54 +00:00
84708cce2e
- Tests 5 strategies for accessing basis functions and derivatives
- Strategy 1: Tuple return + getindex (natural Julia)
- Strategy 2: @generated function (compile-time specialization)
- Strategy 3: Val dispatch (type-stable index)
- Strategy 4: BasisFunctions struct with getindex (most Julian)
- Strategy 5: Separate functions per basis (extreme specialization)
- Use case: Tet10 quadratic tetrahedron (10 nodes, workhorse for 3D FEM)
- Benchmarks both "access all" (element assembly) and "access single" (nodal assembly)
- Tests derivatives as Vec{3} tuples for gradient computation
- Focus: zero allocation, type stability, inlineability
- 412 lines evaluating access pattern performance for GPU-friendly design