| 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 |
/*****************************************************************************/ |
| 11 |
/* Function(s) contained in this file: |
| 12 |
* |
| 13 |
* ex_get_partial_elem_var() |
| 14 |
* |
| 15 |
***************************************************************************** |
| 16 |
* |
| 17 |
* Variable Index: |
| 18 |
* |
| 19 |
* exoid - The NetCDF ID of an already open NemesisI file. |
| 20 |
* time_step - The time step to write this data to. |
| 21 |
* elem_var_index - The index of this elemental variable. |
| 22 |
* elem_blk_id - The ID of the element block being written to. |
| 23 |
* num_elem_this_blk - The number of elements in this block. |
| 24 |
* start_elem_num - The start point for outputting data. |
| 25 |
* num_elem - The number of values to be output. |
| 26 |
* elem_var_vals - Pointer to the vector of values to be output. |
| 27 |
*/ |
| 28 |
/*****************************************************************************/ |
| 29 |
/*****************************************************************************/ |
| 30 |
/*****************************************************************************/ |
| 31 |
|
| 32 |
#include "exodusII.h" // for ex_get_partial_var, etc |
| 33 |
#include "exodusII_int.h" |
| 34 |
|
| 35 |
/*! |
| 36 |
\ingroup ResultsData |
| 37 |
|
| 38 |
* \deprecated use ex_get_partial_var()(exoid, time_step, EX_ELEM_BLOCK, elem_var_index, |
| 39 |
elem_blk_id, start_elem_num, num_elem, elem_var_vals) |
| 40 |
*/ |
| 41 |
|
| 42 |
/* |
| 43 |
* reads the values of a single element variable for one element block at |
| 44 |
* one time step in the database; assume the first time step and |
| 45 |
* element variable index is 1 |
| 46 |
*/ |
| 47 |
|
| 48 |
int ex_get_partial_elem_var(int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id, |
| 49 |
int64_t num_elem_this_blk, int64_t start_elem_num, int64_t num_elem, |
| 50 |
void *elem_var_vals) |
| 51 |
{ |
| 52 |
EX_UNUSED(num_elem_this_blk); |
| 53 |
return ex_get_partial_var(exoid, time_step, EX_ELEM_BLOCK, elem_var_index, elem_blk_id, |
| 54 |
start_elem_num, num_elem, elem_var_vals); |
| 55 |
} |