From 7b976dd7a3b965b5f64c29cffa5bba80797fc2a9 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Tue, 22 Apr 2003 00:50:12 -0500 Subject: [svn-r6728] Purpose: Silly bug fix. Description: Forgot to put the comm/info duplication code in. Solution: Put them back in. Platforms tested: Did not run h5committest since the changes are all in the MPIO driver code. Tested on eirene and Modi4, both parallel modes. Misc. update: --- src/H5FDmpio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c index 5a378aa..d54b4fd 100644 --- a/src/H5FDmpio.c +++ b/src/H5FDmpio.c @@ -830,9 +830,11 @@ H5FD_mpio_fapl_get(H5FD_t *_file) if (NULL==(fa=H5MM_calloc(sizeof(H5FD_mpio_fapl_t)))) HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed"); - /* These should both be copied. --rpm, 1999-08-13 */ - fa->comm = file->comm; - fa->info = file->info; + /* Duplicate communicator and Info object. */ + if (FAIL==H5FD_mpio_comm_info_dup(file->comm, file->info, + &fa->comm, &fa->info)) + HGOTO_ERROR(H5E_INTERNAL, H5E_CANTCOPY, NULL, + "Communicator/Info duplicate failed"); /* Set return value */ ret_value=fa; -- cgit v0.12