fixed a bug in computing averaged heat flux on a solid surface