How can I call a (c++)function just for a subset of processes using MPI library?
===

The question says it all. I have three communicators(Groups are also available). Now I want to call the a function just for one communication subset. That is mask the function for other subsets. Is this possible or should I explicitly right a loop and check for the existence of the current process in the group and then call the function.

Thanks, 