[hdf-forum] xyz=C++, zyx=Fortran

Jens jens-devel at gmx.de
Fri Jun 5 07:39:33 EDT 2009


Hi everyone,

if you create a 3d-array(i,j,k) and use HDF5-library to dump it to disk,
it will look different depending on the application-language:

Fortran-App (=ZYX-style)
  [iii][iii][iii]  [iii][iii][iii]  [iii][iii][iii]
 [       j       ][       j       ][       j       ]
[                         k                         ]

C/C++-App (=XYZ-style)
  [kkk][kkk][kkk]  [kkk][kkk][kkk]  [kkk][kkk][kkk]
 [       j       ][       j       ][       j       ]
[                         i                         ]


Is there any possibility to tell hdf5 what array-style the application
is using?
The same way I can jump from little-endian- to big-endian-machines, I
would like to jump from Fortran-Apps to C++Apps.

Greetings
Jens


----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe at hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe at hdfgroup.org.





More information about the Hdf-forum mailing list