Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: compound types on different machines - is this expected?

NOTE: The netcdf-hdf mailing list is no longer active. The list archives are made available for historical reasons.

Quincey Koziol <koziol@xxxxxxxxxxxxx> writes:

> Hi Ed,
>
>> Elena Pourmal <epourmal@xxxxxxxxxxxxx> writes:
>> 
>> > Here is an example how to use H5Teeth_native instead of constructing 
>> > memory type
>> >
>> > http://hdf.ncsa.uiuc.edu/training/other-ex5/h5nestc.c
>> >
>> 

... snip ...

>     As part of the process of building the library, we generate information
> about the compiler's padding for fields in compound types.  H5Tget_native_type
> uses that information to translate a non-native compound type into a native
> compound type.
>
>     Quincey

If I understand you correctly, I need only call this function and all
my inter-machine packing problems go away.

Thanks for providing H5Tget_native_type. It's very convenient!

Ed

-- 
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx


  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-hdf archives: