mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-27 20:26:58 +00:00
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
|