mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-17 09:12:09 +00:00
c3da11a518
New file: test/domains/continuum/test_dofs_per_node.jl
Tests for:
- dofs_per_node(field) for various field types
- Displacement{3} → 3 DOFs per node
- Temperature → 1 DOF per node
- DisplacementRotation → 6 DOFs per node (future)
Validates correct DOF count for field types used in
DOF mapping and cache dimensioning.
13 lines
290 B
Julia
13 lines
290 B
Julia
# Test dofs_per_node function
|
|
|
|
@testset "dofs_per_node" begin
|
|
kernel = create_test_kernel()
|
|
|
|
# Test that it returns 3 for 3D displacement field
|
|
@test dofs_per_node(kernel) == 3
|
|
|
|
# Test zero allocations
|
|
allocs = @allocated dofs_per_node(kernel)
|
|
@test allocs == 0
|
|
end
|