mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-10 13:17:42 +00:00
b78aa10602
- Implement COOCache for coordinate format assembly - Implement CSCCache for compressed sparse column assembly - Implement NodalCache for node-based assembly (future GPU) - Add reset!() methods for cache reuse in nonlinear iterations - Add extract_system() methods to get K, f from caches - Implement build_sparsity_pattern() for CSC structure pre-building - Extract mesh type parameters at runtime for capacity estimation - 407 lines of cache implementation Zero-allocation guarantee: - All arrays pre-allocated during cache creation - Assembly calls reuse existing arrays - Critical for nonlinear solvers and time stepping Memory efficiency: - COO: Triplet arrays sized for element connectivity - CSC: Pre-built sparsity pattern, reused structure - Nodal: Includes node-to-elements inverse connectivity