accurate tolerance checks when comparing grids