diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-08-26 00:28:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 00:28:23 (GMT) |
commit | 4576b3db8b19d8ea2cc949585f4ef292ddef37a0 (patch) | |
tree | 3b507e711b42650cc40dc1b183c5872bd6f6d5a0 /hl/examples/ex_table_11.c | |
parent | 54b92c122dcd1340dc678f586647997b3e4c86fe (diff) | |
download | hdf5-4576b3db8b19d8ea2cc949585f4ef292ddef37a0.zip hdf5-4576b3db8b19d8ea2cc949585f4ef292ddef37a0.tar.gz hdf5-4576b3db8b19d8ea2cc949585f4ef292ddef37a0.tar.bz2 |
Merge of examples and hl from dev (#964)
Diffstat (limited to 'hl/examples/ex_table_11.c')
-rw-r--r-- | hl/examples/ex_table_11.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hl/examples/ex_table_11.c b/hl/examples/ex_table_11.c index 9bf3927..6b38b95 100644 --- a/hl/examples/ex_table_11.c +++ b/hl/examples/ex_table_11.c @@ -38,10 +38,10 @@ main(void) } Particle1; /* Define an array of Particles */ - Particle1 p_data[NRECORDS] = {{"zero", 0, 0, 0.0f, 0.0}, {"one", 10, 10, 1.0f, 10.0}, - {"two", 20, 20, 2.0f, 20.0}, {"three", 30, 30, 3.0f, 30.0}, - {"four", 40, 40, 4.0f, 40.0}, {"five", 50, 50, 5.0f, 50.0}, - {"six", 60, 60, 6.0f, 60.0}, {"seven", 70, 70, 7.0f, 70.0}}; + Particle1 p_data[NRECORDS] = {{"zero", 0, 0, 0.0F, 0.0}, {"one", 10, 10, 1.0F, 10.0}, + {"two", 20, 20, 2.0F, 20.0}, {"three", 30, 30, 3.0F, 30.0}, + {"four", 40, 40, 4.0F, 40.0}, {"five", 50, 50, 5.0F, 50.0}, + {"six", 60, 60, 6.0F, 60.0}, {"seven", 70, 70, 7.0F, 70.0}}; /* Calculate the size and the offsets of our struct members in memory */ size_t dst_size1 = sizeof(Particle1); @@ -56,7 +56,7 @@ main(void) hid_t file_id; hsize_t chunk_size = 10; int compress = 0; - Particle1 fill_data[1] = {{"no data", -1, -1, -99.0f, -99.0}}; + Particle1 fill_data[1] = {{"no data", -1, -1, -99.0F, -99.0}}; int fill_data_new[1] = {-100}; hsize_t position; hsize_t nfields_out; |