temperature = sum of total energy

sweet.
many thanks to all who put up withthis nonsense.