example of partitioning with a user-supplied comm

cf. issue #444