Reformated code in AbstractGridSimulation