| 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_put_set_dist_fact()(exoid, EX_NODE_SET, node_set_id, |
| 13 |
node_set_dist_fact) |
| 14 |
|
| 15 |
The function ex_put_node_set_dist_fact() writes node set distribution |
| 16 |
factors for a single node set. The function ex_put_node_set_param() |
| 17 |
must be called before this routine is invoked. |
| 18 |
|
| 19 |
Because the distribution factors are floating point values, the |
| 20 |
application code must declare the array passed to be the appropriate |
| 21 |
type (float or double) to match the compute word size passed in |
| 22 |
ex_create() or ex_open(). |
| 23 |
|
| 24 |
\return In case of an error, ex_put_node_set_dist_fact() returns a |
| 25 |
negative number; a warning will return a positive number. Possible |
| 26 |
causes of errors include: |
| 27 |
- data file not properly opened with call to ex_create() or ex_open() |
| 28 |
- data file opened for read only. |
| 29 |
- data file not initialized properly with call to ex_put_init(). |
| 30 |
- ex_put_node_set_param() not called previously. |
| 31 |
- a call to ex_put_node_set_param() specified zero distribution factors. |
| 32 |
|
| 33 |
\param[in] exoid exodus file ID returned from a previous call to |
| 34 |
ex_create() or ex_open(). |
| 35 |
\param[in] node_set_id The node set ID. |
| 36 |
\param[in] node_set_dist_fact Array containing the distribution factors in the |
| 37 |
node set. |
| 38 |
|
| 39 |
Refer to the description of ex_put_node_set_param() for a sample code |
| 40 |
segment to write out the distribution factors for a node set. |
| 41 |
*/ |
| 42 |
|
| 43 |
int ex_put_node_set_dist_fact(int exoid, ex_entity_id node_set_id, const void *node_set_dist_fact) |
| 44 |
{ |
| 45 |
return ex_put_set_dist_fact(exoid, EX_NODE_SET, node_set_id, node_set_dist_fact); |
| 46 |
} |