#include <H5Tpublic.h>
#include <H5Dpublic.h>
#include <H5Ppublic.h>
#include <H5Gpublic.h>
#include "mhdf.h"
#include "status.h"
#include "names-and-paths.h"
#include "util.h"
#include "file-handle.h"
Go to the source code of this file.
Functions | |
int | mhdf_haveNodes (mhdf_FileHandle file, mhdf_Status *status) |
hid_t | mhdf_createNodeCoords (mhdf_FileHandle file_handle, int dimension, long num_nodes, long *first_id_out, mhdf_Status *status) |
Create new table for node coordinate data. More... | |
hid_t | mhdf_openNodeCoords (mhdf_FileHandle file_handle, long *num_nodes_out, int *dimension_out, long *first_id_out, mhdf_Status *status) |
Open table containing node coordinate data. More... | |
hid_t | mhdf_openNodeCoordsSimple (mhdf_FileHandle file_handle, mhdf_Status *status) |
void | mhdf_writeNodeCoords (hid_t table_id, long offset, long count, const double *coords, mhdf_Status *status) |
Write node coordinate data. More... | |
void | mhdf_writeNodeCoordsWithOpt (hid_t table_id, long offset, long count, const double *coords, hid_t prop, mhdf_Status *status) |
void | mhdf_readNodeCoords (hid_t table_id, long offset, long count, double *coords, mhdf_Status *status) |
Read node coordinate data. More... | |
void | mhdf_readNodeCoordsWithOpt (hid_t table_id, long offset, long count, double *coords, hid_t prop, mhdf_Status *status) |
void | mhdf_writeNodeCoord (hid_t table_id, long offset, long count, int dimension, const double *coords, mhdf_Status *status) |
Write node coordinate data. More... | |
void | mhdf_writeNodeCoordWithOpt (hid_t table_id, long offset, long count, int dimension, const double *coords, hid_t prop, mhdf_Status *status) |
void | mhdf_readNodeCoord (hid_t table_id, long offset, long count, int dimension, double *coords, mhdf_Status *status) |
Read node coordinate data. More... | |
void | mhdf_readNodeCoordWithOpt (hid_t table_id, long offset, long count, int dimension, double *coords, hid_t prop, mhdf_Status *status) |
hid_t mhdf_createNodeCoords | ( | mhdf_FileHandle | file_handle, |
int | dimension, | ||
long | num_nodes, | ||
long * | first_node_id_out, | ||
mhdf_Status * | status | ||
) |
Create new table for node coordinate data.
file_handle | The file. |
dimension | Number of coordinate values per node. |
num_nodes | The number of nodes the table will contain. |
first_node_id_out | Nodes are assigned IDs sequentially in the order they occur in the table, where the ID of the first node in the table is this passed-back value. |
status | Passed back status of API call. |
Definition at line 72 of file nodes.c.
References API_BEGIN, API_END_H, struct_FileHandle::hdf_handle, struct_FileHandle::max_id, mhdf_check_valid_file(), mhdf_create_scalar_attrib(), mhdf_create_table(), mhdf_setFail(), mhdf_setOkay(), mhdf_write_max_id(), NODE_COORD_PATH, struct_FileHandle::open_handle_count, and START_ID_ATTRIB.
Referenced by moab::WriteHDF5Parallel::create_node_table(), and moab::WriteHDF5::serial_create_file().
int mhdf_haveNodes | ( | mhdf_FileHandle | file, |
mhdf_Status * | status | ||
) |
MOAB, a Mesh-Oriented datABase, is a software component for creating, storing and accessing finite element mesh data.
Copyright 2004 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
Definition at line 26 of file nodes.c.
References API_BEGIN, API_END, struct_FileHandle::hdf_handle, mhdf_check_valid_file(), mhdf_is_in_group(), mhdf_setFail(), mhdf_setOkay(), NODE_COORD_NAME, NODE_GROUP, NODE_GROUP_NAME, and ROOT_GROUP.
Referenced by mhdf_getFileSummary().
hid_t mhdf_openNodeCoords | ( | mhdf_FileHandle | file_handle, |
long * | num_nodes_out, | ||
int * | dimension_out, | ||
long * | first_node_id_out, | ||
mhdf_Status * | status | ||
) |
Open table containing node coordinate data.
file_handle | The file. |
dimension_out | Number of coordinate values per node. |
num_nodes_out | The number of nodes the table contains. |
first_node_id_out | Nodes are assigned IDs sequentially in the order they occur in the table, where the ID of the first node in the table is this passed-back value. |
status | Passed back status of API call. |
Definition at line 118 of file nodes.c.
References API_BEGIN, API_END_H, struct_FileHandle::hdf_handle, mhdf_check_valid_file(), mhdf_open_table2(), mhdf_setOkay(), NODE_COORD_PATH, and struct_FileHandle::open_handle_count.
Referenced by main(), mhdf_getFileSummary(), and moab::WriteHDF5::write_nodes().
hid_t mhdf_openNodeCoordsSimple | ( | mhdf_FileHandle | file_handle, |
mhdf_Status * | status | ||
) |
Definition at line 142 of file nodes.c.
References API_BEGIN, API_END_H, struct_FileHandle::hdf_handle, mhdf_check_valid_file(), mhdf_open_table_simple(), mhdf_setOkay(), NODE_COORD_PATH, and struct_FileHandle::open_handle_count.
Referenced by moab::ReadHDF5::read_nodes().
void mhdf_readNodeCoord | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
int | dimension, | ||
double * | coords, | ||
mhdf_Status * | status | ||
) |
Read node coordinate data.
Read a single coordinate value (e.g. the 'x' coordinate) for a block of nodes.
data_handle | Handle returned from mhdf_createNodeCoords or mhdf_openNodeCoords . |
offset | Table row (node index) at which to start reading. |
count | Number of rows (number of nodes) to read. |
dimension | The coordinate to read (0->x, 1->y, ...) |
coords | Buffer in which to write node coordinate data. |
status | Passed back status of API call. |
Definition at line 219 of file nodes.c.
References API_BEGIN, API_END, and mhdf_read_column().
void mhdf_readNodeCoords | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
double * | coordinates, | ||
mhdf_Status * | status | ||
) |
Read node coordinate data.
Read interleaved coordinate data for a block of nodes
data_handle | Handle returned from mhdf_createNodeCoords or mhdf_openNodeCoords . |
offset | Table row (node index) at which to start reading. |
count | Number of rows (number of nodes) to read. |
coordinates | Buffer in which to write node coordinate data. |
status | Passed back status of API call. |
Definition at line 177 of file nodes.c.
References API_BEGIN, API_END, and mhdf_read_data().
Referenced by main().
void mhdf_readNodeCoordsWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
double * | coords, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
void mhdf_readNodeCoordWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
int | dimension, | ||
double * | coords, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
Definition at line 225 of file nodes.c.
References API_BEGIN, API_END, and mhdf_read_column().
void mhdf_writeNodeCoord | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
int | dimension, | ||
const double * | coords, | ||
mhdf_Status * | status | ||
) |
Write node coordinate data.
Write a single coordinate value (e.g. the 'x' coordinate) for a block of nodes.
data_handle | Handle returned from mhdf_createNodeCoords or mhdf_openNodeCoords . |
offset | Table row (node index) at which to start writing. |
count | Number of rows (number of nodes) to write. |
dimension | The coordinate to write (0->x, 1->y, ...) |
coords | Coordinate list. |
status | Passed back status of API call. |
Definition at line 195 of file nodes.c.
References API_BEGIN, API_END, and mhdf_write_column().
void mhdf_writeNodeCoords | ( | hid_t | data_handle, |
long | offset, | ||
long | count, | ||
const double * | coords, | ||
mhdf_Status * | status | ||
) |
Write node coordinate data.
Write interleaved coordinate data for a block of nodes
data_handle | Handle returned from mhdf_createNodeCoords or mhdf_openNodeCoords . |
offset | Table row (node index) at which to start writing. |
count | Number of rows (number of nodes) to write. |
coords | Interleaved node coordinate data. |
status | Passed back status of API call. |
Definition at line 159 of file nodes.c.
References API_BEGIN, API_END, and mhdf_write_data().
void mhdf_writeNodeCoordsWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
const double * | coords, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
Definition at line 165 of file nodes.c.
References API_BEGIN, API_END, and mhdf_write_data().
Referenced by moab::WriteHDF5::write_nodes().
void mhdf_writeNodeCoordWithOpt | ( | hid_t | table_id, |
long | offset, | ||
long | count, | ||
int | dimension, | ||
const double * | coords, | ||
hid_t | prop, | ||
mhdf_Status * | status | ||
) |
Definition at line 206 of file nodes.c.
References API_BEGIN, API_END, and mhdf_write_column().
Referenced by moab::WriteHDF5::write_nodes().