Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Typedef struct {
  2. double re; /*real part */
  3. double im; /*imaginary part */
  4. } complex_t;
  5.  
  6. complex_t tmp; /*used only to compute offsets */
  7. hid_t complex_id = H5Tcreate (H5T_COMPOUND, sizeof tmp);
  8. H5Tinsert (complex_id, "real", HOFFSET(tmp,re),
  9. H5T_NATIVE_DOUBLE);
  10. H5Tinsert (complex_id, "imaginary", HOFFSET(tmp,im),
  11. H5T_NATIVE_DOUBLE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement