Why Request_free() and Cancel() do not fail when REQUEST_NULL is
passed? Am I missing something?

#include <mpi.h>

int main(int argc, char *argv[])
{
  MPI_Request req;
  MPI_Init(&argc, &argv);
  req = MPI_REQUEST_NULL;
  MPI_Request_free(&req);
  req = MPI_REQUEST_NULL;
  MPI_Cancel(&req);
  MPI_Finalize();
  return 0;
}


PS: The code below was tested with 1.4.1

-- 
Lisandro Dalcin
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594

Reply via email to