From 706cee4962c055d5fba268d7f4add4228acbcffe Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Thu, 20 Nov 2025 17:43:14 +0200 Subject: [PATCH] test: Update compute_block! call in kernel_functions test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- test/domains/continuum/test_kernel_functions.jl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/domains/continuum/test_kernel_functions.jl b/test/domains/continuum/test_kernel_functions.jl index f5e03cf..90cb0c0 100644 --- a/test/domains/continuum/test_kernel_functions.jl +++ b/test/domains/continuum/test_kernel_functions.jl @@ -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)