mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-10 22:06:40 +00:00
test: Update compute_block! call in kernel_functions test
Updated compute_block! call to pass arrays directly from caches: - geometry_cache.∇N_data - geometry_cache.detJ_w - material_cache.𝔻 Maintains test comparison between manual and automatic integration.
This commit is contained in:
@@ -72,7 +72,13 @@
|
||||
|
||||
# Automatic integration using compute_block!
|
||||
K_blocks = Matrix{Tensor{2,3,Float64,9}}(undef, N, N)
|
||||
JuliaFEM.compute_block!(K_blocks, geometry_cache, material_cache, 1, 2)
|
||||
JuliaFEM.compute_block!(
|
||||
K_blocks,
|
||||
geometry_cache.∇N_data,
|
||||
geometry_cache.detJ_w,
|
||||
material_cache.𝔻,
|
||||
1, 2
|
||||
)
|
||||
K_auto = K_blocks[1, 2]
|
||||
|
||||
# Should match (within numerical precision)
|
||||
|
||||
Reference in New Issue
Block a user