Extract element state allocation module

This commit is contained in:
shenw
2026-06-22 20:53:30 +08:00
parent 30c2525bc7
commit da3bdc691b
6 changed files with 192 additions and 56 deletions
+2 -2
View File
@@ -6,6 +6,7 @@ module fem_api
use fem_database
use fem_inp_reader
use fem_element_topology
use fem_element_state
use fem_element_mass
use fem_element_internal
use fem_coupling
@@ -467,8 +468,7 @@ contains
call error_set(FEM_ERR_INTERNAL, 'fem_get_element_average_state called before fem_initialize', ierr)
return
end if
if (.not. allocated(elem_gp_start) .or. .not. allocated(stress) .or. &
.not. allocated(strain)) then
if (.not. element_state_is_available()) then
call error_set(FEM_ERR_INTERNAL, 'element state is not available', ierr)
return
end if