[PD] matrices in gridflow