( Heat transfer: diffusion + convection.
  One-dimensional.
  Stationar.
  Left node prescribed temperature 1.
  Right node prescribed temperature 0.
  Refinements are automatically performed until
  the estimated error of the temperature at point
  x=1. becomes smaller than 0.01 percent. )

echo -no
number_of_space_dimensions 1
condif_temperature
end_initia

options_inertia -no

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

geometry_point 1  0. 1.e-5
geometry_point 2  2. 1.e-5

bounda_unknown 0  -geometry_point 1 -temp
bounda_time    0  0.0 1. 1.e6 1.
bounda_unknown 1  -geometry_point 2 -temp
bounda_time    1  0.0 0.0 100.0 0.

group_type 0  -condif
group_condif_conductivity 0  0.1
group_condif_density 0  1.
group_condif_capacity 0  1.
group_condif_flow 0  0.2

post_point 1  1.
post_error_item 1  -post_point_dof 1 -temp

control_mesh_refine_globally            10  -h_refinement

control_timestep                        20  1. 1.

(
control_print                           30 -post_point_dof
                                           -post_error_result
)

control_repeat_until_item               40  10 -value -post_error_result 1 0
control_repeat_until_tolerance          40  1.e-2

target_item    0   -post_error_result 1 0
target_value   0   0.0 1.e-2
end_data
