Regularity of a thermoelastic problem with variable parameters