for AIX, avoid new. Looks like new does not go to malloc, and so isomalloc may not...
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 6 Feb 2009 18:22:59 +0000 (18:22 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 6 Feb 2009 18:22:59 +0000 (18:22 +0000)
examples/ampi/Cjacobi3D/jacobi.C

index 351aac2da79ba8be2bbb8a76a4a1158e0407177d..2b88c5f81ca1a1161f58deabe0b48832c2d0487f 100644 (file)
@@ -142,7 +142,11 @@ int main(int ac, char** av)
 
   MPI_Bcast(&niter, 1, MPI_INT, 0, MPI_COMM_WORLD);
 
+#if CMK_AIX
+  cp = (chunk*)malloc(sizeof(chunk));
+#else
   cp = new chunk;
+#endif
 #if defined(AMPI) && ! defined(NO_PUP)
   MPI_Register((void*)&cp, (MPI_PupFn) chunk_pup);
 #endif