The comparison of results obtained from the continuous and discontinuous Galerkin method for the thermoelasticity problem