16 real(kind=kreal),
intent(in) :: ctime, etime
18 integer,
intent(in) :: if_type
20 if (if_type ==
c_if_slave .and. cstate%init_pos == 0.d0)
then
21 cstate%shrink_factor = 0.0d0;
return
23 cstate%shrink_factor = cstate%time_factor*ctime + cstate%init_pos
24 if(ctime >= etime) cstate%shrink_factor = cstate%end_pos
30 integer(kind=kint) :: nnode, i
32 real(kind=kreal) :: coords(:)
33 real(kind=kreal) :: d(3)
35 d = - cstate%shrink_factor * cstate%direction(1:3)
38 coords(1+i*3:(i+1)*3) = coords(1+i*3:(i+1)*3) + d(1:3)
This module provides functions to deal with time and increment of stress analysis.