Merge branch 'release-4-6'
[alexxy/gromacs.git] / src / gromacs / gmxlib / thread_mpi / tmpi_malloc.c
index cc1a2c2c21a35bba2ab6724d772a8d3f089806c1..df105f0a31b9e6f983df33d6654da9a91f4cf590 100644 (file)
@@ -66,7 +66,7 @@ void *tMPI_Malloc(size_t size)
 
     if (!ret)
     {
-        tMPI_Error(TMPI_COMM_WORLD, TMPI_ERR_MALLOC);
+        tMPI_Error(TMPI_COMM_WORLD, TMPI_ERR_NO_MEM);
     }
     return ret;
 }
@@ -76,7 +76,7 @@ void *tMPI_Realloc(void *p, size_t size)
     void *ret = (void*)realloc(p, size);
     if (!ret)
     {
-        tMPI_Error(TMPI_COMM_WORLD, TMPI_ERR_MALLOC);
+        tMPI_Error(TMPI_COMM_WORLD, TMPI_ERR_NO_MEM);
     }
     return ret;
 }