avoid uninitialized array
This commit is contained in:
parent
bf8ac403f1
commit
a04be84719
|
@ -321,7 +321,7 @@ subroutine plastic_dislotwin_init
|
|||
prm%L_tw = config%getFloat('l0_twin')
|
||||
prm%i_tw = config%getFloat('cmfptwin')
|
||||
|
||||
prm%gamma_char = lattice_characteristicShear_Twin(prm%N_tw,config%getString('lattice_structure'),&
|
||||
prm%gamma_char= lattice_characteristicShear_Twin(prm%N_tw,config%getString('lattice_structure'),&
|
||||
config%getFloat('c/a',defaultVal=0.0_pReal))
|
||||
|
||||
prm%C66_tw = lattice_C66_twin(prm%N_tw,prm%C66,config%getString('lattice_structure'),&
|
||||
|
@ -338,10 +338,11 @@ subroutine plastic_dislotwin_init
|
|||
prm%r = math_expand(prm%r,prm%N_tw)
|
||||
|
||||
else
|
||||
allocate(prm%gamma_char(0))
|
||||
allocate(prm%t_tw (0))
|
||||
allocate(prm%b_tw (0))
|
||||
allocate(prm%r (0))
|
||||
allocate(prm%h_tw_tw(0,0))
|
||||
allocate(prm%h_tw_tw (0,0))
|
||||
endif
|
||||
|
||||
!--------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue