From dedc5e093dc3cf8aacd7d14951ae6be2f179e7d3 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Fri, 12 Dec 2025 23:46:32 +0200 Subject: [PATCH] test(continuum): update kernel tests to use get_tangent getter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update test_kernel_functions.jl to use get_tangent getter function instead of direct field access to material_cache.𝔻, matching the new AssemblyMaterialWorkspace API. --- test/domains/continuum/test_kernel_functions.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/domains/continuum/test_kernel_functions.jl b/test/domains/continuum/test_kernel_functions.jl index 90cb0c0..93f4b68 100644 --- a/test/domains/continuum/test_kernel_functions.jl +++ b/test/domains/continuum/test_kernel_functions.jl @@ -61,7 +61,7 @@ # Manual integration using compute_block_at_point K_manual = zero(Tensor{2,3,Float64}) for q in 1:NIP - 𝔻 = material_cache.𝔻[q] + 𝔻 = JuliaFEM.get_tangent(material_cache, q) grad_k_test = geometry_cache.∇N_data[q, 1] grad_l_test = geometry_cache.∇N_data[q, 2] detJ_w = geometry_cache.detJ_w[q] @@ -76,7 +76,7 @@ K_blocks, geometry_cache.∇N_data, geometry_cache.detJ_w, - material_cache.𝔻, + [JuliaFEM.get_tangent(material_cache, q) for q in 1:length(material_cache.states)], 1, 2 ) K_auto = K_blocks[1, 2]