Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

 

JAVA

FORTRAN

C++

C

 

Link

H5P_SET_SHARED_MESG_INDEX

Configures the specified shared object header message index.

Procedure:

H5P_SET_SHARED_MESG_INDEX ( fcpl_id, index_num, mesg_type_flags, min_mesg_size )

Signature:

herr_t H5Pset_shared_mesg_index(
        hid_t fcpl_id,
        unsigned index_num,
        unsigned mesg_type_flags,
        unsigned min_mesg_size
    )
  

Fortran90 Interface: h5pset_shared_mesg_index_f
   
SUBROUTINE h5pset_shared_mesg_index_f(fcpl_id, index_num, mesg_type_flags,    &
           min_mesg_size, hdferr)
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: fcpl_id  ! File creation property list
  INTEGER, INTENT(IN) :: index_num       ! Index being configured.
  INTEGER, INTENT(IN) :: mesg_type_flags ! Types of messages that should be 
                                         ! stored in this index.
  INTEGER, INTENT(IN) :: min_mesg_size   ! Minimum message size.
  INTEGER, INTENT(OUT) :: hdferr         ! Error code
                                         ! 0 on success and -1 on failure
END SUBROUTINE h5pset_shared_mesg_index_f
    

Replace this text with the C++ Function Signature

Replace this text with the JAVA Function Signature

Parameters:
hid_t fcpl_idIN: File creation property list identifier.
unsigned index_numIN: Index being configured.
unsigned mesg_type_flags    IN: Types of messages that should be stored in this index.
unsigned min_mesg_sizeIN: Minimum message size.

Description:

H5Pset_shared_mesg_index is used to configure the specified shared object header message index, setting the types of messages that may be stored in the index and the minimum size of each message.

fcpl_id specifies the file creation property list.

index_num specifies the index to be configured. index_num is zero-indexed, so in a file with three indexes, they will be numbered 0, 1, and 2.

mesg_type_flags and min_mesg_size specify, respectively, the types and minimum size of messages that can be stored in this index.

Valid message types are as follows:

 

H5O_SHMESG_NONE_FLAGNo shared messages
H5O_SHMESG_SDSPACE_FLAG    Simple dataspace message
H5O_SHMESG_DTYPE_FLAGDatatype message
H5O_SHMESG_FILL_FLAGFill value message
H5O_SHMESG_PLINE_FLAGFilter pipeline message
H5O_SHMESG_ATTR_FLAGAttribute message
H5O_SHMESG_ALL_FLAGAll message types; i.e., equivalent to the following:
(H5O_SHMESG_SDSPACE_FLAG | H5O_SHMESG_DTYPE_FLAG | H5O_SHMESG_FILL_FLAG | H5O_SHMESG_PLINE_FLAG | H5O_SHMESG_ATTR_FLAG)

Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Example:

examples / h5_subset.c [32:42]
 1.10/master  HDFFV/hdf5  Copy
int
main (void)
{
    hsize_t     dims[2], dimsm[2];   
    int         data[DIM0][DIM1];           /* data to write */
    int         sdata[DIM0_SUB][DIM1_SUB];  /* subset to write */
    int         rdata[DIM0][DIM1];          /* buffer for read */
 
    hid_t       file_id, dataset_id;        /* handles */
    hid_t       dataspace_id, memspace_id; 

fortran / examples / compound.f90 [25:35]
 1.10/master  HDFFV/hdf5  Copy
     PROGRAM COMPOUNDEXAMPLE

     USE HDF5 ! This module contains all necessary modules

     IMPLICIT NONE

     CHARACTER(LEN=11), PARAMETER :: filename = "compound.h5" ! File name
     CHARACTER(LEN=8), PARAMETER :: dsetname = "Compound"     ! Dataset name
     INTEGER, PARAMETER :: dimsize = 6 ! Size of the dataset

     INTEGER(HID_T) :: file_id       ! File identifier

c++ / examples / create.cpp [33:43]
 1.10/master  HDFFV/hdf5  Copy
int main (void)
{
   /*
    * Data initialization.
    */
   int i, j;
   int data[NX][NY];          // buffer for data to write
   for (j = 0; j < NX; j++)
   {
      for (i = 0; i < NY; i++)

public class H5Ex_D_Chunk {
    private static String FILENAME = "H5Ex_D_Chunk.h5";
    private static String DATASETNAME = "DS1";
    private static final int DIM_X = 6;
    private static final int DIM_Y = 8;
    private static final int CHUNK_X = 4;
    private static final int CHUNK_Y = 4;
    private static final int RANK = 2;
    private static final int NDIMS = 2;

History:
Release    C
1.8.0Function introduced in this release.

--- Last Modified: November 16, 2017 | 09:34 AM