Debian Codegraph @

packages/seacas/libraries/exodus/src/deprecated/ex_get_node_set_dist_fact.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 #include "exodusII.h"
10
11 /*!
12 \deprecated Use ex_get_set_dist_fact()(exoid, EX_NODE_SET, node_set_id,
13 node_set_dist_fact)
14
15 The function ex_get_node_set_dist_fact() returns the node set
16 distribution factors for a single node set. Memory must be allocated
17 for the list of distribution factors(num_dist_in_set in length)
18 before this function is invoked.
19
20 Because the distribution factors are floating point values, the
21 application code must declare the array passed to be the appropriate
22 type (float or double) to match the compute word size passed in
23 ex_create() or ex_open().
24
25 \return In case of an error, ex_get_node_set_dist_fact() returns a
26 negative number; a warning will return a positive number. Possible
27 causes of errors include:
28 - a warning value is returned if no distribution factors were stored.
29
30 \param[in] exoid exodus file ID returned from a previous call to
31 ex_create() or ex_open().
32 \param[in] node_set_id The node set ID.
33 \param[out] node_set_dist_fact Returned array containing the distribution
34 factors in the node set.
35
36 Refer to the description of ex_get_node_set_param() for a sample code
37 segment to read a node set's distribution factors.
38 */
39
40 int ex_get_node_set_dist_fact(int exoid, ex_entity_id node_set_id, void *node_set_dist_fact)
41 {
42 return ex_get_set_dist_fact(exoid, EX_NODE_SET, node_set_id, node_set_dist_fact);
43 }