implementin refinement for the grid in ratran