If you don't like @suszterpatt's answer (I know), you can always abuse the Cartesian communicator and pretend that the process in index (2,3) in the communicator is process 3 in group 2 of your hierarchical decomposition.
But do not read this and do not take away the impression that I recommend such abuse, this is just a thought.
source
share