#include "mpiutils.hh" #ifdef IWAVE_USE_MPI namespace RVL { /** convenient helper function to sanity-test rank settings */ bool MPIRVL_SetRank(int & idx, int ich, MPI_Comm comm) { int np; MPI_Comm_size(comm,&np); if (ich < 0 || ich > np-1) { cerr<<"Error: MPIRVL_SetRank helper function"<