Check whether the library’s default conversion is hard conversion

Procedure:

H5T_COMPILER_CONV(src_id, dst_id)

Signature:

<pre><code class="language-c">htri_t H5Tcompiler_conv(hid_t src_id, hid_t dst_id)</code></pre>

<pre><code class="language-fortran">SUBROUTINE h5tcompiler_conv_f( src_id, dst_id, flag, hdferr)
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: src_id ! Id for the source datatype.
  INTEGER(HID_T), INTENT(IN) :: dst_id ! Id for the destination datatype.
  LOGICAL, INTENT(OUT) :: flag         !   .TRUE. for compiler conversion, 
                                       !   .FALSE. for library conversion
  INTEGER, INTENT(OUT) :: hdferr       ! Error code:
                                       ! 0 on success and -1 on failure
END SUBROUTINE h5tcompiler_conv_f</code></pre>

Parameters:
hid_t src_id    IN: Identifier for the source datatype
hid_t dst_idIN: Identifier for the destination datatype

Description:

 H5T_COMPILER_CONV finds out whether the library’s conversion function from type src_id to type dst_id is a compiler (hard) conversion. A compiler conversion uses compiler’s casting; a library (soft) conversion uses the library’s own conversion function.

Returns:

Returns a positive value if a compiler conversion was used. 
Returns 0 if a library conversion was used. 
Returns a negative value when the function fails.

Example:

Coming Soon!