Extract element state allocation module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user