Source
dset = H5Dcreate2(fid, "DS_chunked_layout_3", H5T_NATIVE_FLOAT, space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the COPYING file, which can be found at the root of the source code *
* distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
* If you do not have access to either file, you may request a copy from *
* help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
* Purpose: This program is to generate HDF5 data files used to test
* version bounds.
*
* Description
* ===========
* gen_bounds.c will generate the following files:
* - bounds_earliest_latest.h5
* - bounds_earliest_v18.h5
* - bounds_latest_latest.h5
* - bounds_v18_latest.h5
* - bounds_v18_v18.h5
* These files are copied to 1.6 and 1.8 libraries for verifying
* that they can or cannot read particular file format.
*/
/***********************************************************************
* gen_earliest_latest() creates file "bounds_earliest_latest.h5"
*
* File contents:
* - Version 0 superblock (default)
* - A chunked dataset with layout version 3, "DS_chunked_layout_3". (default)
* - A chunked dataset with layout version 4, "DS_chunked_layout_4". (H5Pset_chunk_opts)
*
* Return: SUCCEED/FAIL
*
***********************************************************************/
/* File names for different file format */
/* 2-D dataset with fixed dimensions */