summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-05-10 15:39:44 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-05-10 15:39:44 (GMT)
commit1696277a6c8c3324c31e0ea49bcd0a9e5c0d01c6 (patch)
treeca2bbe4180c2555a94df49219d12109bf0a662d8 /testpar
parentfcdc05f30727e614505a149e572645456d9d4ca8 (diff)
downloadhdf5-1696277a6c8c3324c31e0ea49bcd0a9e5c0d01c6.zip
hdf5-1696277a6c8c3324c31e0ea49bcd0a9e5c0d01c6.tar.gz
hdf5-1696277a6c8c3324c31e0ea49bcd0a9e5c0d01c6.tar.bz2
[svn-r5386] Purpose:
Bug Fix Description: Currently, only process 0 is writing attribute data to a file. This is incorrect, because the raw data for attributes is cached in memory until the object header is written and other processes are not able to read the correct attribute information. Solution: Have all processes participate in writing the attribute data. Platforms tested: IRIX64 6.5 (modi4)
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_mdset.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/testpar/t_mdset.c b/testpar/t_mdset.c
index d49ca90..df12bcd 100644
--- a/testpar/t_mdset.c
+++ b/testpar/t_mdset.c
@@ -390,8 +390,7 @@ void write_attribute(hid_t obj_id, int this_type, int num)
sprintf(attr_name, "Group Attribute %d", num);
sid = H5Screate(H5S_SCALAR);
aid = H5Acreate(obj_id, attr_name, H5T_NATIVE_INT, sid, H5P_DEFAULT);
- if(MAINPROCESS)
- H5Awrite(aid, H5T_NATIVE_INT, &num);
+ H5Awrite(aid, H5T_NATIVE_INT, &num);
H5Aclose(aid);
H5Sclose(sid);
}
@@ -401,8 +400,7 @@ void write_attribute(hid_t obj_id, int this_type, int num)
attr_data[i] = i;
sid = H5Screate_simple(dspace_rank, dspace_dims, NULL);
aid = H5Acreate(obj_id, attr_name, H5T_NATIVE_INT, sid, H5P_DEFAULT);
- if(MAINPROCESS)
- H5Awrite(aid, H5T_NATIVE_INT, attr_data);
+ H5Awrite(aid, H5T_NATIVE_INT, attr_data);
H5Aclose(aid);
H5Sclose(sid);
}