avoid repeated allocation of a_nS
leads to segmentation fault
This commit is contained in:
parent
2b547e2048
commit
7f0c782602
|
@ -145,6 +145,7 @@ module function plastic_kinehardening_init() result(myPlasticity)
|
||||||
a_nS(1,:) = pl%get_as1dReal('a_nonSchmid_110',defaultVal=emptyRealArray)
|
a_nS(1,:) = pl%get_as1dReal('a_nonSchmid_110',defaultVal=emptyRealArray)
|
||||||
prm%P_nS_pos = crystal_SchmidMatrix_slip(N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=+1)
|
prm%P_nS_pos = crystal_SchmidMatrix_slip(N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=+1)
|
||||||
prm%P_nS_neg = crystal_SchmidMatrix_slip(N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=-1)
|
prm%P_nS_neg = crystal_SchmidMatrix_slip(N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=-1)
|
||||||
|
deallocate(a_nS)
|
||||||
else
|
else
|
||||||
prm%P_nS_pos = +prm%P
|
prm%P_nS_pos = +prm%P
|
||||||
prm%P_nS_neg = -prm%P
|
prm%P_nS_neg = -prm%P
|
||||||
|
|
|
@ -247,6 +247,7 @@ module function plastic_nonlocal_init() result(myPlasticity)
|
||||||
a_nS(1,:) = pl%get_as1dReal('a_nonSchmid_110',defaultVal=emptyRealArray)
|
a_nS(1,:) = pl%get_as1dReal('a_nonSchmid_110',defaultVal=emptyRealArray)
|
||||||
prm%P_nS_pos = crystal_SchmidMatrix_slip(ini%N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=+1)
|
prm%P_nS_pos = crystal_SchmidMatrix_slip(ini%N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=+1)
|
||||||
prm%P_nS_neg = crystal_SchmidMatrix_slip(ini%N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=-1)
|
prm%P_nS_neg = crystal_SchmidMatrix_slip(ini%N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=-1)
|
||||||
|
deallocate(a_nS)
|
||||||
else
|
else
|
||||||
prm%P_nS_pos = +prm%P_sl
|
prm%P_nS_pos = +prm%P_sl
|
||||||
prm%P_nS_neg = -prm%P_sl
|
prm%P_nS_neg = -prm%P_sl
|
||||||
|
|
|
@ -162,6 +162,7 @@ module function plastic_phenopowerlaw_init() result(myPlasticity)
|
||||||
a_nS(1,:) = pl%get_as1dReal('a_nonSchmid_110',defaultVal=emptyRealArray)
|
a_nS(1,:) = pl%get_as1dReal('a_nonSchmid_110',defaultVal=emptyRealArray)
|
||||||
prm%P_nS_pos = crystal_SchmidMatrix_slip(N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=+1)
|
prm%P_nS_pos = crystal_SchmidMatrix_slip(N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=+1)
|
||||||
prm%P_nS_neg = crystal_SchmidMatrix_slip(N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=-1)
|
prm%P_nS_neg = crystal_SchmidMatrix_slip(N_sl,phase_lattice(ph),phase_cOverA(ph),nonSchmidCoefficients=a_nS,sense=-1)
|
||||||
|
deallocate(a_nS)
|
||||||
else
|
else
|
||||||
prm%P_nS_pos = +prm%P_sl
|
prm%P_nS_pos = +prm%P_sl
|
||||||
prm%P_nS_neg = -prm%P_sl
|
prm%P_nS_neg = -prm%P_sl
|
||||||
|
|
Loading…
Reference in New Issue