| 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 |
* expvtt - ex_put_var_tab |
| 11 |
* |
| 12 |
* entry conditions - |
| 13 |
* input parameters: |
| 14 |
* int exoid exodus file id |
| 15 |
* char* type 'e', 'm', 's' element, nodeset, sideset |
| 16 |
* int num_blk number of blocks |
| 17 |
* int num_var number of variables |
| 18 |
* int* var_tab variable truth table array |
| 19 |
* |
| 20 |
* exit conditions - |
| 21 |
* |
| 22 |
* revision history - |
| 23 |
* |
| 24 |
* |
| 25 |
*****************************************************************************/ |
| 26 |
|
| 27 |
#include "exodusII.h" // for ex_put_truth_table, etc |
| 28 |
|
| 29 |
/*! |
| 30 |
\ingroup ResultsData |
| 31 |
|
| 32 |
* writes the EXODUS variable truth table to the database; also, |
| 33 |
* creates netCDF variables in which to store EXODUS variable |
| 34 |
* values; although this table isn't required (because the netCDF |
| 35 |
* variables can also be created in ex_put_var), this call will save |
| 36 |
* tremendous time because all of the variables are defined at once |
| 37 |
* while the file is in define mode, rather than going in and out of |
| 38 |
* define mode (causing the entire file to be copied over and over) |
| 39 |
* which is what occurs when the variables are defined in ex_put_var |
| 40 |
* \param exoid exodus file id |
| 41 |
* \param *var_type 'e', 'm', 's' element, nodeset, sideset |
| 42 |
* \param num_blk number of blocks |
| 43 |
* \param num_var number of variables |
| 44 |
* \param *var_tab variable truth table array |
| 45 |
* \deprecated Use ex_put_truth_table()(exoid, obj_type, num_blk, num_var, |
| 46 |
* var_tab) |
| 47 |
*/ |
| 48 |
|
| 49 |
int ex_put_var_tab(int exoid, const char *var_type, int num_blk, int num_var, int *var_tab) |
| 50 |
{ |
| 51 |
ex_entity_type obj_type; |
| 52 |
obj_type = ex_var_type_to_ex_entity_type(*var_type); |
| 53 |
return ex_put_truth_table(exoid, obj_type, num_blk, num_var, var_tab); |
| 54 |
} |