Move hl example into HDF5Examples (#5057)

This commit is contained in:
Allen Byrne
2024-11-04 05:22:27 -08:00
committed by GitHub
parent 35df4fb6a6
commit ad3ea2633a
253 changed files with 51240 additions and 1648 deletions
+7 -1
View File
@@ -20,6 +20,12 @@ if (${H5_LIBVER_DIR} GREATER 110)
add_subdirectory (${PROJECT_SOURCE_DIR}/H5VDS)
endif ()
if (H5_HAVE_PARALLEL AND HDF5_ENABLE_PARALLEL)
if (H5EX_ENABLE_PARALLEL AND H5_HAVE_PARALLEL AND HDF5_ENABLE_PARALLEL)
add_subdirectory (${PROJECT_SOURCE_DIR}/H5PAR)
endif ()
#-- Add High Level Examples
if (H5EX_BUILD_HL AND HDF5_BUILD_HL_LIB)
add_subdirectory (HL)
endif ()
+2 -2
View File
@@ -16,7 +16,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_alloc.h5"
#define FILENAME "h5ex_d_alloc.h5"
#define DATASET1 "DS1"
#define DATASET2 "DS2"
#define DIM0 4
@@ -49,7 +49,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
+8 -8
View File
@@ -17,12 +17,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_checksum.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_checksum.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -72,7 +72,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -113,7 +113,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+8 -8
View File
@@ -17,12 +17,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_chunk.h5"
#define DATASET "DS1"
#define DIM0 6
#define DIM1 8
#define CHUNK0 4
#define CHUNK1 4
#define FILENAME "h5ex_d_chunk.h5"
#define DATASET "DS1"
#define DIM0 6
#define DIM1 8
#define CHUNK0 4
#define CHUNK1 4
int
main(void)
@@ -64,7 +64,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -126,7 +126,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+6 -6
View File
@@ -14,10 +14,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_compact.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_d_compact.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -43,7 +43,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -84,7 +84,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_extern.h5"
#define FILENAME "h5ex_d_extern.h5"
#define EXTERNAL "h5ex_d_extern.data"
#define DATASET "DS1"
#define DIM0 4
@@ -46,7 +46,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -86,7 +86,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+10 -10
View File
@@ -17,15 +17,15 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_fillval.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILLVAL 99
#define FILENAME "h5ex_d_fillval.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILLVAL 99
int
main(void)
@@ -55,7 +55,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace with unlimited dimensions.
+8 -8
View File
@@ -16,12 +16,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_gzip.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_gzip.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -72,7 +72,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -113,7 +113,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+6 -6
View File
@@ -17,10 +17,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_hyper.h5"
#define DATASET "DS1"
#define DIM0 6
#define DIM1 8
#define FILENAME "h5ex_d_hyper.h5"
#define DATASET "DS1"
#define DIM0 6
#define DIM1 8
int
main(void)
@@ -59,7 +59,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -114,7 +114,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+6 -6
View File
@@ -14,10 +14,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_rdwr.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_d_rdwr.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -41,7 +41,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -74,7 +74,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+8 -8
View File
@@ -17,12 +17,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_shuffle.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_shuffle.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -88,7 +88,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -135,7 +135,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+8 -8
View File
@@ -16,12 +16,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_szip.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_szip.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -73,7 +73,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -114,7 +114,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+11 -11
View File
@@ -17,14 +17,14 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_unlimadd.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILENAME "h5ex_d_unlimadd.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
int
main(void)
@@ -56,7 +56,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace with unlimited dimensions.
@@ -98,7 +98,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDWR, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
@@ -197,7 +197,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+11 -11
View File
@@ -18,14 +18,14 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_unlimgzip.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILENAME "h5ex_d_unlimgzip.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
int
main(void)
@@ -80,7 +80,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace with unlimited dimensions.
@@ -123,7 +123,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDWR, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
@@ -222,7 +222,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+11 -11
View File
@@ -17,14 +17,14 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_unlimmod.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILENAME "h5ex_d_unlimmod.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
int
main(void)
@@ -54,7 +54,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace with unlimited dimensions.
@@ -96,7 +96,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDWR, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
@@ -172,7 +172,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+2 -2
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_alloc.h5"
#define FILENAME "h5ex_d_alloc.h5"
#define DATASET1 "DS1"
#define DATASET2 "DS2"
#define DIM0 4
@@ -47,7 +47,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
+8 -8
View File
@@ -15,12 +15,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_checksum.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_checksum.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -70,7 +70,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -111,7 +111,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+8 -8
View File
@@ -15,12 +15,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_chunk.h5"
#define DATASET "DS1"
#define DIM0 6
#define DIM1 8
#define CHUNK0 4
#define CHUNK1 4
#define FILENAME "h5ex_d_chunk.h5"
#define DATASET "DS1"
#define DIM0 6
#define DIM1 8
#define CHUNK0 4
#define CHUNK1 4
int
main(void)
@@ -62,7 +62,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -124,7 +124,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+6 -6
View File
@@ -12,10 +12,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_compact.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_d_compact.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -41,7 +41,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -82,7 +82,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+3 -3
View File
@@ -13,7 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_extern.h5"
#define FILENAME "h5ex_d_extern.h5"
#define EXTERNAL "h5ex_d_extern.data"
#define DATASET "DS1"
#define DIM0 4
@@ -44,7 +44,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -84,7 +84,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+10 -10
View File
@@ -15,15 +15,15 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_fillval.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILLVAL 99
#define FILENAME "h5ex_d_fillval.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILLVAL 99
int
main(void)
@@ -53,7 +53,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace with unlimited dimensions.
+8 -8
View File
@@ -14,12 +14,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_gzip.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_gzip.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -70,7 +70,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -111,7 +111,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+6 -6
View File
@@ -15,10 +15,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_hyper.h5"
#define DATASET "DS1"
#define DIM0 6
#define DIM1 8
#define FILENAME "h5ex_d_hyper.h5"
#define DATASET "DS1"
#define DIM0 6
#define DIM1 8
int
main(void)
@@ -57,7 +57,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -112,7 +112,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+8 -8
View File
@@ -14,12 +14,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_nbit.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_nbit.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -72,7 +72,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -123,7 +123,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+6 -6
View File
@@ -12,10 +12,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_rdwr.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_d_rdwr.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -39,7 +39,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -72,7 +72,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+8 -8
View File
@@ -17,12 +17,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_shuffle.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_shuffle.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -88,7 +88,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -135,7 +135,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+8 -8
View File
@@ -14,12 +14,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_sofloat.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_sofloat.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -91,7 +91,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -132,7 +132,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+8 -8
View File
@@ -14,12 +14,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_soint.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_soint.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -71,7 +71,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -112,7 +112,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+8 -8
View File
@@ -14,12 +14,12 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_szip.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
#define FILENAME "h5ex_d_szip.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
#define CHUNK0 4
#define CHUNK1 8
int
main(void)
@@ -71,7 +71,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -112,7 +112,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+3 -3
View File
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_transform.h5"
#define FILENAME "h5ex_d_transform.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
@@ -57,7 +57,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -100,7 +100,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+11 -11
View File
@@ -15,14 +15,14 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_unlimadd.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILENAME "h5ex_d_unlimadd.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
int
main(void)
@@ -54,7 +54,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace with unlimited dimensions.
@@ -96,7 +96,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDWR, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
@@ -195,7 +195,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+11 -11
View File
@@ -16,14 +16,14 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_unlimgzip.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILENAME "h5ex_d_unlimgzip.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
int
main(void)
@@ -78,7 +78,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace with unlimited dimensions.
@@ -121,7 +121,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDWR, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
@@ -220,7 +220,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+11 -11
View File
@@ -15,14 +15,14 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_unlimmod.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
#define FILENAME "h5ex_d_unlimmod.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define EDIM0 6
#define EDIM1 10
#define CHUNK0 4
#define CHUNK1 4
int
main(void)
@@ -52,7 +52,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace with unlimited dimensions.
@@ -94,7 +94,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDWR, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
@@ -170,7 +170,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_blosc.h5"
#define FILENAME "h5ex_d_blosc.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
@@ -65,7 +65,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -151,7 +151,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_blosc2.h5"
#define FILENAME "h5ex_d_blosc2.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
@@ -65,7 +65,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -151,7 +151,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_bshuf.h5"
#define FILENAME "h5ex_d_bshuf.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
@@ -65,7 +65,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -151,7 +151,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_bzip2.h5"
#define FILENAME "h5ex_d_bzip2.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
@@ -65,7 +65,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -151,7 +151,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_jpeg.h5"
#define FILENAME "h5ex_d_jpeg.h5"
#define DATASET "DS1"
#define DIM0 512
#define DIM1 1024
@@ -75,7 +75,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -163,7 +163,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_lz4.h5"
#define FILENAME "h5ex_d_lz4.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
@@ -65,7 +65,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -151,7 +151,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_lzf.h5"
#define FILENAME "h5ex_d_lzf.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
@@ -65,7 +65,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -151,7 +151,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_mafisc.h5"
#define FILENAME "h5ex_d_mafisc.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
@@ -65,7 +65,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -151,7 +151,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_zfp.h5"
#define FILENAME "h5ex_d_zfp.h5"
#define DATASET "DS1"
#define DIM0 32
#define DIM1 64
@@ -65,7 +65,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -151,7 +151,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+3 -3
View File
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_d_zstd.h5"
#define FILENAME "h5ex_d_zstd.h5"
#define DATASET "DS1"
#define DIM0 512
#define DIM1 1024
@@ -72,7 +72,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file_id = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file_id = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (file_id < 0)
goto done;
@@ -158,7 +158,7 @@ main(void)
/*
* Open file and dataset using the default properties.
*/
file_id = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file_id = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
if (file_id < 0)
goto done;
+2 -2
View File
@@ -8,7 +8,7 @@
#include "hdf5.h"
#define FILE "h5ex_g_create.h5"
#define FILENAME "h5ex_g_create.h5"
int
main(void)
@@ -19,7 +19,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create a group named "G1" in the file.
+2 -2
View File
@@ -10,7 +10,7 @@
#include "hdf5.h"
#include <stdio.h>
#define FILE "h5ex_g_iterate.h5"
#define FILENAME "h5ex_g_iterate.h5"
/*
* Operator function to be called by H5Giterate.
@@ -26,7 +26,7 @@ main(void)
/*
* Open file.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
/*
* Begin iteration.
+2 -2
View File
@@ -16,7 +16,7 @@
#include "hdf5.h"
#include <stdio.h>
#define FILE "h5ex_g_traverse.h5"
#define FILENAME "h5ex_g_traverse.h5"
/*
* Define operator data structure type for H5Giterate callback.
@@ -51,7 +51,7 @@ main(void)
/*
* Open file and initialize the operator data structure.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
status = H5Gget_objinfo(file, "/", 0, &statbuf);
od.recurs = 0;
od.prev = NULL;
+11 -11
View File
@@ -14,9 +14,9 @@
#include "hdf5.h"
#include <stdio.h>
#define FILE1 "h5ex_g_compact1.h5"
#define FILE2 "h5ex_g_compact2.h5"
#define GROUP "G1"
#define FILENAME1 "h5ex_g_compact1.h5"
#define FILENAME2 "h5ex_g_compact2.h5"
#define GROUP "G1"
int
main(void)
@@ -31,14 +31,14 @@ main(void)
/*
* Create file 1. This file will use original format groups.
*/
file = H5Fcreate(FILE1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME1, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
group = H5Gcreate(file, GROUP, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/*
* Obtain the group info and print the group storage type.
*/
status = H5Gget_info(group, &ginfo);
printf("Group storage type for %s is: ", FILE1);
printf("Group storage type for %s is: ", FILENAME1);
switch (ginfo.storage_type) {
case H5G_STORAGE_TYPE_COMPACT:
printf("H5G_STORAGE_TYPE_COMPACT\n"); /* New compact format */
@@ -58,13 +58,13 @@ main(void)
*/
status = H5Gclose(group);
status = H5Fclose(file);
file = H5Fopen(FILE1, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME1, H5F_ACC_RDONLY, H5P_DEFAULT);
/*
* Obtain and print the file size.
*/
status = H5Fget_filesize(file, &size);
printf("File size for %s is: %d bytes\n\n", FILE1, (int)size);
printf("File size for %s is: %d bytes\n\n", FILENAME1, (int)size);
/*
* Close FILE1.
@@ -81,14 +81,14 @@ main(void)
/*
* Create file 2 using the new file access property list.
*/
file = H5Fcreate(FILE2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
file = H5Fcreate(FILENAME2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
group = H5Gcreate(file, GROUP, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
/*
* Obtain the group info and print the group storage type.
*/
status = H5Gget_info(group, &ginfo);
printf("Group storage type for %s is: ", FILE2);
printf("Group storage type for %s is: ", FILENAME2);
switch (ginfo.storage_type) {
case H5G_STORAGE_TYPE_COMPACT:
printf("H5G_STORAGE_TYPE_COMPACT\n"); /* New compact format */
@@ -108,13 +108,13 @@ main(void)
*/
status = H5Gclose(group);
status = H5Fclose(file);
file = H5Fopen(FILE2, H5F_ACC_RDONLY, fapl);
file = H5Fopen(FILENAME2, H5F_ACC_RDONLY, fapl);
/*
* Obtain and print the file size.
*/
status = H5Fget_filesize(file, &size);
printf("File size for %s is: %d bytes\n", FILE2, (int)size);
printf("File size for %s is: %d bytes\n", FILENAME2, (int)size);
printf("\n");
/*
+2 -2
View File
@@ -13,7 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_g_corder.h5"
#define FILENAME "h5ex_g_corder.h5"
int
main(void)
@@ -31,7 +31,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create group creation property list and enable link creation
+2 -2
View File
@@ -8,7 +8,7 @@
#include "hdf5.h"
#define FILE "h5ex_g_create.h5"
#define FILENAME "h5ex_g_create.h5"
int
main(void)
@@ -20,7 +20,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create a group named "G1" in the file.
+2 -2
View File
@@ -7,7 +7,7 @@
#include "hdf5.h"
#define FILE "h5ex_g_intermediate.h5"
#define FILENAME "h5ex_g_intermediate.h5"
/*
* Operator function to be called by H5Ovisit.
@@ -25,7 +25,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create group creation property list and set it to allow creation
+2 -2
View File
@@ -8,7 +8,7 @@
#include "hdf5.h"
#include <stdio.h>
#define FILE "h5ex_g_iterate.h5"
#define FILENAME "h5ex_g_iterate.h5"
/*
* Operator function to be called by H5Literate.
@@ -24,7 +24,7 @@ main(void)
/*
* Open file.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
/*
* Begin iteration.
+2 -2
View File
@@ -10,7 +10,7 @@
#include "hdf5.h"
#include <stdio.h>
#define FILE "h5ex_g_phase.h5"
#define FILENAME "h5ex_g_phase.h5"
#define MAX_GROUPS 7
#define MAX_COMPACT 5
#define MIN_DENSE 3
@@ -42,7 +42,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
/*
* Create primary group.
+2 -2
View File
@@ -14,7 +14,7 @@
#include "hdf5.h"
#include <stdio.h>
#define FILE "h5ex_g_traverse.h5"
#define FILENAME "h5ex_g_traverse.h5"
/*
* Define operator data structure type for H5Literate callback.
@@ -57,7 +57,7 @@ main(void)
/*
* Open file and initialize the operator data structure.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
#if H5_VERSION_GE(1, 12, 0) && !defined(H5_USE_110_API) && !defined(H5_USE_18_API) && !defined(H5_USE_16_API)
status = H5Oget_info2(file, &infobuf, H5O_INFO_ALL);
#else
+2 -2
View File
@@ -12,7 +12,7 @@
#include "hdf5.h"
#include <stdio.h>
#define FILE "h5ex_g_visit.h5"
#define FILENAME "h5ex_g_visit.h5"
/*
* Operator function to be called by H5Ovisit.
@@ -33,7 +33,7 @@ main(void)
/*
* Open file
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
/*
* Begin iteration using H5Ovisit
+7 -7
View File
@@ -14,11 +14,11 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_array.h5"
#define DATASET "DS1"
#define DIM0 4
#define ADIM0 3
#define ADIM1 5
#define FILENAME "h5ex_t_array.h5"
#define DATASET "DS1"
#define DIM0 4
#define ADIM0 3
#define ADIM1 5
int
main(void)
@@ -43,7 +43,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create array datatypes for file and memory.
@@ -82,7 +82,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_arrayatt.h5"
#define FILENAME "h5ex_t_arrayatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -44,7 +44,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create array datatypes for file and memory.
@@ -91,7 +91,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+6 -6
View File
@@ -14,10 +14,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_bit.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_bit.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -45,7 +45,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -76,7 +76,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_bitatt.h5"
#define FILENAME "h5ex_t_bitatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -46,7 +46,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset with a scalar dataspace.
@@ -85,7 +85,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+5 -5
View File
@@ -14,9 +14,9 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_cmpd.h5"
#define DATASET "DS1"
#define DIM0 4
#define FILENAME "h5ex_t_cmpd.h5"
#define DATASET "DS1"
#define DIM0 4
typedef struct {
int serial_no;
@@ -59,7 +59,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create variable-length string datatype.
@@ -118,7 +118,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_cmpdatt.h5"
#define FILENAME "h5ex_t_cmpdatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -60,7 +60,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create variable-length string datatype.
@@ -127,7 +127,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+3 -3
View File
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_commit.h5"
#define FILENAME "h5ex_t_commit.h5"
#define DATATYPE "Sensor_Type"
int
@@ -31,7 +31,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create variable-length string datatype.
@@ -70,7 +70,7 @@ main(void)
/*
* Open file.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
/*
* Open the named datatype.
+5 -5
View File
@@ -29,9 +29,9 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_cpxcmpd.h5"
#define DATASET "DS1"
#define DIM0 2
#define FILENAME "h5ex_t_cpxcmpd.h5"
#define DATASET "DS1"
#define DIM0 2
typedef struct {
int serial_no;
@@ -75,7 +75,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset to use for region references.
@@ -245,7 +245,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -29,7 +29,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_cpxcmpdatt.h5"
#define FILENAME "h5ex_t_cpxcmpdatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 2
@@ -76,7 +76,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset to use for region references.
@@ -255,7 +255,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_enum.h5"
#define FILENAME "h5ex_t_enum.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
@@ -47,7 +47,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create the enumerated datatypes for file and memory. This
@@ -101,7 +101,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_enumatt.h5"
#define FILENAME "h5ex_t_enumatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -48,7 +48,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create the enumerated datatypes for file and memory. This
@@ -110,7 +110,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+6 -6
View File
@@ -14,10 +14,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_float.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_float.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -39,7 +39,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -74,7 +74,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_floatatt.h5"
#define FILENAME "h5ex_t_floatatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -41,7 +41,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset with a scalar dataspace.
@@ -84,7 +84,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+6 -6
View File
@@ -14,10 +14,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_int.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_int.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -39,7 +39,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -73,7 +73,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_intatt.h5"
#define FILENAME "h5ex_t_intatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -40,7 +40,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset with a scalar dataspace.
@@ -82,7 +82,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+5 -5
View File
@@ -15,9 +15,9 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_objref.h5"
#define DATASET "DS1"
#define DIM0 2
#define FILENAME "h5ex_t_objref.h5"
#define DATASET "DS1"
#define DIM0 2
int
main(void)
@@ -35,7 +35,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create a dataset with a scalar dataspace.
@@ -88,7 +88,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_objrefatt.h5"
#define FILENAME "h5ex_t_objrefatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 2
@@ -41,7 +41,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create a dataset with a scalar dataspace.
@@ -103,7 +103,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+6 -6
View File
@@ -14,10 +14,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_opaque.h5"
#define DATASET "DS1"
#define DIM0 4
#define LEN 7
#define FILENAME "h5ex_t_opaque.h5"
#define DATASET "DS1"
#define DIM0 4
#define LEN 7
int
main(void)
@@ -48,7 +48,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create opaque datatype and set the tag to something appropriate.
@@ -88,7 +88,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_opaqueatt.h5"
#define FILENAME "h5ex_t_opaqueatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -49,7 +49,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset with a scalar dataspace.
@@ -97,7 +97,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+3 -3
View File
@@ -16,7 +16,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_regref.h5"
#define FILENAME "h5ex_t_regref.h5"
#define DATASET "DS1"
#define DATASET2 "DS2"
#define DIM0 2
@@ -41,7 +41,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create a dataset with character data.
@@ -93,7 +93,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -16,7 +16,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_regrefatt.h5"
#define FILENAME "h5ex_t_regrefatt.h5"
#define DATASET "DS1"
#define DATASET2 "DS2"
#define ATTRIBUTE "A1"
@@ -42,7 +42,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create a dataset with character data.
@@ -103,7 +103,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+6 -6
View File
@@ -14,10 +14,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_string.h5"
#define DATASET "DS1"
#define DIM0 4
#define SDIM 8
#define FILENAME "h5ex_t_string.h5"
#define DATASET "DS1"
#define DIM0 4
#define SDIM 8
int
main(void)
@@ -35,7 +35,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create file and memory datatypes. For this example we will save
@@ -78,7 +78,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_stringatt.h5"
#define FILENAME "h5ex_t_stringatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -36,7 +36,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create file and memory datatypes. For this example we will save
@@ -87,7 +87,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+6 -6
View File
@@ -14,10 +14,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_vlen.h5"
#define DATASET "DS1"
#define LEN0 3
#define LEN1 12
#define FILENAME "h5ex_t_vlen.h5"
#define DATASET "DS1"
#define LEN0 3
#define LEN1 12
int
main(void)
@@ -51,7 +51,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create variable-length datatype for file and memory.
@@ -93,7 +93,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -14,7 +14,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_vlenatt.h5"
#define FILENAME "h5ex_t_vlenatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define LEN0 3
@@ -52,7 +52,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create variable-length datatype for file and memory.
@@ -102,7 +102,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+5 -5
View File
@@ -14,9 +14,9 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_vlstring.h5"
#define DATASET "DS1"
#define DIM0 4
#define FILENAME "h5ex_t_vlstring.h5"
#define DATASET "DS1"
#define DIM0 4
int
main(void)
@@ -33,7 +33,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create file and memory datatypes. For this example we will save
@@ -76,7 +76,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
/*
+3 -3
View File
@@ -15,7 +15,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_vlstringatt.h5"
#define FILENAME "h5ex_t_vlstringatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -35,7 +35,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create file and memory datatypes. For this example we will save
@@ -86,7 +86,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET);
attr = H5Aopen_name(dset, ATTRIBUTE);
+6 -6
View File
@@ -16,10 +16,10 @@
#include <stdlib.h>
#include <complex.h>
#define FILE "h5ex_t_complex.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_complex.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -45,7 +45,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -80,7 +80,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
@@ -16,10 +16,10 @@
#include <stdlib.h>
#include <complex.h>
#define FILE "h5ex_t_complex_custom.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_complex_custom.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -45,7 +45,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -87,7 +87,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+6 -6
View File
@@ -17,10 +17,10 @@
#include <stdlib.h>
#include <complex.h>
#define FILE "h5ex_t_complex_msvc.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_complex_msvc.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -46,7 +46,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -81,7 +81,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+16 -6
View File
@@ -97,18 +97,18 @@ endforeach ()
# endif ()
# endforeach ()
#endif ()
#if (HDF5_VERSION_MAJOR VERSION_GREATER_EQUAL "2.0")
# foreach (example_name ${2_0_examples})
# if (H5EX_BUILD_TESTING)
if (HDF5_VERSION_MAJOR VERSION_GREATER_EQUAL "2.0")
foreach (example_name ${2_0_examples})
if (H5EX_BUILD_TESTING)
# add_custom_command (
# TARGET ${EXAMPLE_VARNAME}_${example_name}
# POST_BUILD
# COMMAND ${CMAKE_COMMAND}
# ARGS -E copy_if_different ${PROJECT_SOURCE_DIR}/tfiles/200/${example_name}.tst ${PROJECT_BINARY_DIR}/${example_name}.tst
# )
# endif ()
# endforeach ()
#endif ()
endif ()
endforeach ()
endif ()
if (HDF5_BUILD_TOOLS)
foreach (example_name ${common_examples})
@@ -337,6 +337,12 @@ if (HDF5_BUILD_TOOLS)
# foreach (example_name ${1_14_examples})
# endforeach ()
# foreach (example_name ${2_0_examples})
# add_custom_command (
# TARGET ${EXAMPLE_VARNAME}_${example_name}
# POST_BUILD
# COMMAND ${CMAKE_COMMAND}
# ARGS -E copy_if_different ${PROJECT_SOURCE_DIR}/tfiles/200/${example_name}.ddl ${PROJECT_BINARY_DIR}/${example_name}.ddl
# )
# endforeach ()
endif ()
@@ -422,4 +428,8 @@ if (H5EX_BUILD_TESTING)
ADD_H5_TEST (${example_name})
endif ()
endforeach ()
# foreach (example_name ${2_0_examples})
# ADD_H5_TEST (${example_name})
# endforeach ()
endif ()
+6
View File
@@ -31,3 +31,9 @@ set (common_examples
h5ex_t_commit
h5ex_t_convert
)
set (2_0_examples
h5ex_t_complex
h5ex_t_complex_custom
h5ex_t_complex_msvc
)
+7 -7
View File
@@ -12,11 +12,11 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_array.h5"
#define DATASET "DS1"
#define DIM0 4
#define ADIM0 3
#define ADIM1 5
#define FILENAME "h5ex_t_array.h5"
#define DATASET "DS1"
#define DIM0 4
#define ADIM0 3
#define ADIM1 5
int
main(void)
@@ -47,7 +47,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create array datatypes for file and memory.
@@ -86,7 +86,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+3 -3
View File
@@ -12,7 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_arrayatt.h5"
#define FILENAME "h5ex_t_arrayatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -49,7 +49,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create array datatypes for file and memory.
@@ -96,7 +96,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
attr = H5Aopen(dset, ATTRIBUTE, H5P_DEFAULT);
+6 -6
View File
@@ -12,10 +12,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_bit.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_bit.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -44,7 +44,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -75,7 +75,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+3 -3
View File
@@ -12,7 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_bitatt.h5"
#define FILENAME "h5ex_t_bitatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -45,7 +45,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset with a null dataspace.
@@ -84,7 +84,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
attr = H5Aopen(dset, ATTRIBUTE, H5P_DEFAULT);
+5 -5
View File
@@ -12,9 +12,9 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_cmpd.h5"
#define DATASET "DS1"
#define DIM0 4
#define FILENAME "h5ex_t_cmpd.h5"
#define DATASET "DS1"
#define DIM0 4
typedef struct {
int serial_no;
@@ -58,7 +58,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create variable-length string datatype.
@@ -117,7 +117,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+3 -3
View File
@@ -12,7 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_cmpdatt.h5"
#define FILENAME "h5ex_t_cmpdatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -59,7 +59,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create variable-length string datatype.
@@ -126,7 +126,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
attr = H5Aopen(dset, ATTRIBUTE, H5P_DEFAULT);
+3 -3
View File
@@ -13,7 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_commit.h5"
#define FILENAME "h5ex_t_commit.h5"
#define DATATYPE "Sensor_Type"
int
@@ -29,7 +29,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create variable-length string datatype.
@@ -68,7 +68,7 @@ main(void)
/*
* Open file.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
/*
* Open the named datatype.
+5 -5
View File
@@ -27,9 +27,9 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_cpxcmpd.h5"
#define DATASET "DS1"
#define DIM0 2
#define FILENAME "h5ex_t_cpxcmpd.h5"
#define DATASET "DS1"
#define DIM0 2
typedef struct {
int serial_no;
@@ -74,7 +74,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset to use for region references.
@@ -245,7 +245,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+3 -3
View File
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_cpxcmpdatt.h5"
#define FILENAME "h5ex_t_cpxcmpdatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 2
@@ -75,7 +75,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset to use for region references.
@@ -255,7 +255,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
attr = H5Aopen(dset, ATTRIBUTE, H5P_DEFAULT);
+3 -3
View File
@@ -12,7 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_enum.h5"
#define FILENAME "h5ex_t_enum.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
@@ -46,7 +46,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create the enumerated datatypes for file and memory. This
@@ -100,7 +100,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+3 -3
View File
@@ -12,7 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_enumatt.h5"
#define FILENAME "h5ex_t_enumatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -47,7 +47,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create the enumerated datatypes for file and memory. This
@@ -109,7 +109,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
attr = H5Aopen(dset, ATTRIBUTE, H5P_DEFAULT);
+6 -6
View File
@@ -12,10 +12,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_float.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_float.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -38,7 +38,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -73,7 +73,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*
+3 -3
View File
@@ -12,7 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_floatatt.h5"
#define FILENAME "h5ex_t_floatatt.h5"
#define DATASET "DS1"
#define ATTRIBUTE "A1"
#define DIM0 4
@@ -40,7 +40,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataset with a null dataspace.
@@ -83,7 +83,7 @@ main(void)
/*
* Open file, dataset, and attribute.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
attr = H5Aopen(dset, ATTRIBUTE, H5P_DEFAULT);
+6 -6
View File
@@ -12,10 +12,10 @@
#include <stdio.h>
#include <stdlib.h>
#define FILE "h5ex_t_int.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
#define FILENAME "h5ex_t_int.h5"
#define DATASET "DS1"
#define DIM0 4
#define DIM1 7
int
main(void)
@@ -38,7 +38,7 @@ main(void)
/*
* Create a new file using the default properties.
*/
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
file = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Create dataspace. Setting maximum size to NULL sets the maximum
@@ -72,7 +72,7 @@ main(void)
/*
* Open file and dataset.
*/
file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
file = H5Fopen(FILENAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dset = H5Dopen(file, DATASET, H5P_DEFAULT);
/*

Some files were not shown because too many files have changed in this diff Show More