added a test for existing datasets to write calls

This commit is contained in:
Marc Howison
2009-07-06 21:07:30 +00:00
parent 207e49716c
commit cd0391db7e
4 changed files with 22 additions and 3 deletions
+3
View File
@@ -744,6 +744,9 @@ _write_data (
name, (long long)f->timestep );
#if H5_VERS_MAJOR == 1 && H5_VERS_MINOR == 8
htri_t exists = H5Lexists ( f->timegroup, name, H5P_DEFAULT );
if ( exists > 0 ) return HANDLE_H5D_EXISTS_ERR ( name, f->timestep );
dataset_id = H5Dcreate2 (
f->timegroup,
name,