ghost points and matrix partitioning