Thermal pattern alteration technique controls both distortion and residual stresses in aluminum weldments. Cryogenic liquids and auxiliary heat sources are used to produce contraction and expansion of metal in the vicinity of the weld in such a manner as to counterbalance expansion and contraction caused by welding.