summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/C/Perf/h5slab.h
blob: c33feb7503000b995fde95ddb1d26876dc904f47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * All rights reserved.                                                      *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Common definitions used by h5slab example programs (h5slabread, h5slabwrite).
 *
 * Created by Albert Cheng 2010/7/13.
 */
#include <stdlib.h>
#include <string.h>
#include "hdf5.h"
#if 1
#define NX 65536
#define NY 65536 /* dataset dimensions */
#define CX 256   /* height of hyperslab */
#define CY 4096  /* width of hyperslab */
#else
#define NX 256
#define NY 256 /* dataset dimensions */
#define CX 32  /* height of hyperslab */
#define CY 16  /* width of hyperslab */
#endif
#define RC (NX / CX)
#define CC (NY / CY)