Back to index

salome-kernel  6.5.0
Functions
HDFdatasetGetnDim.c File Reference
#include "hdfi.h"
#include <hdf5.h>

Go to the source code of this file.

Functions

int HDFdatasetGetnDim (hdf_idt id)

Function Documentation

Definition at line 33 of file HDFdatasetGetnDim.c.

{
  int ndim;
  hdf_idt space_id;
  hdf_err ret;

  if ((space_id = H5Dget_space(id)) < 0)
    return -1;

  if ((ndim = H5Sget_simple_extent_ndims(space_id)) < 0)
    return -1;

  if ((ret = H5Sclose(space_id)) < 0)
    return -1;

  return ndim;
}

Here is the caller graph for this function: