This routine returns the communicator for the group that spawned the current process. Calling this routine for a process that was not spawned using mpicommspawn will cause an error. The general syntax for its use is
mpicommspawn
comm = mpicommgetparent