The structuredGridWriter has problems with periodic YaspGrids. Probably , the point indices are shifted somehow.