From e1d46340db5b4f84b539eb42f5953528a9da6e42 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Sat, 9 May 2026 18:45:02 +0300 Subject: [PATCH] test(continuum): drop unused create_material_state helper Stateful initialization now flows through `GlobalMaterialCache` construction in the individual tests, so the placeholder helper only duplicated errors. - Remove `create_material_state` and its docstring from shared continuum helpers. --- test/domains/continuum/test_helpers.jl | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/domains/continuum/test_helpers.jl b/test/domains/continuum/test_helpers.jl index 387b919..ac3548d 100644 --- a/test/domains/continuum/test_helpers.jl +++ b/test/domains/continuum/test_helpers.jl @@ -51,18 +51,3 @@ function create_test_kernel() return kernel end -""" - create_material_state(kernel::AbstractKernel, mesh::AbstractMesh) - -Create initial material state for all elements (for stateless materials, returns nothing). -""" -function create_material_state(kernel::AbstractKernel, mesh::AbstractMesh) - # For stateless materials (LinearElastic, NeoHookean), state is nothing - if !needs_state(kernel.material) - return nothing - end - - # For stateful materials, initialize state per element - # This would need to be implemented for plasticity tests - error("Stateful material state initialization not yet implemented") -end