From 2b59b42447aea84dfee60f905989a1506cb9fce4 Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Mon, 4 Aug 2003 13:25:41 -0500 Subject: [svn-r7283] Purpose: Enhancement Description: This example writes extendible dataset and doesn't use fill value. On some systems (verebena, titan) unwritten data will be displayed as garbage by h5_chunk_read. Solution: Use H5Pset_fill_value to set 0 fill value. Platforms tested: arabica, verbena, titan Misc. update: --- examples/h5_extend_write.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c index 133e2aa..3320544 100644 --- a/examples/h5_extend_write.c +++ b/examples/h5_extend_write.c @@ -43,6 +43,7 @@ main (void) int data3[2][2] = { {3, 3}, {3, 3} }; + int fillvalue = 0; /* * Create the data space with unlimited dimensions. @@ -59,6 +60,7 @@ main (void) */ cparms = H5Pcreate(H5P_DATASET_CREATE); status = H5Pset_chunk( cparms, RANK, chunk_dims); + status = H5Pset_fill_value (cparms, H5T_NATIVE_INT, &fillvalue ); /* * Create a new dataset within the file using cparms -- cgit v0.12