( Automatic distribution of tendon.
  As the tendon does not completely pass element 1
  but does completely pass element 2, only element 2
  should get embedded tendon. The stress in the 
  embedded tendon should be 1.23) 

echo -no
number_of_space_dimensions 1
materi_velocity
materi_stress
end_initia

node 1   0
node 2  10
node 3  20
element 1  -bar2 1 2
element 2  -bar2 2 3

tendon 1  5. 25. 1.
tendon_stress 1  1.23

(control_print 10  -element_tendon_number -element_tendon_stress)

target_item  1 -element_tendon_number 2  0
target_value 1 1 0
target_item  2 -element_tendon_stress 2  0
target_value 2 1.23 1.e-4
end_data
