| 1 |
/* |
| 2 |
* Copyright(C) 1999-2020, 2024 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 |
#include "exodusII.h" // for EX_NOERR, etc |
| 9 |
#include "exodusII_int.h" |
| 10 |
|
| 11 |
/*! |
| 12 |
* Reads the parameters describing element/face/edge blocks |
| 13 |
* \param exoid exodus file id |
| 14 |
* \param block_count number of blocks being queried |
| 15 |
* \param blocks array of ex_block structures describing |
| 16 |
* block counts |
| 17 |
* |
| 18 |
* the id and type fields of the block(s) must be defined to specify which |
| 19 |
* blocks to access; |
| 20 |
* all other fields will be filled in based on data from the file |
| 21 |
*/ |
| 22 |
|
| 23 |
int ex_get_block_params(int exoid, size_t block_count, struct ex_block **blocks) |
| 24 |
{ |
| 25 |
EX_FUNC_ENTER(); |
| 26 |
for (size_t i = 0; i < block_count; i++) { |
| 27 |
int status = ex_get_block_param(exoid, blocks[i]); |
| 28 |
if (status != EX_NOERR) { |
| 29 |
EX_FUNC_LEAVE(status); |
| 30 |
} |
| 31 |
} |
| 32 |
EX_FUNC_LEAVE(EX_NOERR); |
| 33 |
} |