Exodus  7.10
ex_get_partial_coord_component.c File Reference
#include "exodusII.h"
#include "exodusII_int.h"
#include "netcdf.h"
#include <inttypes.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>

Functions

int ex_get_partial_coord_component (int exoid, int64_t start_node_num, int64_t num_nodes, int component, void *coor)
 

Function Documentation

◆ ex_get_partial_coord_component()

int ex_get_partial_coord_component ( int  exoid,
int64_t  start_node_num,
int64_t  num_nodes,
int  component,
void *  coor 
)

reads the coordinates of some of the nodes in the model for the specified component Memory must be allocated for the coordinate array (coor) before this call is made. The length of the array is at least num_nodes Because the coordinates are floating point values, the application code must declare the array passed to be the appropriate type "float" or "double" to match the compute word size passed in ex_create() or ex_open()

Parameters
exoidexodus file id
start_node_numthe starting index of the coordinates to be returned.
num_nodesthe number of nodes to read coordinates for.
componentwhich component (1=X, 2=Y, 3=Z)
[out]coorReturned coordinate of the nodes for the specified component.