PAIS fixed grid partitio script