Commit Graph

1 Commits

Author SHA1 Message Date
Jukka Aho 3b4a028fec test(materials): add material cache test
New 286-line test file for GlobalMaterialCache system:
- Tests state type inference from material traits
- Tests zero state creation for empty, tensor, scalar, and mixed states
- Tests MaterialCache construction for stateless and stateful materials
- Tests state access functions (get_state, get_old_state, set_state!)
- Tests update_cache! for time stepping (copying current to old)
- Tests reset_cache! for zeroing all states
- Tests state variable helpers (get_state_variable, set_state_variable)
- Validates type stability of cache operations
- Tests integration with material traits

Essential for stateful material models requiring history-dependent behavior.
2025-12-15 08:34:47 +02:00