- H5PartSetNumPoints() renamed to H5PartSetNumItems()
- H5PartGetNumPoints() renamed to H5PartGetNumItems()
- Dataset names longer then 64 bytes are handled as error.
- Same for step/iteration names.
* core API
- we use the term 'iteration' instead of 'step'
- we use the term 'item' instead of 'point'
- re-factor function and variable names
- in printing messages/debug output fixed
- do not flush (sync to disk) after writing a dataset by default,
  can be controlled by a property
This commit is contained in:
Gsell Achim
2018-09-14 16:46:40 +02:00
parent 072a2781fc
commit 4daf9b786c
47 changed files with 842 additions and 655 deletions
+4 -4
View File
@@ -360,7 +360,7 @@ test_read_data32(h5_file_t file, int nparticles, int step)
status = H5PartReadDataFloat32(file, "pz", pz);
RETURN(status, H5_SUCCESS, "H5PartReadDataFloat32");
status = H5PartReadDataInt32(file, LONGNAME2, id);
status = H5PartReadDataInt32(file, "id", id);
RETURN(status, H5_SUCCESS, "H5PartReadDataInt32");
for (i=0; i<nparticles; i++)
@@ -489,7 +489,7 @@ void h5u_test_read3(void)
RETURN(status, H5_SUCCESS, "H5CheckFile");
TEST("Redefining step name");
status = H5SetStepNameFormat(file1, LONGNAME, 16);
status = H5SetStepNameFormat(file1, "data", 16);
RETURN(status, H5_SUCCESS, "H5SetStepNameFormat");
test_read_strided_data64(file1, NPARTICLES, 0);
@@ -525,10 +525,10 @@ void h5u_test_read4(void)
RETURN(status, H5_SUCCESS, "H5CloseProp");
TEST("Redefining step name");
status = H5SetStepNameFormat(file1, LONGNAME, 16);
status = H5SetStepNameFormat(file1, "data", 16);
RETURN(status, H5_SUCCESS, "H5SetStepNameFormat");
status = H5SetStepNameFormat(file2, LONGNAME, 16);
status = H5SetStepNameFormat(file2, "data", 16);
RETURN(status, H5_SUCCESS, "H5SetStepNameFormat");
test_read_file_attribs(file1, 1);
+5 -5
View File
@@ -266,7 +266,7 @@ test_write_data32(h5_file_t file, int nparticles, int step)
status = H5PartWriteDataFloat32(file, "pz", pz);
RETURN(status, H5_SUCCESS, "H5PartWriteDataFloat32");
status = H5PartWriteDataInt32(file, LONGNAME2, id);
status = H5PartWriteDataInt32(file, "id", id);
RETURN(status, H5_SUCCESS, "H5PartWriteDataInt32");
/* the second write phase... */
@@ -293,7 +293,7 @@ test_write_data32(h5_file_t file, int nparticles, int step)
status = H5PartWriteDataFloat32(file, "pz", pz+32);
RETURN(status, H5_SUCCESS, "H5PartWriteDataFloat32");
status = H5PartWriteDataInt32(file, LONGNAME, id+32);
status = H5PartWriteDataInt32(file, "id", id+32);
RETURN(status, H5_SUCCESS, "H5PartWriteDataInt32");
}
}
@@ -435,7 +435,7 @@ void h5u_test_write3(void)
RETURN(status, H5_SUCCESS, "H5CloseProp");
TEST("Redefining step name");
status = H5SetStepNameFormat(file1, LONGNAME, 16);
status = H5SetStepNameFormat(file1, "data", 16);
RETURN(status, H5_SUCCESS, "H5SetStepNameFormat");
test_write_strided_data64(file1, NPARTICLES, 0);
@@ -474,10 +474,10 @@ void h5u_test_write4(void)
RETURN(status, H5_SUCCESS, "H5CloseProp");
TEST("Redefining step name");
status = H5SetStepNameFormat(file1, LONGNAME, 16);
status = H5SetStepNameFormat(file1, "data", 16);
RETURN(status, H5_SUCCESS, "H5SetStepNameFormat");
status = H5SetStepNameFormat(file2, LONGNAME, 16);
status = H5SetStepNameFormat(file2, "data", 16);
RETURN(status, H5_SUCCESS, "H5SetStepNameFormat");
status = H5PartSetChunkSize(file1, NPARTICLES);