not needed (duplicated code)
This commit is contained in:
parent
431416b5ba
commit
569b1fc563
|
@ -21,7 +21,6 @@ module subroutine elastic_init(phases)
|
||||||
phase, &
|
phase, &
|
||||||
mech, &
|
mech, &
|
||||||
elastic
|
elastic
|
||||||
character(len=:), allocatable :: struct
|
|
||||||
|
|
||||||
|
|
||||||
print'(/,a)', ' <<<+- phase:mechanical:elastic init -+>>>'
|
print'(/,a)', ' <<<+- phase:mechanical:elastic init -+>>>'
|
||||||
|
@ -38,19 +37,15 @@ module subroutine elastic_init(phases)
|
||||||
if (elastic%get_asString('type') /= 'Hooke') call IO_error(200,ext_msg=elastic%get_asString('type'))
|
if (elastic%get_asString('type') /= 'Hooke') call IO_error(200,ext_msg=elastic%get_asString('type'))
|
||||||
|
|
||||||
associate(prm => param(ph))
|
associate(prm => param(ph))
|
||||||
struct = phase%get_asString('lattice')
|
|
||||||
if (struct /= 'cI' .and. struct /= 'cF' .and. struct /= 'hP' .and. struct /= 'tI') &
|
|
||||||
call IO_error(137,ext_msg=trim(struct))
|
|
||||||
|
|
||||||
prm%C66(1,1) = elastic%get_asFloat('C_11')
|
prm%C66(1,1) = elastic%get_asFloat('C_11')
|
||||||
prm%C66(1,2) = elastic%get_asFloat('C_12')
|
prm%C66(1,2) = elastic%get_asFloat('C_12')
|
||||||
prm%C66(4,4) = elastic%get_asFloat('C_44')
|
prm%C66(4,4) = elastic%get_asFloat('C_44')
|
||||||
|
|
||||||
if (struct == 'hP' .or. struct == 'tI') then
|
if (any(phase_lattice(ph) == ['hP','tI'])) then
|
||||||
prm%C66(1,3) = elastic%get_asFloat('C_13')
|
prm%C66(1,3) = elastic%get_asFloat('C_13')
|
||||||
prm%C66(3,3) = elastic%get_asFloat('C_33')
|
prm%C66(3,3) = elastic%get_asFloat('C_33')
|
||||||
endif
|
endif
|
||||||
if (struct == 'tI') prm%C66(6,6) = elastic%get_asFloat('C_66')
|
if (phase_lattice(ph) == 'tI') prm%C66(6,6) = elastic%get_asFloat('C_66')
|
||||||
end associate
|
end associate
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue