| 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 |
* expsstt - ex_put_sset_var_tab |
| 11 |
* |
| 12 |
* entry conditions - |
| 13 |
* input parameters: |
| 14 |
* int exoid exodus file id |
| 15 |
* int num_sset number of sidesets |
| 16 |
* int num_sset_var number of sideset variables |
| 17 |
* int* sset_var_tab sideset variable truth table array |
| 18 |
* |
| 19 |
* exit conditions - |
| 20 |
* |
| 21 |
* |
| 22 |
*****************************************************************************/ |
| 23 |
|
| 24 |
#include "exodusII.h" // for ex_put_truth_table, etc |
| 25 |
|
| 26 |
/*! |
| 27 |
* writes the EXODUS sideset variable truth table to the database; |
| 28 |
* also, creates netCDF variables in which to store EXODUS sideset |
| 29 |
* variable values; although this table isn't required (because the |
| 30 |
* netCDF variables can also be created in ex_put_sset_var), this call |
| 31 |
* will save tremendous time because all of the variables are defined |
| 32 |
* at once while the file is in define mode, rather than going in and out |
| 33 |
* of define mode (causing the entire file to be copied over and over) |
| 34 |
* which is what occurs when the sideset variable values variables are |
| 35 |
* defined in ex_put_sset_var |
| 36 |
* \param exoid exodus file id |
| 37 |
* \param num_sset number of sidesets |
| 38 |
* \param num_sset_var number of sideset variables |
| 39 |
* \param *sset_var_tab sideset variable truth table array |
| 40 |
* \deprecated Use ex_put_truth_table()(exoid, EX_SIDE_SET, num_sset, |
| 41 |
* num_sset_var, sset_var_tab) |
| 42 |
*/ |
| 43 |
|
| 44 |
int ex_put_sset_var_tab(int exoid, int num_sset, int num_sset_var, int *sset_var_tab) |
| 45 |
{ |
| 46 |
return ex_put_truth_table(exoid, EX_SIDE_SET, num_sset, num_sset_var, sset_var_tab); |
| 47 |
} |