fixed function call for ideal_plasticity! to get correct arguments.

This commit is contained in:
Jukka Aho
2017-01-09 13:36:08 +02:00
parent 5467fc1d66
commit 77d0b28f7e
+2 -1
View File
@@ -199,7 +199,8 @@ function assemble{El<:Elasticity2DVolumeElements}(problem::Problem{Elasticity},
dstrain_vec = strain_vec - strain_last
stress_vec = [0.0, 0.0, 0.0]
calculate_stress!(stress_vec, stress_last, dstrain_vec, D, params, Dtan, yield_surface_, time, dt, Val{:type_2d})
pstrain = zeros(3)
calculate_stress!(stress_vec, stress_last, dstrain_vec, pstrain, D, params, Dtan, yield_surface_, time, dt, Val{:type_2d})
else
stress_vec = D * ([1.0, 1.0, 2.0] .* strain_vec)
Dtan[:,:] = D[:,:]