moab
Adjacency data.

Functions

hid_t mhdf_createAdjacency (mhdf_FileHandle file_handle, const char *elem_handle, long adj_list_size, mhdf_Status *status)
 Create adjacency data table for nodes, elements, polys, etc.
int mhdf_haveAdjacency (mhdf_FileHandle file, const char *elem_handle, mhdf_Status *status)
 Check if adjacency data is present in the file for the specified element group.
hid_t mhdf_openAdjacency (mhdf_FileHandle file_handle, const char *elem_handle, long *adj_list_size, mhdf_Status *status)
 Open adjacency data table for nodes, elements, polys, etc.
void mhdf_writeAdjacency (hid_t data_handle, long offset, long count, hid_t hdf_integer_type, const void *adj_list_data, mhdf_Status *status)
 Write node/element adjacency data.
void mhdf_writeAdjacencyWithOpt (hid_t data_handle, long offset, long count, hid_t hdf_integer_type, const void *adj_list_data, hid_t write_prop, mhdf_Status *status)
void mhdf_readAdjacency (hid_t data_handle, long offset, long count, hid_t hdf_integer_type, void *adj_list_data_out, mhdf_Status *status)
 Read node/element adjacency data.
void mhdf_readAdjacencyWithOpt (hid_t data_handle, long offset, long count, hid_t hdf_integer_type, void *adj_list_data_out, hid_t read_prop, mhdf_Status *status)

Detailed Description

Adjacency data is formated as a sequence of integer groups where the first entry in each group is the ID of the element for which adjacencies are being specified, the second value is the count of adjacent entities, and the remainder of the group is the list of IDs of the adjacent entities.


Function Documentation

hid_t mhdf_createAdjacency ( mhdf_FileHandle  file_handle,
const char *  elem_handle,
long  adj_list_size,
mhdf_Status status 
)

Create adjacency data table for nodes, elements, polys, etc.

Create file object for adjacency data for a nodes or a specified element group.

Adjacency data is formated as a sequence of integer groups where the first entry in each group is the ID of the element for which adjacencies are being specified, the second value is the count of adjacent entities, and the remainder of the group is the list of IDs of the adjacent entities.

Parameters:
file_handleThe file.
elem_handleThe element group (or the result of mhdf_node_type_handle for nodes) for which the adjacency data is to be specified.
adj_list_sizeThe total number of integer values contained in the adjacency data for the specified element group.
statusPassed back status of API call.
Returns:
The HDF5 handle to the connectivity data.
int mhdf_haveAdjacency ( mhdf_FileHandle  file,
const char *  elem_handle,
mhdf_Status status 
)

Check if adjacency data is present in the file for the specified element group.

Parameters:
fileThe file.
elem_handleA handle to an element group.
statusPassed back status of API call.
hid_t mhdf_openAdjacency ( mhdf_FileHandle  file_handle,
const char *  elem_handle,
long *  adj_list_size,
mhdf_Status status 
)

Open adjacency data table for nodes, elements, polys, etc.

Open the file object containing adjacency data for a nodes or a specified element group.

Adjacency data is formated as a sequence of integer groups where the first entry in each group is the ID of the element for which adjacencies are being specified, the second value is the count of adjacent entities, and the remainder of the group is the list of IDs of the adjacent entities.

Parameters:
file_handleThe file.
elem_handleThe element group (or the result of mhdf_node_type_handle for nodes) for which the adjacency data is to be specified.
adj_list_sizeThe total number of integer values contained in the adjacency data for the specified element group.
statusPassed back status of API call.
Returns:
The HDF5 handle to the connectivity data.
void mhdf_readAdjacency ( hid_t  data_handle,
long  offset,
long  count,
hid_t  hdf_integer_type,
void *  adj_list_data_out,
mhdf_Status status 
)

Read node/element adjacency data.

Read adjacency data.

Adjacency data is formated as a sequence of integer groups where the first entry in each group is the ID of the element for which adjacencies are being specified, the second value is the count of adjacent entities, and the remainder of the group is the list of IDs of the adjacent entities.

Parameters:
data_handleHandle returned from mhdf_createAdjacency or mhdf_openAdjacency.
offsetList position at which to start reading. Offset is from the count if integer values written, NOT a count of the number of elements for which adjacency data is written.
countNumber of integer values to reading.
hdf_integer_typeThe type of the integer data in adj_list_data_out. Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER
adj_list_data_outPointer to memory at which to write adjacency data.
statusPassed back status of API call.
void mhdf_readAdjacencyWithOpt ( hid_t  data_handle,
long  offset,
long  count,
hid_t  hdf_integer_type,
void *  adj_list_data_out,
hid_t  read_prop,
mhdf_Status status 
)
void mhdf_writeAdjacency ( hid_t  data_handle,
long  offset,
long  count,
hid_t  hdf_integer_type,
const void *  adj_list_data,
mhdf_Status status 
)

Write node/element adjacency data.

Write adjacency data.

Adjacency data is formated as a sequence of integer groups where the first entry in each group is the ID of the element for which adjacencies are being specified, the second value is the count of adjacent entities, and the remainder of the group is the list of IDs of the adjacent entities.

Parameters:
data_handleHandle returned from mhdf_createAdjacency or mhdf_openAdjacency.
offsetList position at which to start writing. Offset is from the count if integer values written, NOT a count of the number of elements for which adjacency data is written.
countNumber of integer values to write.
hdf_integer_typeThe type of the integer data in adj_list_data. Typically H5T_NATIVE_INT or N5T_NATIVE_LONG as defined in H5Tpublic.h. The HDF class of this type object must be H5T_INTEGER
adj_list_dataAdjacency data to write.
statusPassed back status of API call.
void mhdf_writeAdjacencyWithOpt ( hid_t  data_handle,
long  offset,
long  count,
hid_t  hdf_integer_type,
const void *  adj_list_data,
hid_t  write_prop,
mhdf_Status status 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines