energy grid fixed in tally class
write tallies