no plastic model as default

This commit is contained in:
Martin Diehl 2021-03-26 21:16:11 +01:00
parent 9fd244d8a0
commit 4d046e4e16
1 changed files with 2 additions and 2 deletions

View File

@ -450,8 +450,8 @@ function plastic_active(plastic_label) result(active_plastic)
do ph = 1, phases%length
phase => phases%get(ph)
mech => phase%get('mechanical')
pl => mech%get('plastic')
if(pl%get_asString('type') == plastic_label) active_plastic(ph) = .true.
pl => mech%get('plastic',defaultVal = emptyDict)
if(pl%get_asString('type',defaultVal='none') == plastic_label) active_plastic(ph) = .true.
enddo
end function plastic_active