(Test generating truss elements.
 A truss is generated between node 1 and 2.
 The force on the right node should lead to a displacement of 0.5.
)

echo -no
number_of_space_dimensions 1
materi_velocity
materi_displacement
materi_strain_total
materi_stress
end_initia

geometry_line 1 0. 1. 1.e-4

node 1  0
node 2  1
element 1  -bar2 1 2

group_type 0  -materi
group_materi_elasti_young 0  1.0
group_materi_memory 0  -total

group_type 1  -truss
group_truss_area 1  1.0
group_truss_young 1  1.0
group_truss_memory 1  -updated_without_rotation

bounda_unknown 1  1 -velx
bounda_time    1  0. 0. 100. 0.
bounda_force   2  2 -velx
bounda_time    2  0. 1. 100. 1.

control_mesh_generate_truss 10  1 -geometry_line 1

control_timestep            20  1. 1.
(
control_print               20 -time_current -node_dof
)

target_item  0   -node_dof 2 -disx
target_value 0   0.5 1.e-2
end_data
