ensure memory release
This commit is contained in:
parent
ca97c3db18
commit
86a720be8c
|
@ -87,8 +87,11 @@ subroutine constitutive_init
|
||||||
if (any(phase_plasticity == PLASTICITY_KINEHARDENING_ID)) call plastic_kinehardening_init
|
if (any(phase_plasticity == PLASTICITY_KINEHARDENING_ID)) call plastic_kinehardening_init
|
||||||
if (any(phase_plasticity == PLASTICITY_DISLOTWIN_ID)) call plastic_dislotwin_init
|
if (any(phase_plasticity == PLASTICITY_DISLOTWIN_ID)) call plastic_dislotwin_init
|
||||||
if (any(phase_plasticity == PLASTICITY_DISLOUCLA_ID)) call plastic_disloucla_init
|
if (any(phase_plasticity == PLASTICITY_DISLOUCLA_ID)) call plastic_disloucla_init
|
||||||
if (any(phase_plasticity == PLASTICITY_NONLOCAL_ID)) call plastic_nonlocal_init
|
if (any(phase_plasticity == PLASTICITY_NONLOCAL_ID)) then
|
||||||
|
call plastic_nonlocal_init
|
||||||
|
else
|
||||||
|
call geometry_plastic_nonlocal_disable
|
||||||
|
endif
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
! initialize source mechanisms
|
! initialize source mechanisms
|
||||||
if (any(phase_source == SOURCE_thermal_dissipation_ID)) call source_thermal_dissipation_init
|
if (any(phase_source == SOURCE_thermal_dissipation_ID)) call source_thermal_dissipation_init
|
||||||
|
|
|
@ -284,11 +284,8 @@ subroutine plastic_nonlocal_init
|
||||||
write(6,'(a)') ' http://publications.rwth-aachen.de/record/229993'
|
write(6,'(a)') ' http://publications.rwth-aachen.de/record/229993'
|
||||||
|
|
||||||
maxNinstances = count(phase_plasticity == PLASTICITY_NONLOCAL_ID)
|
maxNinstances = count(phase_plasticity == PLASTICITY_NONLOCAL_ID)
|
||||||
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0) then
|
if (iand(debug_level(debug_constitutive),debug_levelBasic) /= 0) &
|
||||||
write(6,'(a16,1x,i5,/)') '# instances:',maxNinstances
|
write(6,'(a16,1x,i5,/)') '# instances:',maxNinstances
|
||||||
else
|
|
||||||
call geometry_plastic_nonlocal_disable
|
|
||||||
endif
|
|
||||||
|
|
||||||
allocate(param(maxNinstances))
|
allocate(param(maxNinstances))
|
||||||
allocate(state(maxNinstances))
|
allocate(state(maxNinstances))
|
||||||
|
|
Loading…
Reference in New Issue