Debian Codegraph @

packages/seacas/libraries/exodus/src/ex_put_set_param.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 * expsetp - ex_put_set_param
11 *
12 * entry conditions -
13 * input parameters:
14 * int exoid exodus file id
15 * int set_type the type of set
16 * int set_id set id
17 * int num_entries_in_set number of entries in the set
18 * int num_dist_fact_in_set number of distribution factors in the
19 * set
20 *
21 * exit conditions -
22 *
23 * revision history -
24 *
25 *
26 *****************************************************************************/
27
28 #include "exodusII.h" // for ex_set, ex_put_sets, etc
29
30 /*!
31 * writes the set id and the number of entries which describe a single set
32 * \param exoid exodus file id
33 * \param set_type the type of set
34 * \param set_id set id
35 * \param num_entries_in_set number of entries in the set
36 * \param num_dist_fact_in_set number of distribution factors in the set
37 */
38
39 int ex_put_set_param(int exoid, ex_entity_type set_type, ex_entity_id set_id,
40 int64_t num_entries_in_set, int64_t num_dist_fact_in_set)
41 {
42 struct ex_set set[1];
43 set[0].type = set_type;
44 set[0].id = set_id;
45 set[0].num_entry = num_entries_in_set;
46 set[0].num_distribution_factor = num_dist_fact_in_set;
47 set[0].entry_list = NULL;
48 set[0].extra_list = NULL;
49 set[0].distribution_factor_list = NULL;
50
51 return ex_put_sets(exoid, 1, set);
52 }