Debian Codegraph @

packages/seacas/libraries/exodus/src/deprecated/ex_get_n_coord.c

raw
1 /*
2 * Copyright(C) 1999-2020 National Technology & Engineering Solutions
3 * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4 * NTESS, the U.S. Government retains certain rights in this software.
5 *
6 * See packages/seacas/LICENSE for details
7 */
8 /*****************************************************************************
9 *
10 * exgcor - ex_get_n_coord
11 *
12 * entry conditions -
13 * input parameters:
14 * int exoid exodus file id
15 * int start_node_num starting index of coordinates to be
16 *returned.
17 * int num_nodes number of nodes to read coordinates for.
18 *
19 * exit conditions -
20 * float* x_coord X coord array
21 * float* y_coord y coord array
22 * float* z_coord z coord array
23 *
24 * revision history -
25 *
26 *
27 *****************************************************************************/
28
29 #include "exodusII.h" // for ex_get_partial_coord
30
31 /*!
32 * \deprecated Use ex_get_partial_coord()(exoid, start_node_num, num_nodes, x_coor, y_coor,
33 * z_coor) instead reads the coordinates of the nodes. Memory must be allocated for the coordinate
34 * arrays (x_coor, y_coor, and z_coor) before this call is made. The length of each of these arrays
35 * is the number of nodes in the mesh. Because the coordinates are floating point values, the
36 * application code must declare the arrays passed to be the appropriate type "float" or "double" to
37 * match the compute word size passed in ex_create() or ex_open() \param exoid exodus file id
38 * \param start_node_num the starting index of the coordinates to be
39 * returned.
40 * \param num_nodes the number of nodes to read coordinates for.
41 * \param[out] x_coor Returned X coordinates of the nodes. These are
42 * returned only if x_coor is non-NULL.
43 * \param[out] y_coor Returned Y coordinates of the nodes. These are
44 * returned only if y_coor is non-NULL.
45 * \param[out] z_coor Returned Z coordinates of the nodes. These are
46 * returned only if z_coor is non-NULL.
47 */
48
49 int ex_get_n_coord(int exoid, int64_t start_node_num, int64_t num_nodes, void *x_coor, void *y_coor,
50 void *z_coor)
51 {
52 return ex_get_partial_coord(exoid, start_node_num, num_nodes, x_coor, y_coor, z_coor);
53 }