check for invalid mesh type once in constitutive_init and not every time constitutive_nonlocal_dotState is called
This commit is contained in:
parent
8c849d62ee
commit
a5c1624648
|
@ -327,6 +327,12 @@ endif
|
||||||
constitutive_sizePostResults(g,i,e) = constitutive_dislotwin_sizePostResults(myInstance)
|
constitutive_sizePostResults(g,i,e) = constitutive_dislotwin_sizePostResults(myInstance)
|
||||||
|
|
||||||
case (constitutive_nonlocal_label)
|
case (constitutive_nonlocal_label)
|
||||||
|
select case(mesh_element(2,e))
|
||||||
|
case (1_pInt,6_pInt,7_pInt,8_pInt,9_pInt)
|
||||||
|
! all fine
|
||||||
|
case default
|
||||||
|
call IO_error(253_pInt,e,i,g)
|
||||||
|
end select
|
||||||
allocate(constitutive_state0(g,i,e)%p(constitutive_nonlocal_sizeState(myInstance)))
|
allocate(constitutive_state0(g,i,e)%p(constitutive_nonlocal_sizeState(myInstance)))
|
||||||
allocate(constitutive_partionedState0(g,i,e)%p(constitutive_nonlocal_sizeState(myInstance)))
|
allocate(constitutive_partionedState0(g,i,e)%p(constitutive_nonlocal_sizeState(myInstance)))
|
||||||
allocate(constitutive_subState0(g,i,e)%p(constitutive_nonlocal_sizeState(myInstance)))
|
allocate(constitutive_subState0(g,i,e)%p(constitutive_nonlocal_sizeState(myInstance)))
|
||||||
|
|
|
@ -1694,12 +1694,6 @@ logical considerEnteringFlux, &
|
||||||
endif
|
endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
select case(mesh_element(2,el))
|
|
||||||
case (1_pInt,6_pInt,7_pInt,8_pInt,9_pInt)
|
|
||||||
! all fine
|
|
||||||
case default
|
|
||||||
call IO_error(253_pInt,el,ip,g)
|
|
||||||
end select
|
|
||||||
|
|
||||||
myInstance = phase_plasticityInstance(material_phase(g,ip,el))
|
myInstance = phase_plasticityInstance(material_phase(g,ip,el))
|
||||||
myStructure = constitutive_nonlocal_structure(myInstance)
|
myStructure = constitutive_nonlocal_structure(myInstance)
|
||||||
|
|
Loading…
Reference in New Issue