Commit Graph

3 Commits

Author SHA1 Message Date
Jukka Aho f89d48a112 refactor(deprecated): Remove old getproperty redirection for new Element API
- Comment out Base.getproperty(element::Element, :fields) redirection
- Old code redirected element.fields → element.dfields (Dict-based fields)
- New Element has fields::F directly (type-stable NamedTuple or struct)
- No redirection needed with new architecture
- Rationale: New Element{N,NIP,F,B} has fields as direct struct member
2025-11-09 17:09:27 +02:00
Jukka Aho 615de1a7c2 style: Format whitespace in deprecated_fembase.jl 2025-11-08 10:24:07 +02:00
Jukka Aho 650872cf2d fix: Add deprecated FEMBase methods for backward compatibility
Added deprecated_fembase.jl with legacy methods that tests and user code depend on:
- length(element): Returns number of nodes in element
- size(element): Returns (dim, nnodes)
- getproperty override: Maps element.fields → element.dfields

Bug fix:
- Changed sym == :fields to sym === :fields in getproperty
- Reason: fields.jl overrides == operator, breaking normal Symbol comparisons
- This is a known issue (Code Smell documented in Phase 4 plan)

Result:
- ✅ Element length() works correctly
- ✅ Basic element operations functional
- ⚠️  Test suite still has 44 errors (investigating other API mismatches)

Next: Investigate remaining test failures, likely more API incompatibilities
2025-11-08 09:52:49 +02:00