Debian Codegraph @

packages/seacas/libraries/exodus/include/exodusII.h

raw
1 /*
2 * Copyright(C) 1999-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
9 /*****************************************************************************
10 *
11 * exodusII.h - Exodus II API include file
12 *
13 *****************************************************************************/
14 #pragma once
15
16 #include "exodus_config.h"
17
18 #include "netcdf.h"
19
20 #if defined(NC_HAVE_META_H)
21 #include "netcdf_meta.h"
22
23 /* Bug in some versions of NetCDF where the netcdf_meta.h define of NC_HAS_SZIP_WRITE is bad */
24 #if !defined(NC_HAS_SZIP_WRITE)
25 #define NC_HAS_SZIP_WRITE 0
26 #elif ~(~NC_HAS_SZIP_WRITE + 0) == 0 && ~(~NC_HAS_SZIP_WRITE + 1) == 1
27 #undef NC_HAS_SZIP_WRITE
28 #define NC_HAS_SZIP_WRITE 0
29 #endif
30
31 #if NC_HAS_PARALLEL
32 #ifndef PARALLEL_AWARE_EXODUS
33 #define PARALLEL_AWARE_EXODUS
34 #endif
35 #else
36 #ifdef PARALLEL_AWARE_EXODUS
37 #error "PARALLEL_AWARE_EXODUS defined, but NetCDF NC_HAS_PARALLEL is false"
38 #endif
39 #endif
40 #endif
41
42 #if defined(PARALLEL_AWARE_EXODUS)
43 #include "netcdf_par.h"
44 #endif
45
46 #include <stddef.h>
47 #include <stdint.h>
48 #include <stdlib.h>
49
50 /** Maximum length of name permitted by NetCDF */
51 #define EX_MAX_NAME NC_MAX_NAME
52
53 #ifndef NC_INT64
54 #error "NetCDF version 4.1.2 or later is required."
55 #endif
56
57 /* EXODUS version number */
58 #define EXODUS_VERSION "9.04"
59 #define EXODUS_VERSION_MAJOR 9
60 #define EXODUS_VERSION_MINOR 4
61 #define EXODUS_RELEASE_DATE "November 5, 2024"
62
63 #define EX_API_VERS 9.04f
64 #define EX_API_VERS_NODOT (100 * EXODUS_VERSION_MAJOR + EXODUS_VERSION_MINOR)
65 #define EX_VERS EX_API_VERS
66
67 /* Retained for backward compatibility */
68 #define NEMESIS_API_VERSION EX_API_VERS
69 #define NEMESIS_API_VERSION_NODOT EX_API_VERS_NODOT
70 #define NEMESIS_FILE_VERSION 2.6
71 /*
72 * need following extern if this include file is used in a C++
73 * program, to keep the C++ compiler from mangling the function names.
74 */
75 #ifdef __cplusplus
76 extern "C" {
77 #endif
78
79 /*
80 * The following are miscellaneous constants used in the EXODUS
81 * API. They should already be defined, but are left over from the
82 * old days...
83 */
84 #ifndef EX_TRUE
85 #define EX_TRUE -1
86 #endif
87
88 #ifndef EX_FALSE
89 #define EX_FALSE 0
90 #endif
91
92 /**
93 * \defgroup FileVars Variables controlling the file creation mode.
94 *@{
95 */
96 /* Modes for ex_open */
97 #define EX_WRITE 0x0001 /**< ex_open(): open existing file for appending. */
98 #define EX_READ 0x0002 /**< ex_open(): open file for reading (default) */
99
100 #define EX_NOCLOBBER 0x0004 /**< Don't overwrite existing database, default */
101 #define EX_CLOBBER 0x0008 /**< Overwrite existing database if it exists */
102 #define EX_NORMAL_MODEL 0x0010 /**< disable mods that permit storage of larger models */
103 #define EX_64BIT_OFFSET 0x0020 /**< enable mods that permit storage of larger models */
104 #define EX_LARGE_MODEL EX_64BIT_OFFSET /**< enable mods that permit storage of larger models */
105 #define EX_64BIT_DATA 0x400000 /**< CDF-5 format: classic model but 64 bit dimensions and sizes */
106 #define EX_NETCDF4 0x0040 /**< use the hdf5-based netcdf4 output */
107 #define EX_NOSHARE 0x0080 /**< Do not open netcdf file in "share" mode */
108 #define EX_SHARE 0x0100 /**< Do open netcdf file in "share" mode */
109 #define EX_NOCLASSIC 0x0200 /**< Do not force netcdf to classic mode in netcdf4 mode */
110
111 #define EX_DISKLESS 0x100000 /**< Experimental */
112 #define EX_MMAP 0x200000 /**< Experimental */
113
114 /* Need to distinguish between storage on database (DB in name) and
115 passed through the API functions (API in name).
116 */
117 #define EX_MAPS_INT64_DB 0x0400 /**< All maps (id, order, ...) store int64_t values */
118 #define EX_IDS_INT64_DB 0x0800 /**< All entity ids (sets, blocks, maps) are int64_t values */
119 #define EX_BULK_INT64_DB \
120 0x1000 /**< All integer bulk data (local indices, counts, maps); not ids \
121 */
122 #define EX_ALL_INT64_DB \
123 (EX_MAPS_INT64_DB | EX_IDS_INT64_DB | EX_BULK_INT64_DB) /**< All of the above... */
124
125 #define EX_MAPS_INT64_API 0x2000 /**< All maps (id, order, ...) store int64_t values */
126 #define EX_IDS_INT64_API 0x4000 /**< All entity ids (sets, blocks, maps) are int64_t values */
127 #define EX_BULK_INT64_API \
128 0x8000 /**< All integer bulk data (local indices, counts, maps); not ids */
129 #define EX_INQ_INT64_API 0x10000 /**< Integers passed to/from ex_inquire() are int64_t */
130 #define EX_ALL_INT64_API \
131 (EX_MAPS_INT64_API | EX_IDS_INT64_API | EX_BULK_INT64_API | \
132 EX_INQ_INT64_API) /**< All of the above... */
133
134 /* Parallel IO mode flags... */
135 #define EX_MPIIO 0x20000
136 #define EX_MPIPOSIX 0x40000 /**< \deprecated As of libhdf5 1.8.13. */
137 #define EX_PNETCDF 0x80000
138
139 /** @}*/
140
141 /*! \sa ex_inquire() All inquiries return an integer of the current database integer size unless
142 * otherwise noted. */
143 enum ex_inquiry {
144 EX_INQ_FILE_TYPE = 1, /**< EXODUS file type (deprecated) */
145 EX_INQ_API_VERS = 2, /**< API version number (float) */
146 EX_INQ_DB_VERS = 3, /**< database version number (float) */
147 EX_INQ_TITLE = 4, /**< database title. MAX_LINE_LENGTH+1 char* size */
148 EX_INQ_DIM = 5, /**< number of dimensions */
149 EX_INQ_NODES = 6, /**< number of nodes */
150 EX_INQ_ELEM = 7, /**< number of elements */
151 EX_INQ_ELEM_BLK = 8, /**< number of element blocks */
152 EX_INQ_NODE_SETS = 9, /**< number of node sets*/
153 EX_INQ_NS_NODE_LEN = 10, /**< length of node set node list */
154 EX_INQ_SIDE_SETS = 11, /**< number of side sets*/
155 EX_INQ_SS_NODE_LEN = 12, /**< length of side set node list */
156 EX_INQ_SS_ELEM_LEN = 13, /**< length of side set element list */
157 EX_INQ_QA = 14, /**< number of QA records */
158 EX_INQ_INFO = 15, /**< number of info records */
159 EX_INQ_TIME = 16, /**< number of time steps in the database */
160 EX_INQ_EB_PROP = 17, /**< number of element block properties */
161 EX_INQ_NS_PROP = 18, /**< number of node set properties */
162 EX_INQ_SS_PROP = 19, /**< number of side set properties */
163 EX_INQ_NS_DF_LEN = 20, /**< length of node set distribution factor list*/
164 EX_INQ_SS_DF_LEN = 21, /**< length of side set distribution factor list*/
165 EX_INQ_LIB_VERS = 22, /**< API Lib vers number (float) */
166 EX_INQ_EM_PROP = 23, /**< number of element map properties */
167 EX_INQ_NM_PROP = 24, /**< number of node map properties */
168 EX_INQ_ELEM_MAP = 25, /**< number of element maps */
169 EX_INQ_NODE_MAP = 26, /**< number of node maps*/
170 EX_INQ_EDGE = 27, /**< number of edges */
171 EX_INQ_EDGE_BLK = 28, /**< number of edge blocks */
172 EX_INQ_EDGE_SETS = 29, /**< number of edge sets */
173 EX_INQ_ES_LEN = 30, /**< length of concat edge set edge list */
174 EX_INQ_ES_DF_LEN = 31, /**< length of concat edge set dist factor list*/
175 EX_INQ_EDGE_PROP = 32, /**< number of properties stored per edge block */
176 EX_INQ_ES_PROP = 33, /**< number of properties stored per edge set */
177 EX_INQ_FACE = 34, /**< number of faces */
178 EX_INQ_FACE_BLK = 35, /**< number of face blocks */
179 EX_INQ_FACE_SETS = 36, /**< number of face sets */
180 EX_INQ_FS_LEN = 37, /**< length of concat face set face list */
181 EX_INQ_FS_DF_LEN = 38, /**< length of concat face set dist factor list*/
182 EX_INQ_FACE_PROP = 39, /**< number of properties stored per face block */
183 EX_INQ_FS_PROP = 40, /**< number of properties stored per face set */
184 EX_INQ_ELEM_SETS = 41, /**< number of element sets */
185 EX_INQ_ELS_LEN = 42, /**< length of concat element set element list */
186 EX_INQ_ELS_DF_LEN = 43, /**< length of concat element set dist factor list*/
187 EX_INQ_ELS_PROP = 44, /**< number of properties stored per elem set */
188 EX_INQ_EDGE_MAP = 45, /**< number of edge maps */
189 EX_INQ_FACE_MAP = 46, /**< number of face maps */
190 EX_INQ_COORD_FRAMES = 47, /**< number of coordinate frames */
191 EX_INQ_DB_MAX_ALLOWED_NAME_LENGTH = 48, /**< size of MAX_NAME_LENGTH dimension on database */
192 EX_INQ_DB_MAX_USED_NAME_LENGTH = 49, /**< size of MAX_NAME_LENGTH dimension on database */
193 EX_INQ_MAX_READ_NAME_LENGTH = 50, /**< client-specified max size of returned names */
194
195 EX_INQ_DB_FLOAT_SIZE = 51, /**< size of floating-point values stored on database */
196 EX_INQ_NUM_CHILD_GROUPS = 52, /**< number of groups contained in this (exoid) group */
197 EX_INQ_GROUP_PARENT = 53, /**< id of parent of this (exoid) group; returns exoid if at root */
198 EX_INQ_GROUP_ROOT =
199 54, /**< id of root group "/" of this (exoid) group; returns exoid if at root */
200 EX_INQ_GROUP_NAME_LEN = 55, /**< length of name of group exoid */
201 EX_INQ_GROUP_NAME =
202 56, /**< name of group exoid. "/" returned for root group (char* GROUP_NAME_LEN+1 size) */
203 EX_INQ_FULL_GROUP_NAME_LEN = 57, /**< length of full path name of this (exoid) group */
204 EX_INQ_FULL_GROUP_NAME = 58, /**< full "/"-separated path name of this (exoid) group */
205 EX_INQ_THREADSAFE = 59, /**< Returns 1 if library is thread-safe; 0 otherwise */
206 EX_INQ_ASSEMBLY = 60, /**< number of assemblies */
207 EX_INQ_BLOB = 61, /**< number of blobs */
208 EX_INQ_NUM_NODE_VAR = 62, /**< number of nodal variables */
209 EX_INQ_NUM_EDGE_BLOCK_VAR = 63, /**< number of edge block variables */
210 EX_INQ_NUM_FACE_BLOCK_VAR = 64, /**< number of face block variables */
211 EX_INQ_NUM_ELEM_BLOCK_VAR = 65, /**< number of element block variables */
212 EX_INQ_NUM_NODE_SET_VAR = 66, /**< number of node set variables */
213 EX_INQ_NUM_EDGE_SET_VAR = 67, /**< number of edge set variables */
214 EX_INQ_NUM_FACE_SET_VAR = 68, /**< number of face set variables */
215 EX_INQ_NUM_ELEM_SET_VAR = 69, /**< number of element set variables */
216 EX_INQ_NUM_SIDE_SET_VAR = 70, /**< number of sideset variables */
217 EX_INQ_NUM_GLOBAL_VAR = 71, /**< number of global variables */
218 EX_INQ_FILE_FORMAT = 72, /**< netCDF file format */
219 EX_INQ_INVALID = -1
220 };
221
222 typedef enum ex_inquiry ex_inquiry;
223
224 /* Options */
225 /**
226 * \defgroup FileOptions Variables controlling the compression, name size, and integer size.
227 *@{
228 */
229 /*! Modes for ex_set_option()
230
231 The compression-related options are only available on netcdf-4 files
232 since the underlying hdf5 compression functionality is used for the
233 implementation. The compression level indicates how much effort should
234 be expended in the compression and the computational expense increases
235 with higher levels; in many cases, a compression level of 1 is
236 sufficient.
237
238 SZIP-based compression is typically faster than ZLIB, but may not
239 be as widely available as ZLIB. SZIP is also only supported in
240 NetCDF-4.?.? and later
241 */
242
243 enum ex_option_type {
244 EX_OPT_MAX_NAME_LENGTH =
245 1, /**< Maximum length of names that will be returned/passed via api call. */
246 EX_OPT_COMPRESSION_TYPE, /**< Default is gzip */
247 EX_OPT_COMPRESSION_LEVEL, /**< Range depends on compression type. */
248 EX_OPT_COMPRESSION_SHUFFLE, /**< 1 if enabled, 0 if disabled */
249 EX_OPT_QUANTIZE_NSD, /**< if > 0, Number of significant digits to retain in lossy quantize
250 compression */
251 EX_OPT_INTEGER_SIZE_API, /**< 4 or 8 indicating byte size of integers used in api functions. */
252 EX_OPT_INTEGER_SIZE_DB, /**< Query only, returns 4 or 8 indicating byte size of integers stored
253 on the database. */
254 };
255 typedef enum ex_option_type ex_option_type;
256
257 enum ex_compression_type {
258 EX_COMPRESS_ZLIB = 1, /**< Use ZLIB-based compression (if available) */
259 EX_COMPRESS_GZIP = 1, /**< Same as ZLIB, but typical alias used */
260 EX_COMPRESS_SZIP, /**< Use SZIP-based compression (if available) */
261 EX_COMPRESS_ZSTD, /**< Use ZStandard compression (if available) */
262 EX_COMPRESS_BZ2, /**< Use BZ2 / Bzip2 compression (if available) */
263 };
264 typedef enum ex_compression_type ex_compression_type;
265 /** @}*/
266
267 enum ex_entity_type {
268 EX_NODAL = 14, /**< nodal "block" for variables*/
269 EX_NODE_BLOCK = 14, /**< alias for EX_NODAL */
270 EX_NODE_SET = 2, /**< node set property code */
271 EX_EDGE_BLOCK = 6, /**< edge block property code */
272 EX_EDGE_SET = 7, /**< edge set property code */
273 EX_FACE_BLOCK = 8, /**< face block property code */
274 EX_FACE_SET = 9, /**< face set property code */
275 EX_ELEM_BLOCK = 1, /**< element block property code*/
276 EX_ELEM_SET = 10, /**< face set property code */
277
278 EX_SIDE_SET = 3, /**< side set property code */
279
280 EX_ELEM_MAP = 4, /**< element map property code */
281 EX_NODE_MAP = 5, /**< node map property code */
282 EX_EDGE_MAP = 11, /**< edge map property code */
283 EX_FACE_MAP = 12, /**< face map property code */
284
285 EX_GLOBAL = 13, /**< global "block" for variables*/
286 EX_COORDINATE = 15, /**< kluge so some internal wrapper functions work */
287 EX_ASSEMBLY = 16, /**< assembly property code */
288 EX_BLOB = 17, /**< blob property code */
289 EX_INVALID = -1
290 };
291 typedef enum ex_entity_type ex_entity_type;
292
293 enum ex_field_type {
294 EX_FIELD_TYPE_INVALID = 0,
295 EX_FIELD_TYPE_USER_DEFINED,
296 EX_FIELD_TYPE_SEQUENCE,
297 EX_BASIS,
298 EX_QUADRATURE,
299 EX_SCALAR,
300 EX_VECTOR_1D,
301 EX_VECTOR_2D,
302 EX_VECTOR_3D,
303 EX_QUATERNION_2D,
304 EX_QUATERNION_3D,
305 EX_FULL_TENSOR_36,
306 EX_FULL_TENSOR_32,
307 EX_FULL_TENSOR_22,
308 EX_FULL_TENSOR_16,
309 EX_FULL_TENSOR_12,
310 EX_SYM_TENSOR_33,
311 EX_SYM_TENSOR_31,
312 EX_SYM_TENSOR_21,
313 EX_SYM_TENSOR_13,
314 EX_SYM_TENSOR_11,
315 EX_SYM_TENSOR_10,
316 EX_ASYM_TENSOR_03,
317 EX_ASYM_TENSOR_02,
318 EX_ASYM_TENSOR_01,
319 EX_MATRIX_2X2,
320 EX_MATRIX_3X3
321 };
322 typedef enum ex_field_type ex_field_type;
323
324 #define EX_MAX_FIELD_NESTING 2
325 typedef struct ex_field
326 {
327 ex_entity_type entity_type;
328 int64_t entity_id;
329 char name[EX_MAX_NAME + 1]; /* Name of the field */
330 /*
331 * For basis, user, quadrature -- what is name of the subtype. This
332 * is a comma-separated list of `nesting` names Use two consecutive
333 * commas for an empty type_name. Leave empty if no type_names
334 */
335 int nesting; /* Number of composite fields (vector at each quadrature point = 2) */
336 char type_name[EX_MAX_NAME + 1];
337 ex_field_type type[EX_MAX_FIELD_NESTING]; /* ex_field_type of each nested field */
338 int cardinality[EX_MAX_FIELD_NESTING]; /* 0 to calculate based on type */
339 char component_separator[EX_MAX_FIELD_NESTING]; /* empty defaults to '_'; */
340 char suffices[EX_MAX_NAME + 1]; /* Optional comma-separated list of suffices if type is
341 EX_FIELD_TYPE_USER_DEFINED */
342 } ex_field;
343
344 typedef struct ex_basis
345 {
346 /*
347 clang-format off
348 *
349 * subc_dim: dimension of the subcell associated with the specified DoF ordinal
350 * -- 0 node, 1 edge, 2 face, 3 volume [Range: 0..3]
351 * subc_ordinal: ordinal of the subcell relative to its parent cell
352 * -- 0..n for each ordinal with the same subc dim [Range: <= DoF ordinal]
353 * subc_dof_ordinal: ordinal of the DoF relative to the subcell
354 * subc_num_dof: cardinality of the DoF set associated with this subcell.
355 * xi, eta, mu (ξ, η, ζ): Parametric coordinate location of the DoF
356 * -- (Only first ndim values are valid)
357 *
358 clang-format on
359 */
360
361 char name[EX_MAX_NAME + 1];
362 int cardinality; /* number of `basis` points == dimension of non-null subc_*, xi, eta, mu */
363 int *subc_dim;
364 int *subc_ordinal;
365 int *subc_dof_ordinal;
366 int *subc_num_dof;
367 double *xi;
368 double *eta;
369 double *zeta;
370 } ex_basis;
371
372 typedef struct ex_quadrature
373 {
374 char name[EX_MAX_NAME + 1];
375 int cardinality; /* Number of quadrature points */
376 int dimension; /* 1,2,3 -- spatial dimension of points */
377 double *xi; /* xi (x) coordinate of points; dimension = cardinality or NULL */
378 double *
379 eta; /* eta (y) coordinate of points; dimension = cardinality if dimension = 2 or 3 or NULL */
380 double
381 *zeta; /* zeta (z) coordinate of points; dimension = cardinality if dimension == 3. or NULL */
382 double *weight; /* weights for each point; dimension = cardinality or NULL */
383 } ex_quadrature;
384
385 /*!
386 * ex_opts() function codes - codes are OR'ed into exopts
387 */
388 enum ex_options {
389 EX_DEFAULT = 0,
390 EX_VERBOSE = 1, /**< verbose mode message flag */
391 EX_DEBUG = 2, /**< debug mode def */
392 EX_ABORT = 4, /**< abort mode flag def */
393 EX_NULLVERBOSE = 8 /**< verbose mode for null entity detection warning */
394 };
395 typedef enum ex_options ex_options;
396
397 /** The value used to indicate that an entity (block, nset, sset)
398 has not had its id set to a valid value
399 */
400 #define EX_INVALID_ID -1
401
402 /**
403 * \defgroup StringLengths maximum string lengths;
404 * constants that are used as netcdf dimensions must be of type long
405 * @{
406 */
407
408 /** Maximum length of QA record, element type name */
409 #define MAX_STR_LENGTH 32L
410 /** Default maximum length of an entity name, attribute name, variable name.
411 Can be changed via a call to ex_set_option() */
412 #define MAX_NAME_LENGTH MAX_STR_LENGTH
413
414 /** Maximum length of the database title or an information record */
415 #define MAX_LINE_LENGTH 80L
416 /** Maximum length of an error message passed to ex_err() function. Typically, internal use only */
417 #define MAX_ERR_LENGTH 512
418 /** @} */
419
420 /** Specifies that this argument is the id of an entity: element block, nodeset, sideset, ... */
421 typedef int64_t ex_entity_id;
422
423 /** The mechanism for passing double/float and int/int64_t both use a
424 void*; to avoid some confusion as to whether a function takes an
425 integer or a float/double, the following typedef is used for the
426 integer argument
427 */
428 typedef void void_int;
429
430 /**
431 * \defgroup APIStructs Structures used by external API functions.
432 * ex_put_init_ext(), ex_get_init_ext(), ex_get_block_param(), ex_put_block_param(),
433 * ex_get_block_params(), ex_put_block_params(), ex_put_concat_all_blocks(),
434 * ex_put_concat_sets(), ex_get_concat_sets(), ex_put_sets(), ex_get_sets()
435 * @{
436 */
437 typedef struct ex_init_params
438 {
439 char title[MAX_LINE_LENGTH + 1];
440 int64_t num_dim;
441 int64_t num_nodes;
442 int64_t num_edge;
443 int64_t num_edge_blk;
444 int64_t num_face;
445 int64_t num_face_blk;
446 int64_t num_elem;
447 int64_t num_elem_blk;
448 int64_t num_node_sets;
449 int64_t num_edge_sets;
450 int64_t num_face_sets;
451 int64_t num_side_sets;
452 int64_t num_elem_sets;
453 int64_t num_node_maps;
454 int64_t num_edge_maps;
455 int64_t num_face_maps;
456 int64_t num_elem_maps;
457 int64_t num_assembly;
458 int64_t num_blob;
459 } ex_init_params;
460
461 enum ex_type { EX_INTEGER = NC_INT, EX_DOUBLE = NC_DOUBLE, EX_CHAR = NC_CHAR };
462
463 typedef enum ex_type ex_type;
464
465 typedef struct ex_attribute
466 {
467 ex_entity_type entity_type;
468 int64_t entity_id;
469 char name[EX_MAX_NAME + 1];
470 ex_type type; /* int, double, text */
471 int value_count;
472 void *values; /* not accessed if NULL */
473 } ex_attribute;
474
475 typedef struct ex_blob
476 {
477 ex_entity_id id;
478 char *name;
479 int64_t num_entry;
480 } ex_blob;
481
482 typedef struct ex_assembly
483 {
484 ex_entity_id id;
485 char *name;
486 ex_entity_type type; /* EX_ELEM_BLOCK or EX_ASSEMBLY */
487 int entity_count;
488 ex_entity_id *entity_list;
489 } ex_assembly;
490
491 typedef struct ex_block
492 {
493 ex_entity_id id;
494 ex_entity_type type;
495 char topology[MAX_STR_LENGTH + 1];
496 int64_t num_entry;
497 int64_t num_nodes_per_entry;
498 int64_t num_edges_per_entry;
499 int64_t num_faces_per_entry;
500 int64_t num_attribute;
501 } ex_block;
502
503 typedef struct ex_set
504 {
505 ex_entity_id id;
506 ex_entity_type type;
507 int64_t num_entry;
508 int64_t num_distribution_factor;
509 void_int *entry_list;
510 void_int *extra_list;
511 void *distribution_factor_list;
512 } ex_set;
513
514 typedef struct ex_block_params
515 {
516 void_int *edge_blk_id;
517 char **edge_type;
518 int *num_edge_this_blk;
519 int *num_nodes_per_edge;
520 int *num_attr_edge;
521 void_int *face_blk_id;
522 char **face_type;
523 int *num_face_this_blk;
524 int *num_nodes_per_face;
525 int *num_attr_face;
526 void_int *elem_blk_id;
527 char **elem_type;
528 int *num_elem_this_blk;
529 int *num_nodes_per_elem;
530 int *num_edges_per_elem;
531 int *num_faces_per_elem;
532 int *num_attr_elem;
533 int define_maps;
534 } ex_block_params;
535
536 typedef struct ex_set_specs
537 {
538 void_int *sets_ids;
539 void_int *num_entries_per_set;
540 void_int *num_dist_per_set;
541 void_int *sets_entry_index;
542 void_int *sets_dist_index;
543 void_int *sets_entry_list;
544 void_int *sets_extra_list;
545 void *sets_dist_fact;
546 } ex_set_specs;
547
548 typedef struct ex_var_params
549 {
550 int num_glob;
551 int num_node;
552 int num_edge;
553 int num_face;
554 int num_elem;
555 int num_nset;
556 int num_eset;
557 int num_fset;
558 int num_sset;
559 int num_elset;
560 int *edge_var_tab;
561 int *face_var_tab;
562 int *elem_var_tab;
563 int *nset_var_tab;
564 int *eset_var_tab;
565 int *fset_var_tab;
566 int *sset_var_tab;
567 int *elset_var_tab;
568 } ex_var_params;
569 /** @} */
570
571 #ifndef EXODUS_EXPORT
572 #if defined(_WIN32) && defined(exodus_shared_EXPORTS)
573 #define EXODUS_EXPORT __declspec(dllexport)
574 #endif
575 #endif /* EXODUS_EXPORT */
576
577 #ifndef EXODUS_EXPORT
578 #define EXODUS_EXPORT extern
579 #endif /* EXODUS_EXPORT */
580
581 /*!
582 * \addtogroup Utilities
583 * @{
584 */
585 /* routines for file initialization i/o */
586 EXODUS_EXPORT int ex_close(int exoid);
587
588 EXODUS_EXPORT int ex_copy(int in_exoid, int out_exoid);
589 EXODUS_EXPORT int ex_copy_transient(int in_exoid, int out_exoid);
590
591 #define ex_create(path, mode, comp_ws, io_ws) \
592 ex_create_int(path, mode, comp_ws, io_ws, EX_API_VERS_NODOT)
593
594 EXODUS_EXPORT int ex_create_int(const char *rel_path, int cmode, int *comp_ws, int *io_ws,
595 int run_version);
596
597 #define ex_open(path, mode, comp_ws, io_ws, version) \
598 ex_open_int(path, mode, comp_ws, io_ws, version, EX_API_VERS_NODOT)
599
600 EXODUS_EXPORT int ex_open_int(const char *rel_path, int mode, int *comp_ws, int *io_ws,
601 float *version, int run_version);
602
603 #if defined(PARALLEL_AWARE_EXODUS)
604 #define ex_create_par(path, mode, comp_ws, io_ws, comm, info) \
605 ex_create_par_int(path, mode, comp_ws, io_ws, comm, info, EX_API_VERS_NODOT)
606
607 EXODUS_EXPORT int ex_create_par_int(const char *rel_path, int cmode, int *comp_ws, int *io_ws,
608 MPI_Comm comm, MPI_Info info, int my_version);
609
610 #define ex_open_par(path, mode, comp_ws, io_ws, version, comm, info) \
611 ex_open_par_int(path, mode, comp_ws, io_ws, version, comm, info, EX_API_VERS_NODOT)
612
613 EXODUS_EXPORT int ex_open_par_int(const char *rel_path, int mode, int *comp_ws, int *io_ws,
614 float *version, MPI_Comm comm, MPI_Info info, int my_version);
615 #endif
616
617 EXODUS_EXPORT int ex_get_group_id(int parent_id, const char *group_name, int *group_id);
618
619 EXODUS_EXPORT int ex_get_group_ids(int parent_id, int *num_groups, int *group_ids);
620
621 EXODUS_EXPORT int ex_get_info(int exoid, char **info);
622
623 EXODUS_EXPORT int ex_get_qa(int exoid, char *qa_record[][4]);
624 EXODUS_EXPORT int ex_put_info(int exoid, int num_info, char *const info[]);
625
626 EXODUS_EXPORT int ex_put_qa(int exoid, int num_qa_records, char *qa_record[][4]);
627
628 EXODUS_EXPORT int ex_update(int exoid);
629 EXODUS_EXPORT int ex_get_num_props(int exoid, ex_entity_type obj_type);
630 EXODUS_EXPORT int ex_large_model(int exoid);
631 EXODUS_EXPORT size_t ex_header_size(int exoid);
632
633 EXODUS_EXPORT void ex_err(const char *module_name, const char *message, int err_num);
634 EXODUS_EXPORT void ex_err_fn(int exoid, const char *module_name, const char *message, int err_num);
635 EXODUS_EXPORT void ex_set_err(const char *module_name, const char *message, int err_num);
636 EXODUS_EXPORT const char *ex_strerror(int err_num);
637 EXODUS_EXPORT void ex_get_err(const char **msg, const char **func, int *err_num);
638 EXODUS_EXPORT int ex_opts(int options);
639 EXODUS_EXPORT int ex_inquire(int exoid, ex_inquiry req_info, void_int *ret_int, float *ret_float,
640 char *ret_char);
641 EXODUS_EXPORT int64_t ex_inquire_int(int exoid, ex_inquiry req_info);
642 EXODUS_EXPORT unsigned ex_int64_status(int exoid);
643 EXODUS_EXPORT int ex_set_int64_status(int exoid, int mode);
644
645 EXODUS_EXPORT void ex_print_config(void);
646 EXODUS_EXPORT const char *ex_config(void);
647
648 EXODUS_EXPORT int ex_set_max_name_length(int exoid, int length);
649
650 EXODUS_EXPORT int ex_set_option(int exoid, ex_option_type option, int option_value);
651
652 EXODUS_EXPORT int ex_cvt_nodes_to_sides(int exoid, void_int *num_elem_per_set,
653 void_int *num_nodes_per_set, void_int *side_sets_elem_index,
654 void_int *side_sets_node_index,
655 void_int *side_sets_elem_list,
656 void_int *side_sets_node_list,
657 void_int *side_sets_side_list);
658 /*! @} */
659
660 /*!
661 * \addtogroup ResultsData
662 * @{
663 */
664
665 EXODUS_EXPORT int ex_get_time(int exoid, int time_step, void *time_value);
666
667 EXODUS_EXPORT int ex_get_variable_names(int exoid, ex_entity_type obj_type, int num_vars,
668 char *var_names[]);
669 EXODUS_EXPORT int ex_get_variable_name(int exoid, ex_entity_type obj_type, int var_num,
670 char *var_name);
671
672 EXODUS_EXPORT int ex_get_variable_param(int exoid, ex_entity_type obj_type, int *num_vars);
673
674 EXODUS_EXPORT int ex_get_reduction_variable_names(int exoid, ex_entity_type obj_type, int num_vars,
675 char *var_names[]);
676 EXODUS_EXPORT int ex_get_reduction_variable_name(int exoid, ex_entity_type obj_type, int var_num,
677 char *var_name);
678
679 EXODUS_EXPORT int ex_get_reduction_variable_param(int exoid, ex_entity_type obj_type,
680 int *num_vars);
681
682 EXODUS_EXPORT int ex_get_object_truth_vector(int exoid, ex_entity_type obj_type,
683 ex_entity_id entity_id, int num_var, int *var_vec);
684
685 EXODUS_EXPORT int ex_get_truth_table(int exoid, ex_entity_type obj_type, int num_blk, int num_var,
686 int *var_tab);
687
688 EXODUS_EXPORT int ex_put_all_var_param(int exoid, int num_g, int num_n, int num_e,
689 const int *elem_var_tab, int num_m, const int *nset_var_tab,
690 int num_s, const int *sset_var_tab);
691
692 EXODUS_EXPORT int ex_put_time(int exoid, int time_step, const void *time_value);
693
694 EXODUS_EXPORT int ex_get_all_times(int exoid, void *time_values);
695
696 EXODUS_EXPORT int ex_put_variable_name(int exoid, ex_entity_type obj_type, int var_num,
697 const char *var_name);
698
699 EXODUS_EXPORT int ex_put_variable_names(int exoid, ex_entity_type obj_type, int num_vars,
700 char *const var_names[]);
701
702 EXODUS_EXPORT int ex_put_variable_param(int exoid, ex_entity_type obj_type, int num_vars);
703
704 EXODUS_EXPORT int ex_put_reduction_variable_name(int exoid, ex_entity_type obj_type, int var_num,
705 const char *var_name);
706
707 EXODUS_EXPORT int ex_put_reduction_variable_names(int exoid, ex_entity_type obj_type, int num_vars,
708 char *const var_names[]);
709
710 EXODUS_EXPORT int ex_put_reduction_variable_param(int exoid, ex_entity_type obj_type, int num_vars);
711
712 EXODUS_EXPORT int ex_put_truth_table(int exoid, ex_entity_type obj_type, int num_blk, int num_var,
713 const int *var_tab);
714
715 /* (MODIFIED) Write All Results Variables Parameters */
716 EXODUS_EXPORT int ex_put_all_var_param_ext(int exoid, const ex_var_params *vp);
717
718 /* Write Edge Face or Element Variable Values on Blocks or Sets at a Time Step */
719 EXODUS_EXPORT int ex_put_var(int exoid, int time_step, ex_entity_type var_type, int var_index,
720 ex_entity_id obj_id, int64_t num_entries_this_obj,
721 const void *var_vals);
722
723 /* Write Edge Face or Element Variable Values Defined On Blocks or Sets Through Time */
724 EXODUS_EXPORT int ex_put_var_multi_time(int exoid, ex_entity_type var_type, int var_index,
725 ex_entity_id obj_id, int64_t num_entries_this_obj,
726 int beg_time_step, int end_time_step, const void *var_vals);
727
728 /* Write Partial Edge Face or Element Variable Values on Blocks or Sets at a Time Step */
729 EXODUS_EXPORT int ex_put_partial_var(int exoid, int time_step, ex_entity_type var_type,
730 int var_index, ex_entity_id obj_id, int64_t start_index,
731 int64_t num_entities, const void *var_vals);
732
733 /* Write Edge Face or Element Reduction Variable Values on Blocks or Sets at a Time Step */
734 EXODUS_EXPORT int ex_put_reduction_vars(int exoid, int time_step, ex_entity_type obj_type,
735 ex_entity_id obj_id, int64_t num_variables,
736 const void *var_vals);
737
738 /* Read Edge Face or Element Variable Values Defined On Blocks or Sets at a Time Step */
739 EXODUS_EXPORT int ex_get_var(int exoid, int time_step, ex_entity_type var_type, int var_index,
740 ex_entity_id obj_id, int64_t num_entry_this_obj, void *var_vals);
741
742 /* Read Edge Face or Element Variable Values Defined On Blocks or Sets at a Time Step */
743 EXODUS_EXPORT int ex_get_var_multi_time(int exoid, ex_entity_type var_type, int var_index,
744 ex_entity_id obj_id, int64_t num_entry_this_obj,
745 int beg_time_step, int end_time_step, void *var_vals);
746
747 /* Read Edge Face or Element Variable Values Defined On Blocks or Sets Through Time */
748 EXODUS_EXPORT int ex_get_var_time(int exoid, ex_entity_type var_type, int var_index,
749 ex_entity_id id, int beg_time_step, int end_time_step,
750 void *var_vals);
751
752 /* Read Partial Edge Face or Element Variable Values on Blocks or Sets at a Time Step */
753 EXODUS_EXPORT int ex_get_partial_var(int exoid, int time_step, ex_entity_type var_type,
754 int var_index, ex_entity_id obj_id, int64_t start_index,
755 int64_t num_entities, void *var_vals);
756
757 /* Read Edge Face or Element Reduction Variable Values Defined On Blocks or Sets at a Time Step */
758 EXODUS_EXPORT int ex_get_reduction_vars(int exoid, int time_step, ex_entity_type obj_type,
759 ex_entity_id obj_id, int64_t num_variables, void *var_vals);
760
761 /*! @} */
762
763 /* ========================================================================
764 Functions pulled from nemesis library and incorporated into exodus...
765 */
766 /*=============================================================================
767 * Initial Information Routines
768 *===========================================================================*/
769 EXODUS_EXPORT int ex_get_init_info(int exoid, /* NemesisI file ID */
770 int *num_proc, /* Number of processors */
771 int *num_proc_in_f, /* Number of procs in this file */
772 char *ftype);
773
774 EXODUS_EXPORT int ex_put_init_info(int exoid, /* NemesisI file ID */
775 int num_proc, /* Number of processors */
776 int num_proc_in_f, /* Number of procs in this file */
777 const char *ftype);
778
779 EXODUS_EXPORT int ex_get_init_global(int exoid, /* NemesisI file ID */
780 void_int *num_nodes_g, /* Number of global FEM nodes */
781 void_int *num_elems_g, /* Number of global FEM elements */
782 void_int *num_elem_blks_g, /* Number of global elem blocks */
783 void_int *num_node_sets_g, /* Number of global node sets */
784 void_int *num_side_sets_g /* Number of global side sets */
785 );
786 EXODUS_EXPORT int ex_put_init_global(int exoid, /* NemesisI file ID */
787 int64_t num_nodes_g, /* Number of global FEM nodes */
788 int64_t num_elems_g, /* Number of global FEM elements */
789 int64_t num_elem_blks_g, /* Number of global elem blocks */
790 int64_t num_node_sets_g, /* Number of global node sets */
791 int64_t num_side_sets_g /* Number of global side sets */
792 );
793
794 /*=============================================================================
795 * Loadbalance Parameter Routines
796 *===========================================================================*/
797 EXODUS_EXPORT int ex_get_loadbal_param(int exoid, /* NetCDF/Exodus file ID */
798 void_int *num_int_nodes, /* Number of internal FEM nodes */
799 void_int *num_bor_nodes, /* Number of border FEM nodes */
800 void_int *num_ext_nodes, /* Number of external FEM nodes */
801 void_int *num_int_elems, /* Number of internal FEM elems */
802 void_int *num_bor_elems, /* Number of border FEM elems */
803 void_int *num_node_cmaps, /* Number of nodal comm maps */
804 void_int *num_elem_cmaps, /* Number of elemental comm maps */
805 int processor /* Processor ID */
806 );
807
808 EXODUS_EXPORT int ex_put_loadbal_param(int exoid, /* NemesisI file ID */
809 int64_t num_int_nodes, /* Number of internal FEM nodes */
810 int64_t num_bor_nodes, /* Number of border FEM nodes */
811 int64_t num_ext_nodes, /* Number of external FEM nodes */
812 int64_t num_int_elems, /* Number of internal FEM elems */
813 int64_t num_bor_elems, /* Number of border FEM elems */
814 int64_t num_node_cmaps, /* Number of nodal comm maps */
815 int64_t num_elem_cmaps, /* Number of elemental comm maps */
816 int processor /* Processor ID */
817 );
818
819 EXODUS_EXPORT int
820 ex_put_loadbal_param_cc(int exoid, /* NetCDF/Exodus file ID */
821 const void_int *num_int_nodes, /* Number of internal node IDs */
822 const void_int *num_bor_nodes, /* Number of border node IDs */
823 const void_int *num_ext_nodes, /* Number of external node IDs */
824 const void_int *num_int_elems, /* Number of internal elem IDs */
825 const void_int *num_bor_elems, /* Number of border elem IDs */
826 const void_int *num_node_cmaps, /* Number of nodal comm maps */
827 const void_int *num_elem_cmaps /* Number of elem comm maps */
828 );
829
830 /* Utility function to replace strncpy, strcpy -- guarantee null termination */
831 char *ex_copy_string(char *dest, char const *source, size_t elements);
832
833 /*!
834 * \addtogroup ModelDescription
835 * @{
836 */
837 EXODUS_EXPORT int ex_create_group(int parent_id, const char *group_name);
838
839 EXODUS_EXPORT int ex_get_coord_names(int exoid, char **coord_names);
840
841 EXODUS_EXPORT int ex_get_coord(int exoid, void *x_coor, void *y_coor, void *z_coor);
842
843 EXODUS_EXPORT int ex_get_partial_coord_component(int exoid, int64_t start_node_num,
844 int64_t num_nodes, int component, void *coor);
845
846 EXODUS_EXPORT int ex_get_partial_coord(int exoid, int64_t start_node_num, int64_t num_nodes,
847 void *x_coor, void *y_coor, void *z_coor);
848
849 EXODUS_EXPORT int ex_get_ids(int exoid, ex_entity_type obj_type, void_int *ids);
850
851 EXODUS_EXPORT int ex_get_coordinate_frames(int exoid, int *nframes, void_int *cf_ids,
852 void *pt_coordinates, char *tags);
853
854 EXODUS_EXPORT int ex_put_init_ext(int exoid, const ex_init_params *model);
855
856 EXODUS_EXPORT int ex_get_init_ext(int exoid, ex_init_params *info);
857
858 EXODUS_EXPORT int ex_get_init(int exoid, char *title, void_int *num_dim, void_int *num_nodes,
859 void_int *num_elem, void_int *num_elem_blk, void_int *num_node_sets,
860 void_int *num_side_sets);
861
862 EXODUS_EXPORT int ex_put_init(int exoid, const char *title, int64_t num_dim, int64_t num_nodes,
863 int64_t num_elem, int64_t num_elem_blk, int64_t num_node_sets,
864 int64_t num_side_sets);
865
866 EXODUS_EXPORT int ex_get_map(int exoid, void_int *elem_map);
867
868 EXODUS_EXPORT int ex_get_map_param(int exoid, int *num_node_maps, int *num_elem_maps);
869
870 EXODUS_EXPORT int ex_get_name(int exoid, ex_entity_type obj_type, ex_entity_id entity_id,
871 char *name);
872
873 EXODUS_EXPORT int ex_get_names(int exoid, ex_entity_type obj_type, char **names);
874
875 EXODUS_EXPORT int ex_get_prop_array(int exoid, ex_entity_type obj_type, const char *prop_name,
876 void_int *values);
877
878 EXODUS_EXPORT int ex_get_prop(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
879 const char *prop_name, void_int *value);
880
881 EXODUS_EXPORT int ex_get_partial_num_map(int exoid, ex_entity_type map_type, ex_entity_id map_id,
882 int64_t ent_start, int64_t ent_count, void_int *map);
883
884 EXODUS_EXPORT int ex_get_prop_names(int exoid, ex_entity_type obj_type, char **prop_names);
885
886 EXODUS_EXPORT int ex_add_attr(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
887 int64_t num_attr_per_entry);
888
889 EXODUS_EXPORT int ex_put_attr_param(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
890 int num_attrs);
891
892 EXODUS_EXPORT int ex_get_attr_param(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
893 int *num_attrs);
894
895 EXODUS_EXPORT int ex_put_concat_elem_block(int exoid, const void_int *elem_blk_id,
896 char *const elem_type[],
897 const void_int *num_elem_this_blk,
898 const void_int *num_nodes_per_elem,
899 const void_int *num_attr_this_blk, int define_maps);
900
901 EXODUS_EXPORT int ex_put_coord_names(int exoid, char *const coord_names[]);
902
903 EXODUS_EXPORT int ex_put_coord(int exoid, const void *x_coor, const void *y_coor,
904 const void *z_coor);
905
906 EXODUS_EXPORT int ex_put_partial_coord_component(int exoid, int64_t start_node_num,
907 int64_t num_nodes, int component,
908 const void *coor);
909
910 EXODUS_EXPORT int ex_put_partial_coord(int exoid, int64_t start_node_num, int64_t num_nodes,
911 const void *x_coor, const void *y_coor, const void *z_coor);
912
913 EXODUS_EXPORT int ex_put_map(int exoid, const void_int *elem_map);
914
915 EXODUS_EXPORT int ex_put_id_map(int exoid, ex_entity_type map_type, const void_int *map);
916
917 EXODUS_EXPORT int ex_put_partial_id_map(int exoid, ex_entity_type map_type,
918 int64_t start_entity_num, int64_t num_entities,
919 const void_int *map);
920
921 EXODUS_EXPORT int ex_get_id_map(int exoid, ex_entity_type map_type, void_int *map);
922
923 EXODUS_EXPORT int ex_get_partial_id_map(int exoid, ex_entity_type map_type,
924 int64_t start_entity_num, int64_t num_entities,
925 void_int *map);
926
927 EXODUS_EXPORT int ex_get_block_id_map(int exoid, ex_entity_type map_type, ex_entity_id entity_id,
928 void_int *map);
929
930 EXODUS_EXPORT int ex_put_coordinate_frames(int exoid, int nframes, const void_int *cf_ids,
931 const void *pt_coordinates, const char *tags);
932
933 EXODUS_EXPORT int ex_put_map_param(int exoid, int num_node_maps, int num_elem_maps);
934
935 EXODUS_EXPORT int ex_put_name(int exoid, ex_entity_type obj_type, ex_entity_id entity_id,
936 const char *name);
937
938 EXODUS_EXPORT int ex_put_names(int exoid, ex_entity_type obj_type, char *const names[]);
939
940 EXODUS_EXPORT int ex_put_partial_one_attr(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
941 int64_t start_num, int64_t num_ent, int attrib_index,
942 const void *attrib);
943
944 EXODUS_EXPORT int ex_put_prop(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
945 const char *prop_name, ex_entity_id value);
946
947 EXODUS_EXPORT int ex_put_prop_array(int exoid, ex_entity_type obj_type, const char *prop_name,
948 const void_int *values);
949
950 EXODUS_EXPORT int ex_put_prop_names(int exoid, ex_entity_type obj_type, int num_props,
951 char **prop_names);
952
953 /* Write Node Edge Face or Element Number Map */
954 EXODUS_EXPORT int ex_put_num_map(int exoid, ex_entity_type map_type, ex_entity_id map_id,
955 const void_int *map);
956
957 /* Read Number Map */
958 EXODUS_EXPORT int ex_get_num_map(int exoid, ex_entity_type map_type, ex_entity_id map_id,
959 void_int *map);
960
961 /* Write Edge Face or Element Block Parameters */
962 EXODUS_EXPORT int ex_put_block(int exoid, ex_entity_type blk_type, ex_entity_id blk_id,
963 const char *entry_descrip, int64_t num_entries_this_blk,
964 int64_t num_nodes_per_entry, int64_t num_edges_per_entry,
965 int64_t num_faces_per_entry, int64_t num_attr_per_entry);
966
967 EXODUS_EXPORT int ex_get_block(int exoid, ex_entity_type blk_type, ex_entity_id blk_id,
968 char *elem_type, void_int *num_entries_this_blk,
969 void_int *num_nodes_per_entry, void_int *num_edges_per_entry,
970 void_int *num_faces_per_entry, void_int *num_attr_per_entry);
971
972 /* Read Edge Face or Element Block Parameters */
973 EXODUS_EXPORT int ex_get_block_param(int exoid, ex_block *block);
974
975 EXODUS_EXPORT int ex_put_block_param(int exoid, const ex_block block);
976
977 EXODUS_EXPORT int ex_get_block_params(int exoid, size_t block_count, struct ex_block **blocks);
978
979 EXODUS_EXPORT int ex_put_block_params(int exoid, size_t block_count, const struct ex_block *blocks);
980
981 /* Write All Edge Face and Element Block Parameters */
982 EXODUS_EXPORT int ex_put_concat_all_blocks(int exoid, const ex_block_params *param);
983
984 EXODUS_EXPORT int ex_put_entity_count_per_polyhedra(int exoid, ex_entity_type blk_type,
985 ex_entity_id blk_id, const int *entity_counts);
986
987 EXODUS_EXPORT int ex_get_entity_count_per_polyhedra(int exoid, ex_entity_type blk_type,
988 ex_entity_id blk_id, int *entity_counts);
989
990 /* Write Edge Face or Element Block Connectivity */
991 EXODUS_EXPORT int ex_put_conn(int exoid, ex_entity_type blk_type, ex_entity_id blk_id,
992 const void_int *node_conn, const void_int *elem_edge_conn,
993 const void_int *elem_face_conn);
994
995 /* Read Edge Face or Element Block Connectivity */
996 EXODUS_EXPORT int ex_get_conn(int exoid, ex_entity_type blk_type, ex_entity_id blk_id,
997 void_int *nodeconn, void_int *edgeconn, void_int *faceconn);
998
999 EXODUS_EXPORT int ex_get_partial_conn(int exoid, ex_entity_type blk_type, ex_entity_id blk_id,
1000 int64_t start_num, int64_t num_ent, void_int *nodeconn,
1001 void_int *edgeconn, void_int *faceconn);
1002
1003 EXODUS_EXPORT int ex_put_partial_conn(int exoid, ex_entity_type blk_type, ex_entity_id blk_id,
1004 int64_t start_num, int64_t num_ent, const void_int *nodeconn,
1005 const void_int *edgeconn, const void_int *faceconn);
1006
1007 /* Write Edge Face or Element Block Attributes */
1008 EXODUS_EXPORT int ex_put_attr(int exoid, ex_entity_type blk_type, ex_entity_id blk_id,
1009 const void *attrib);
1010
1011 EXODUS_EXPORT int ex_put_partial_attr(int exoid, ex_entity_type blk_type, ex_entity_id blk_id,
1012 int64_t start_entity, int64_t num_entity, const void *attrib);
1013
1014 /* Read Edge Face or Element Block Attributes */
1015 EXODUS_EXPORT int ex_get_attr(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
1016 void *attrib);
1017
1018 EXODUS_EXPORT int ex_get_partial_attr(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
1019 int64_t start_num, int64_t num_ent, void *attrib);
1020
1021 /* Write One Edge Face or Element Block Attribute */
1022 EXODUS_EXPORT int ex_put_one_attr(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
1023 int attrib_index, const void *attrib);
1024
1025 /* Read One Edge Face or Element Block Attribute */
1026 EXODUS_EXPORT int ex_get_one_attr(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
1027 int attrib_index, void *attrib);
1028
1029 EXODUS_EXPORT int ex_get_partial_one_attr(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
1030 int64_t start_num, int64_t num_ent, int attrib_index,
1031 void *attrib);
1032
1033 /* Write Edge Face or Element Block Attribute Names */
1034 EXODUS_EXPORT int ex_put_attr_names(int exoid, ex_entity_type blk_type, ex_entity_id blk_id,
1035 char **names);
1036
1037 /* Read Edge Face or Element Block Attribute Names */
1038 EXODUS_EXPORT int ex_get_attr_names(int exoid, ex_entity_type obj_type, ex_entity_id obj_id,
1039 char **names);
1040
1041 EXODUS_EXPORT int ex_put_assembly(int exoid, const struct ex_assembly assembly);
1042 EXODUS_EXPORT int ex_get_assembly(int exoid, struct ex_assembly *assembly);
1043
1044 EXODUS_EXPORT int ex_put_assemblies(int exoid, size_t count, const struct ex_assembly *assemblies);
1045 EXODUS_EXPORT int ex_get_assemblies(int exoid, struct ex_assembly *assemblies);
1046
1047 EXODUS_EXPORT int ex_put_blob(int exoid, const struct ex_blob blob);
1048 EXODUS_EXPORT int ex_get_blob(int exoid, struct ex_blob *blob);
1049
1050 EXODUS_EXPORT int ex_put_blobs(int exoid, size_t count, const struct ex_blob *blobs);
1051 EXODUS_EXPORT int ex_get_blobs(int exoid, struct ex_blob *blobs);
1052
1053 EXODUS_EXPORT int ex_put_multi_field_metadata(int exoid, const ex_field *field,
1054 const int field_count);
1055 EXODUS_EXPORT int ex_put_field_metadata(int exoid, const ex_field field);
1056 EXODUS_EXPORT int ex_put_field_suffices(int exoid, const ex_field field, const char *suffices);
1057 EXODUS_EXPORT int ex_get_field_metadata(int exoid, ex_field *field);
1058 EXODUS_EXPORT int ex_get_field_metadata_count(int exoid, ex_entity_type obj_type, ex_entity_id id);
1059 EXODUS_EXPORT int ex_get_field_suffices(int exoid, const ex_field field, char *suffices);
1060
1061 EXODUS_EXPORT int ex_get_basis_count(int exoid);
1062 EXODUS_EXPORT int ex_get_basis(int exoid, ex_basis **pbasis, int *num_basis);
1063 EXODUS_EXPORT int ex_put_basis(int exoid, const ex_basis basis);
1064
1065 EXODUS_EXPORT int ex_get_quadrature_count(int exoid);
1066 EXODUS_EXPORT int ex_get_quadrature(int exoid, ex_quadrature **pquad, int *num_quad);
1067 EXODUS_EXPORT int ex_put_quadrature(int exoid, const ex_quadrature quad);
1068
1069 /* Write arbitrary integer, double, or text attributes on an entity */
1070 EXODUS_EXPORT int ex_put_attribute(int exoid, const ex_attribute attributes);
1071 EXODUS_EXPORT int ex_put_attributes(int exoid, size_t attr_count, const ex_attribute *attributes);
1072
1073 EXODUS_EXPORT int ex_put_double_attribute(int exoid, ex_entity_type obj_type, ex_entity_id id,
1074 const char *atr_name, int num_values,
1075 const double *values);
1076 EXODUS_EXPORT int ex_put_integer_attribute(int exoid, ex_entity_type obj_type, ex_entity_id id,
1077 const char *atr_name, int num_values,
1078 const void_int *values);
1079 EXODUS_EXPORT int ex_put_text_attribute(int exoid, ex_entity_type obj_type, ex_entity_id id,
1080 const char *atr_name, const char *value);
1081
1082 /* Read attribute values on an entity */
1083 EXODUS_EXPORT int ex_get_attribute(int exoid, ex_attribute *attributes);
1084 EXODUS_EXPORT int ex_get_attributes(int exoid, size_t count, ex_attribute *attributes);
1085
1086 /* Query attributes on an entity */
1087 EXODUS_EXPORT int ex_get_attribute_count(int exoid, ex_entity_type obj_type, ex_entity_id id);
1088 EXODUS_EXPORT int ex_get_attribute_param(int exoid, ex_entity_type obj_type, ex_entity_id id,
1089 ex_attribute *attributes);
1090
1091 /* Write Node Edge Face or Side Set Parameters */
1092 EXODUS_EXPORT int ex_put_set_param(int exoid, ex_entity_type set_type, ex_entity_id set_id,
1093 int64_t num_entries_in_set, int64_t num_dist_fact_in_set);
1094
1095 /* Read Node Edge Face or Side Set Parameters */
1096 EXODUS_EXPORT int ex_get_set_param(int exoid, ex_entity_type set_type, ex_entity_id set_id,
1097 void_int *num_entry_in_set, void_int *num_dist_fact_in_set);
1098
1099 /* Write a Node Edge Face or Side Set */
1100 EXODUS_EXPORT int ex_put_set(int exoid, ex_entity_type set_type, ex_entity_id set_id,
1101 const void_int *set_entry_list, const void_int *set_extra_list);
1102
1103 EXODUS_EXPORT int ex_get_partial_set(int exoid, ex_entity_type set_type, ex_entity_id set_id,
1104 int64_t offset, int64_t num_to_get, void_int *set_entry_list,
1105 void_int *set_extra_list);
1106
1107 EXODUS_EXPORT int ex_put_partial_set(int exoid, ex_entity_type set_type, ex_entity_id set_id,
1108 int64_t offset, int64_t num_to_put,
1109 const void_int *set_entry_list,
1110 const void_int *set_extra_list);
1111
1112 /* Read a Node Edge Face or Side Set */
1113 EXODUS_EXPORT int ex_get_set(int exoid, ex_entity_type set_type, ex_entity_id set_id,
1114 void_int *set_entry_list, void_int *set_extra_list);
1115
1116 /* Write Node Edge Face or Side Set Distribution Factors */
1117 EXODUS_EXPORT int ex_put_set_dist_fact(int exoid, ex_entity_type set_type, ex_entity_id set_id,
1118 const void *set_dist_fact);
1119
1120 /* Read Node Edge Face or Side Set Distribution Factors */
1121 EXODUS_EXPORT int ex_get_set_dist_fact(int exoid, ex_entity_type set_type, ex_entity_id set_id,
1122 void *set_dist_fact);
1123
1124 EXODUS_EXPORT int ex_get_partial_set_dist_fact(int exoid, ex_entity_type set_type,
1125 ex_entity_id set_id, int64_t offset,
1126 int64_t num_to_put, void *set_dist_fact);
1127
1128 /* Write Concatenated Node Edge Face or Side Sets */
1129 EXODUS_EXPORT int ex_put_concat_sets(int exoid, ex_entity_type set_type,
1130 const struct ex_set_specs *set_specs);
1131
1132 /* Read Concatenated Node Edge Face or Side Sets */
1133 EXODUS_EXPORT int ex_get_concat_sets(int exoid, ex_entity_type set_type,
1134 struct ex_set_specs *set_specs);
1135
1136 /* Write Concatenated Node Edge Face or Side Sets */
1137 EXODUS_EXPORT int ex_put_sets(int exoid, size_t set_count, const struct ex_set *sets);
1138
1139 /* Read Concatenated Node Edge Face or Side Sets */
1140 EXODUS_EXPORT int ex_get_sets(int exoid, size_t set_count, struct ex_set *sets);
1141
1142 EXODUS_EXPORT int ex_put_partial_num_map(int exoid, ex_entity_type map_type, ex_entity_id map_id,
1143 int64_t ent_start, int64_t ent_count, const void_int *map);
1144
1145 EXODUS_EXPORT int ex_put_partial_set_dist_fact(int exoid, ex_entity_type set_type,
1146 ex_entity_id set_id, int64_t offset,
1147 int64_t num_to_put, const void *set_dist_fact);
1148
1149 /* TODO */
1150 EXODUS_EXPORT int ex_get_concat_side_set_node_count(int exoid, int *side_set_node_cnt_list);
1151
1152 /* TODO */
1153 EXODUS_EXPORT int ex_get_side_set_node_list_len(int exoid, ex_entity_id side_set_id,
1154 void_int *side_set_node_list_len);
1155
1156 /* TODO */
1157 EXODUS_EXPORT int ex_get_side_set_node_count(int exoid, ex_entity_id side_set_id,
1158 int *side_set_node_cnt_list);
1159
1160 /* TODO */
1161 EXODUS_EXPORT int ex_get_side_set_node_list(int exoid, ex_entity_id side_set_id,
1162 void_int *side_set_node_cnt_list,
1163 void_int *side_set_node_list);
1164
1165 /*=============================================================================
1166 * NS, SS & EB Global Parameter Routines
1167 *===========================================================================*/
1168 EXODUS_EXPORT int ex_get_ns_param_global(int exoid, /**< NetCDF/Exodus file ID */
1169 void_int *global_ids, /**< Global IDs of node sets */
1170 void_int *node_cnts, /**< Count of nodes in node sets */
1171 void_int *df_cnts /**< Count of dist. factors in ns */
1172 );
1173
1174 EXODUS_EXPORT int
1175 ex_put_ns_param_global(int exoid, /**< NemesisI file ID */
1176 const void_int *global_ids, /**< Vector of global node-set IDs */
1177 const void_int *node_cnts, /**< Vector of node counts in node-sets */
1178 const void_int *df_cnts /**< Vector of dist factor counts in node-sets */
1179 );
1180
1181 EXODUS_EXPORT int ex_get_ss_param_global(int exoid, /**< NetCDF/Exodus file ID */
1182 void_int *global_ids, /**< Global side-set IDs */
1183 void_int *side_cnts, /**< Global side count */
1184 void_int *df_cnts /**< Global dist. factor count */
1185 );
1186
1187 EXODUS_EXPORT int ex_put_ss_param_global(
1188 int exoid, /**< NemesisI file ID */
1189 const void_int *global_ids, /**< Vector of global side-set IDs */
1190 const void_int *side_cnts, /**< Vector of element/side counts in each side set */
1191 const void_int *df_cnts /**< Vector of dist. factor */
1192 /**< counts in each side set */
1193 );
1194
1195 EXODUS_EXPORT int
1196 ex_get_eb_info_global(int exoid, /**< NemesisI file ID */
1197 void_int *el_blk_ids, /**< Vector of global element IDs */
1198 void_int *el_blk_cnts /**< Vector of global element counts */
1199 );
1200
1201 EXODUS_EXPORT int
1202 ex_put_eb_info_global(int exoid, /**< NemesisI file ID */
1203 const void_int *el_blk_ids, /**< Vector of global element IDs */
1204 const void_int *el_blk_cnts /**< Vector of global element counts */
1205 );
1206
1207 /*=============================================================================
1208 * NS, SS & EB Subset Routines
1209 *===========================================================================*/
1210 EXODUS_EXPORT int ex_get_elem_type(int exoid, /**< NetCDF/Exodus file ID */
1211 ex_entity_id elem_blk_id, /**< Element block ID */
1212 char *elem_type /**< The name of the element type */
1213 );
1214
1215 /*=============================================================================
1216 * Number Map Routines
1217 *===========================================================================*/
1218 EXODUS_EXPORT int ex_get_processor_node_maps(int exoid, /**< NetCDF/Exodus file ID */
1219 void_int *node_mapi, /**< Internal FEM node IDs */
1220 void_int *node_mapb, /**< Border FEM node IDs */
1221 void_int *node_mape, /**< External FEM node IDs */
1222 int processor /**< Processor IDs */
1223 );
1224
1225 EXODUS_EXPORT int
1226 ex_put_processor_node_maps(int exoid, /**< NetCDF/Exodus file ID */
1227 const void_int *node_mapi, /**< Internal FEM node IDs */
1228 const void_int *node_mapb, /**< Border FEM node IDs */
1229 const void_int *node_mape, /**< External FEM node IDs */
1230 int proc_id /**< This processor ID */
1231 );
1232
1233 EXODUS_EXPORT int ex_get_processor_elem_maps(int exoid, /**< NetCDF/Exodus file ID */
1234 void_int *elem_mapi, /**< Internal element IDs */
1235 void_int *elem_mapb, /**< Border element IDs */
1236 int processor /**< Processor ID */
1237 );
1238
1239 EXODUS_EXPORT int
1240 ex_put_processor_elem_maps(int exoid, /**< NetCDF/Exodus file ID */
1241 const void_int *elem_mapi, /**< Internal FEM element IDs */
1242 const void_int *elem_mapb, /**< Border FEM element IDs */
1243 int processor /**< This processor ID */
1244 );
1245
1246 /*=============================================================================
1247 * Communications Maps Routines
1248 *===========================================================================*/
1249
1250 EXODUS_EXPORT int
1251 ex_get_cmap_params(int exoid, /**< NetCDF/Exodus file ID */
1252 void_int *node_cmap_ids, /**< Nodal comm. map IDs */
1253 void_int *node_cmap_node_cnts, /**< Number of nodes in each map */
1254 void_int *elem_cmap_ids, /**< Elemental comm. map IDs */
1255 void_int *elem_cmap_elem_cnts, /**< Number of elems in each map */
1256 int processor /**< This processor ID */
1257 );
1258
1259 EXODUS_EXPORT int
1260 ex_put_cmap_params(int exoid, /**< NetCDF/Exodus file ID */
1261 const void_int *node_cmap_ids, /**< Node map IDs */
1262 const void_int *node_cmap_node_cnts, /**< Nodes in nodal comm */
1263 const void_int *elem_cmap_ids, /**< Elem map IDs */
1264 const void_int *elem_cmap_elem_cnts, /**< Elems in elemental comm */
1265 int64_t processor /**< This processor ID */
1266 );
1267
1268 EXODUS_EXPORT int
1269 ex_put_cmap_params_cc(int exoid, /**< NetCDF/Exodus file ID */
1270 const void_int *node_cmap_ids, /**< Node map IDs */
1271 const void_int *node_cmap_node_cnts, /**< Nodes in nodal comm */
1272 const void_int *node_proc_ptrs, /**< Pointer into array for node maps */
1273 const void_int *elem_cmap_ids, /**< Elem map IDs */
1274 const void_int *elem_cmap_elem_cnts, /**< Elems in elemental comm */
1275 const void_int *elem_proc_ptrs /**< Pointer into array for elem maps */
1276 );
1277
1278 EXODUS_EXPORT int ex_get_node_cmap(int exoid, /**< NetCDF/Exodus file ID */
1279 ex_entity_id map_id, /**< Map ID */
1280 void_int *node_ids, /**< FEM node IDs */
1281 void_int *proc_ids, /**< Processor IDs */
1282 int processor /**< This processor ID */
1283 );
1284
1285 EXODUS_EXPORT int ex_put_node_cmap(int exoid, /**< NetCDF/Exodus file ID */
1286 ex_entity_id map_id, /**< Nodal comm map ID */
1287 const void_int *node_ids, /**< FEM node IDs */
1288 const void_int *proc_ids, /**< Processor IDs */
1289 int processor /**< This processor ID */
1290 );
1291
1292 EXODUS_EXPORT int
1293 ex_put_partial_node_cmap(int exoid, /**< NetCDF/Exodus file ID */
1294 ex_entity_id map_id, /**< Nodal comm map ID */
1295 int64_t start_entity_num, /**< Starting position to write to */
1296 int64_t num_entities, /**< Number of nodes to write */
1297 const void_int *node_ids, /**< FEM node IDs */
1298 const void_int *proc_ids, /**< Processor IDs */
1299 int processor /**< This processor ID */
1300 );
1301
1302 EXODUS_EXPORT int ex_get_elem_cmap(int exoid, /**< NetCDF/Exodus file ID */
1303 ex_entity_id map_id, /**< Elemental comm map ID */
1304 void_int *elem_ids, /**< Element IDs */
1305 void_int *side_ids, /**< Element side IDs */
1306 void_int *proc_ids, /**< Processor IDs */
1307 int processor /**< This processor ID */
1308 );
1309
1310 EXODUS_EXPORT int ex_put_elem_cmap(int exoid, /**< NetCDF/Exodus file ID */
1311 ex_entity_id map_id, /**< Elemental comm map ID */
1312 const void_int *elem_ids, /**< Vector of element IDs */
1313 const void_int *side_ids, /**< Vector of side IDs */
1314 const void_int *proc_ids, /**< Vector of processor IDs */
1315 int processor /**< This processor ID */
1316 );
1317
1318 EXODUS_EXPORT int ex_initialize_basis_struct(ex_basis *basis, size_t num_basis, int mode);
1319 EXODUS_EXPORT int ex_initialize_quadrature_struct(ex_quadrature *quad, size_t num_quad, int mode);
1320
1321 EXODUS_EXPORT const char *ex_component_field_name(ex_field *field,
1322 int component[EX_MAX_FIELD_NESTING]);
1323 EXODUS_EXPORT const char *ex_field_component_suffix(ex_field *field, int nest_level, int component);
1324 EXODUS_EXPORT int ex_field_cardinality(const ex_field_type field_type);
1325 EXODUS_EXPORT const char *ex_field_type_name(const ex_field_type field_type);
1326 EXODUS_EXPORT ex_field_type ex_string_to_field_type_enum(const char *field_name);
1327 EXODUS_EXPORT const char *ex_field_type_enum_to_string(const ex_field_type field_type);
1328
1329 /*! @} */
1330
1331 /* Deprecated Code Handling Options:
1332 * 1. Ignore -- treat deprecated functions as normal non-deprecated functions (default)
1333 * 2. Delete -- the deprecated functions are not defined or compiled (SEACAS_HIDE_DEPRECATED_CODE is
1334 * defined)
1335 * 3. Warn -- if used in client code, issue a warning. (SEACAS_WARN_DEPRECATED_CODE is defined)
1336 *
1337 * The symbols SEACAS_HIDE_DEPRECATED_CODE and SEACAS_DEPRECATED are defined in exodus_config.h
1338 * In a TriBITs-based system, this include file is generated from cmake-variable definitions.
1339 * In other build systems, the exodus_config.h file is hard-wired.
1340 */
1341
1342 #if !defined(SEACAS_HIDE_DEPRECATED_CODE)
1343 /* ========================================================================
1344 * Deprecated functiona
1345 */
1346
1347 #ifndef SEACAS_DEPRECATED
1348 #define SEACAS_DEPRECATED
1349 #endif
1350
1351 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_glob_vars(int exoid, int time_step, int num_glob_vars,
1352 void *glob_var_vals);
1353
1354 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_glob_var_time(int exoid, int glob_var_index,
1355 int beg_time_step, int end_time_step,
1356 void *glob_var_vals);
1357
1358 SEACAS_DEPRECATED EXODUS_EXPORT int
1359 ex_get_concat_node_sets(int exoid, void_int *node_set_ids, void_int *num_nodes_per_set,
1360 void_int *num_df_per_set, void_int *node_sets_node_index,
1361 void_int *node_sets_df_index, void_int *node_sets_node_list,
1362 void *node_sets_dist_fact);
1363
1364 SEACAS_DEPRECATED EXODUS_EXPORT int
1365 ex_get_concat_side_sets(int exoid, void_int *side_set_ids, void_int *num_elem_per_set,
1366 void_int *num_dist_per_set, void_int *side_sets_elem_index,
1367 void_int *side_sets_dist_index, void_int *side_sets_elem_list,
1368 void_int *side_sets_side_list, void *side_sets_dist_fact);
1369
1370 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_attr(int exoid, ex_entity_id elem_blk_id,
1371 void *attrib);
1372
1373 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_attr_names(int exoid, ex_entity_id elem_blk_id,
1374 char **names);
1375
1376 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_blk_ids(int exoid, void_int *ids);
1377
1378 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_block(int exoid, ex_entity_id elem_blk_id,
1379 char *elem_type, void_int *num_elem_this_blk,
1380 void_int *num_nodes_per_elem,
1381 void_int *num_attr);
1382
1383 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_conn(int exoid, ex_entity_id elem_blk_id,
1384 void_int *connect);
1385
1386 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_map(int exoid, ex_entity_id map_id,
1387 void_int *elem_map);
1388
1389 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_num_map(int exoid, void_int *elem_map);
1390
1391 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_nodal_var(int exoid, int time_step, int nodal_var_index,
1392 int64_t num_nodes, void *nodal_var_vals);
1393
1394 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_nodal_var(int exoid, int time_step, int nodal_var_index,
1395 int64_t num_nodes, const void *nodal_var_vals);
1396
1397 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_nodal_var_time(int exoid, int nodal_var_index,
1398 int64_t node_number, int beg_time_step,
1399 int end_time_step, void *nodal_var_vals);
1400
1401 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_partial_nodal_var(int exoid, int time_step,
1402 int nodal_var_index,
1403 int64_t start_node, int64_t num_nodes,
1404 const void *nodal_var_vals);
1405
1406 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_partial_nodal_var(int exoid, int time_step,
1407 int nodal_var_index,
1408 int64_t start_node, int64_t num_nodes,
1409 void *var_vals);
1410
1411 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_var(int exoid, int time_step, int elem_var_index,
1412 ex_entity_id elem_blk_id,
1413 int64_t num_elem_this_blk, void *elem_var_vals);
1414
1415 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_var_tab(int exoid, int num_elem_blk,
1416 int num_elem_var, int *elem_var_tab);
1417
1418 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_elem_var_time(int exoid, int elem_var_index,
1419 int64_t elem_number, int beg_time_step,
1420 int end_time_step, void *elem_var_vals);
1421
1422 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_node_map(int exoid, ex_entity_id map_id,
1423 void_int *node_map);
1424
1425 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_node_num_map(int exoid, void_int *node_map);
1426
1427 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_node_set_param(int exoid, ex_entity_id node_set_id,
1428 void_int *num_nodes_in_set,
1429 void_int *num_df_in_set);
1430
1431 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_node_set(int exoid, ex_entity_id node_set_id,
1432 void_int *node_set_node_list);
1433
1434 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_node_set_dist_fact(int exoid, ex_entity_id node_set_id,
1435 void *node_set_dist_fact);
1436
1437 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_node_set_ids(int exoid, void_int *ids);
1438
1439 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_nset_var_tab(int exoid, int num_nodesets,
1440 int num_nset_var, int *nset_var_tab);
1441
1442 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_nset_var(int exoid, int time_step, int nset_var_index,
1443 ex_entity_id nset_id,
1444 int64_t num_node_this_nset,
1445 void *nset_var_vals);
1446
1447 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_one_elem_attr(int exoid, ex_entity_id elem_blk_id,
1448 int attrib_index, void *attrib);
1449
1450 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_side_set(int exoid, ex_entity_id side_set_id,
1451 void_int *side_set_elem_list,
1452 void_int *side_set_side_list);
1453
1454 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_side_set_dist_fact(int exoid, ex_entity_id side_set_id,
1455 void *side_set_dist_fact);
1456
1457 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_side_set_ids(int exoid, void_int *ids);
1458
1459 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_side_set_param(int exoid, ex_entity_id side_set_id,
1460 void_int *num_side_in_set,
1461 void_int *num_dist_fact_in_set);
1462
1463 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_sset_var(int exoid, int time_step, int sset_var_index,
1464 ex_entity_id sset_id,
1465 int64_t num_side_this_sset,
1466 void *sset_var_vals);
1467
1468 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_sset_var_tab(int exoid, int num_sidesets,
1469 int num_sset_var, int *sset_var_tab);
1470
1471 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_var_names(int exoid, const char *var_type, int num_vars,
1472 char *var_names[]);
1473
1474 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_var_name(int exoid, const char *var_type, int var_num,
1475 char *var_name);
1476
1477 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_var_param(int exoid, const char *var_type,
1478 int *num_vars);
1479
1480 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_var_tab(int exoid, const char *var_type, int num_blk,
1481 int num_var, int *var_tab);
1482
1483 SEACAS_DEPRECATED EXODUS_EXPORT int
1484 ex_put_concat_node_sets(int exoid, void_int *node_set_ids, void_int *num_nodes_per_set,
1485 void_int *num_dist_per_set, void_int *node_sets_node_index,
1486 void_int *node_sets_df_index, void_int *node_sets_node_list,
1487 void *node_sets_dist_fact);
1488
1489 SEACAS_DEPRECATED EXODUS_EXPORT int
1490 ex_put_concat_side_sets(int exoid, void_int *side_set_ids, void_int *num_elem_per_set,
1491 void_int *num_dist_per_set, void_int *side_sets_elem_index,
1492 void_int *side_sets_dist_index, void_int *side_sets_elem_list,
1493 void_int *side_sets_side_list, void *side_sets_dist_fact);
1494
1495 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_concat_var_param(int exoid, int num_g, int num_n,
1496 int num_e, int num_elem_blk,
1497 int *elem_var_tab);
1498
1499 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_elem_attr_names(int exoid, ex_entity_id elem_blk_id,
1500 char *names[]);
1501 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_elem_attr(int exoid, ex_entity_id elem_blk_id,
1502 const void *attrib);
1503
1504 SEACAS_DEPRECATED EXODUS_EXPORT int
1505 ex_put_elem_block(int exoid, ex_entity_id elem_blk_id, const char *elem_type,
1506 int64_t num_elem_this_blk, int64_t num_nodes_per_elem, int64_t num_attr_per_elem);
1507
1508 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_elem_conn(int exoid, ex_entity_id elem_blk_id,
1509 const void_int *connect);
1510
1511 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_elem_map(int exoid, ex_entity_id map_id,
1512 const void_int *elem_map);
1513
1514 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_elem_num_map(int exoid, const void_int *elem_map);
1515
1516 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_elem_var(int exoid, int time_step, int elem_var_index,
1517 ex_entity_id elem_blk_id,
1518 int64_t num_elem_this_blk,
1519 const void *elem_var_vals);
1520
1521 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_elem_var_tab(int exoid, int num_elem_blk,
1522 int num_elem_var, int *elem_var_tab);
1523
1524 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_glob_vars(int exoid, int time_step, int num_glob_vars,
1525 const void *glob_var_vals);
1526
1527 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_node_map(int exoid, ex_entity_id map_id,
1528 const void_int *node_map);
1529
1530 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_node_num_map(int exoid, const void_int *node_map);
1531
1532 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_node_set(int exoid, ex_entity_id node_set_id,
1533 const void_int *node_set_node_list);
1534
1535 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_node_set_dist_fact(int exoid, ex_entity_id node_set_id,
1536 const void *node_set_dist_fact);
1537
1538 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_node_set_param(int exoid, ex_entity_id node_set_id,
1539 int64_t num_nodes_in_set,
1540 int64_t num_dist_in_set);
1541
1542 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_nset_var(int exoid, int time_step, int nset_var_index,
1543 ex_entity_id nset_id,
1544 int64_t num_nodes_this_nset,
1545 const void *nset_var_vals);
1546
1547 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_nset_var_tab(int exoid, int num_nset, int num_nset_var,
1548 int *nset_var_tab);
1549
1550 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_one_elem_attr(int exoid, ex_entity_id elem_blk_id,
1551 int attrib_index, const void *attrib);
1552
1553 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_side_set(int exoid, ex_entity_id side_set_id,
1554 const void_int *side_set_elem_list,
1555 const void_int *side_set_side_list);
1556
1557 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_side_set_dist_fact(int exoid, ex_entity_id side_set_id,
1558 const void *side_set_dist_fact);
1559
1560 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_side_set_param(int exoid, ex_entity_id side_set_id,
1561 int64_t num_side_in_set,
1562 int64_t num_dist_fact_in_set);
1563
1564 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_sset_var(int exoid, int time_step, int sset_var_index,
1565 ex_entity_id sset_id,
1566 int64_t num_faces_this_sset,
1567 const void *sset_var_vals);
1568
1569 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_sset_var_tab(int exoid, int num_sset, int num_sset_var,
1570 int *sset_var_tab);
1571
1572 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_var_name(int exoid, const char *var_type, int var_num,
1573 const char *var_name);
1574
1575 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_var_names(int exoid, const char *var_type, int num_vars,
1576 char *var_names[]);
1577
1578 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_var_param(int exoid, const char *var_type, int num_vars);
1579
1580 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_var_tab(int exoid, const char *var_type, int num_blk,
1581 int num_var, int *var_tab);
1582
1583 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_n_coord(int exoid, int64_t start_node_num,
1584 int64_t num_nodes, void *x_coor, void *y_coor,
1585 void *z_coor);
1586
1587 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_n_nodal_var(int exoid, int time_step,
1588 int nodal_var_index, int64_t start_node,
1589 int64_t num_nodes, void *var_vals);
1590
1591 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_n_conn(int exoid, ex_entity_type blk_type,
1592 ex_entity_id blk_id, int64_t start_num,
1593 int64_t num_ent, void_int *nodeconn,
1594 void_int *edgeconn, void_int *faceconn);
1595
1596 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_n_attr(int exoid, ex_entity_type obj_type,
1597 ex_entity_id obj_id, int64_t start_num,
1598 int64_t num_ent, void *attrib);
1599
1600 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_n_one_attr(int exoid, ex_entity_type obj_type,
1601 ex_entity_id obj_id, int64_t start_num,
1602 int64_t num_ent, int attrib_index,
1603 void *attrib);
1604
1605 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_n_var(int exoid, int time_step, ex_entity_type var_type,
1606 int var_index, ex_entity_id obj_id,
1607 int64_t start_index, int64_t num_entities,
1608 void *var_vals);
1609
1610 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_n_elem_var(int exoid, int time_step, int elem_var_index,
1611 ex_entity_id elem_blk_id,
1612 int64_t num_elem_this_blk,
1613 int64_t start_elem_num, int64_t num_elem,
1614 void *elem_var_vals);
1615
1616 SEACAS_DEPRECATED EXODUS_EXPORT int
1617 ex_get_n_side_set(int exoid, /**< NetCDF/Exodus file ID */
1618 ex_entity_id side_set_id, /**< Side-set ID to read */
1619 int64_t start_side_num, /**< Starting element number */
1620 int64_t num_sides, /**< Number of sides to read */
1621 void_int *side_set_elem_list, /**< List of element IDs */
1622 void_int *side_set_side_list /**< List of side IDs */
1623 );
1624
1625 SEACAS_DEPRECATED EXODUS_EXPORT int
1626 ex_put_n_side_set(int exoid, /**< NetCDF/Exodus file ID */
1627 ex_entity_id side_set_id, /**< Side-set ID to write */
1628 int64_t start_side_num, /**< Starting element number */
1629 int64_t num_sides, /**< Number of sides to write */
1630 const void_int *side_set_elem_list, /**< List of element IDs */
1631 const void_int *side_set_side_list /**< List of side IDs */
1632 );
1633
1634 SEACAS_DEPRECATED EXODUS_EXPORT int
1635 ex_get_n_side_set_df(int exoid, /**< NetCDF/Exodus file ID */
1636 ex_entity_id side_set_id, /**< Side-set ID */
1637 int64_t start_num, /**< Starting df number */
1638 int64_t num_df_to_get, /**< Number of df's to read */
1639 void *side_set_dist_fact /**< Distribution factors */
1640 );
1641
1642 SEACAS_DEPRECATED EXODUS_EXPORT int
1643 ex_put_n_side_set_df(int exoid, /**< NetCDF/Exodus file ID */
1644 ex_entity_id side_set_id, /**< Side-set ID */
1645 int64_t start_num, /**< Starting df number */
1646 int64_t num_df_to_get, /**< Number of df's to write */
1647 void *side_set_dist_fact /**< Distribution factors */
1648 );
1649
1650 SEACAS_DEPRECATED EXODUS_EXPORT int
1651 ex_get_n_node_set(int exoid, /**< NetCDF/Exodus file ID */
1652 ex_entity_id node_set_id, /**< Node set ID */
1653 int64_t start_node_num, /**< Node index to start reading at */
1654 int64_t num_nodes, /**< Number of nodes to read */
1655 void_int *node_set_node_list /**< List of nodes in node set */
1656 );
1657
1658 SEACAS_DEPRECATED EXODUS_EXPORT int
1659 ex_put_n_node_set(int exoid, /**< NetCDF/Exodus file ID */
1660 ex_entity_id node_set_id, /**< Node set ID */
1661 int64_t start_node_num, /**< Node index to start writing at */
1662 int64_t num_nodes, /**< Number of nodes to write */
1663 const void_int *node_set_node_list /**< List of nodes in node set */
1664 );
1665
1666 SEACAS_DEPRECATED EXODUS_EXPORT int
1667 ex_get_n_node_set_df(int exoid, /**< NetCDF/Exodus file ID */
1668 ex_entity_id node_set_id, /**< Node-set ID */
1669 int64_t start_num, /**< Starting df number */
1670 int64_t num_df_to_get, /**< Number of df's to read */
1671 void *node_set_dist_fact /**< Distribution factors */
1672 );
1673
1674 SEACAS_DEPRECATED EXODUS_EXPORT int
1675 ex_put_n_node_set_df(int exoid, /**< NetCDF/Exodus file ID */
1676 ex_entity_id node_set_id, /**< Node-set ID */
1677 int64_t start_num, /**< Starting df number */
1678 int64_t num_df_to_get, /**< Number of df's to write */
1679 void *node_set_dist_fact /**< Distribution factors */
1680 );
1681
1682 SEACAS_DEPRECATED EXODUS_EXPORT int
1683 ex_get_n_elem_conn(int exoid, /**< NetCDF/Exodus file ID */
1684 ex_entity_id elem_blk_id, /**< Element block ID */
1685 int64_t start_elem_num, /**< Starting position to read from */
1686 int64_t num_elems, /**< Number of elements to read */
1687 void_int *connect /**< Connectivity vector */
1688 );
1689
1690 SEACAS_DEPRECATED EXODUS_EXPORT int
1691 ex_put_n_elem_conn(int exoid, /**< NetCDF/Exodus file ID */
1692 ex_entity_id elem_blk_id, /**< Element block ID */
1693 int64_t start_elem_num, /**< Starting position to write to */
1694 int64_t num_elems, /**< Number of elements to write */
1695 const void_int *connect /**< Connectivity vector */
1696 );
1697
1698 SEACAS_DEPRECATED EXODUS_EXPORT int
1699 ex_get_n_elem_attr(int exoid, /**< NetCDF/Exodus file ID */
1700 ex_entity_id elem_blk_id, /**< Element block ID */
1701 int64_t start_elem_num, /**< Starting position to read from */
1702 int64_t num_elems, /**< Number of elements to read */
1703 void *attrib /**< Attribute */
1704 );
1705
1706 SEACAS_DEPRECATED EXODUS_EXPORT int
1707 ex_put_n_elem_attr(int exoid, /**< NetCDF/Exodus file ID */
1708 ex_entity_id elem_blk_id, /**< Element block ID */
1709 int64_t start_elem_num, /**< Starting position to write to */
1710 int64_t num_elems, /**< Number of elements to write */
1711 void *attrib /**< Attribute */
1712 );
1713
1714 SEACAS_DEPRECATED EXODUS_EXPORT int
1715 ex_get_n_elem_num_map(int exoid, /**< NetCDF/Exodus file ID */
1716 int64_t start_ent, /**< Starting position to read from */
1717 int64_t num_ents, /**< Number of elements to read */
1718 void_int *elem_map /**< element map numbers */
1719 );
1720
1721 SEACAS_DEPRECATED EXODUS_EXPORT int
1722 ex_get_n_node_num_map(int exoid, /**< NetCDF/Exodus file ID */
1723 int64_t start_ent, /**< starting node number */
1724 int64_t num_ents, /**< number of nodes to read */
1725 void_int *node_map /**< vector for node map */
1726 );
1727
1728 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_n_coord(int exoid, int64_t start_node_num,
1729 int64_t num_nodes, const void *x_coor,
1730 const void *y_coor, const void *z_coor);
1731
1732 SEACAS_DEPRECATED EXODUS_EXPORT int
1733 ex_put_n_elem_num_map(int exoid, int64_t start_ent, int64_t num_ents, const void_int *elem_map);
1734
1735 SEACAS_DEPRECATED EXODUS_EXPORT int
1736 ex_put_n_node_num_map(int exoid, int64_t start_ent, int64_t num_ents, const void_int *node_map);
1737
1738 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_n_one_attr(int exoid, ex_entity_type obj_type,
1739 ex_entity_id obj_id, int64_t start_num,
1740 int64_t num_ent, int attrib_index,
1741 const void *attrib);
1742
1743 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_n_var(int exoid, int time_step, ex_entity_type var_type,
1744 int var_index, ex_entity_id obj_id,
1745 int64_t start_index, int64_t num_entities,
1746 const void *var_vals);
1747
1748 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_n_nodal_var(int exoid, int time_step,
1749 int nodal_var_index, int64_t start_node,
1750 int64_t num_nodes,
1751 const void *nodal_var_vals);
1752
1753 SEACAS_DEPRECATED EXODUS_EXPORT int
1754 ex_get_partial_elem_var(int exoid, int time_step, int elem_var_index, ex_entity_id elem_blk_id,
1755 int64_t num_elem_this_blk, int64_t start_elem_num, int64_t num_elem,
1756 void *elem_var_vals);
1757
1758 SEACAS_DEPRECATED EXODUS_EXPORT int ex_get_partial_elem_map(int exoid, ex_entity_id map_id,
1759 int64_t ent_start, int64_t ent_count,
1760 void_int *elem_map);
1761
1762 SEACAS_DEPRECATED EXODUS_EXPORT int
1763 ex_get_partial_elem_conn(int exoid, /**< NetCDF/Exodus file ID */
1764 ex_entity_id elem_blk_id, /**< Element block ID */
1765 int64_t start_elem_num, /**< Starting position to read from */
1766 int64_t num_elems, /**< Number of elements to read */
1767 void_int *connect /**< Connectivity vector */
1768 );
1769
1770 SEACAS_DEPRECATED EXODUS_EXPORT int
1771 ex_get_partial_elem_attr(int exoid, /**< NetCDF/Exodus file ID */
1772 ex_entity_id elem_blk_id, /**< Element block ID */
1773 int64_t start_elem_num, /**< Starting position to read from */
1774 int64_t num_elems, /**< Number of elements to read */
1775 void *attrib /**< Attribute */
1776 );
1777
1778 SEACAS_DEPRECATED EXODUS_EXPORT int
1779 ex_get_partial_elem_num_map(int exoid, /**< NetCDF/Exodus file ID */
1780 int64_t start_ent, /**< Starting position to read from */
1781 int64_t num_ents, /**< Number of elements to read */
1782 void_int *elem_map /**< element map numbers */
1783 );
1784
1785 SEACAS_DEPRECATED EXODUS_EXPORT int
1786 ex_get_partial_node_num_map(int exoid, /**< NetCDF/Exodus file ID */
1787 int64_t start_ent, /**< starting node number */
1788 int64_t num_ents, /**< number of nodes to read */
1789 void_int *node_map /**< vector for node map */
1790 );
1791
1792 SEACAS_DEPRECATED EXODUS_EXPORT int
1793 ex_get_partial_node_set(int exoid, /**< NetCDF/Exodus file ID */
1794 ex_entity_id node_set_id, /**< Node set ID */
1795 int64_t start_node_num, /**< Node index to start reading at */
1796 int64_t num_nodes, /**< Number of nodes to read */
1797 void_int *node_set_node_list /**< List of nodes in node set */
1798 );
1799
1800 SEACAS_DEPRECATED EXODUS_EXPORT int
1801 ex_get_partial_node_set_df(int exoid, /**< NetCDF/Exodus file ID */
1802 ex_entity_id node_set_id, /**< Node-set ID */
1803 int64_t start_num, /**< Starting df number */
1804 int64_t num_df_to_get, /**< Number of df's to read */
1805 void *node_set_dist_fact /**< Distribution factors */
1806 );
1807
1808 SEACAS_DEPRECATED EXODUS_EXPORT int
1809 ex_get_partial_side_set(int exoid, /**< NetCDF/Exodus file ID */
1810 ex_entity_id side_set_id, /**< Side-set ID to read */
1811 int64_t start_side_num, /**< Starting element number */
1812 int64_t num_sides, /**< Number of sides to read */
1813 void_int *side_set_elem_list, /**< List of element IDs */
1814 void_int *side_set_side_list /**< List of side IDs */
1815 );
1816
1817 SEACAS_DEPRECATED EXODUS_EXPORT int
1818 ex_get_partial_side_set_df(int exoid, /**< NetCDF/Exodus file ID */
1819 ex_entity_id side_set_id, /**< Side-set ID */
1820 int64_t start_num, /**< Starting df number */
1821 int64_t num_df_to_get, /**< Number of df's to read */
1822 void *side_set_dist_fact /**< Distribution factors */
1823 );
1824
1825 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_partial_node_num_map(int exoid, int64_t start_ent,
1826 int64_t num_ents,
1827 const void_int *node_map);
1828
1829 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_partial_elem_num_map(int exoid, int64_t start_ent,
1830 int64_t num_ents,
1831 const void_int *elem_map);
1832
1833 SEACAS_DEPRECATED EXODUS_EXPORT int ex_put_partial_elem_map(int exoid, ex_entity_id map_id,
1834 int64_t ent_start, int64_t ent_count,
1835 const void_int *elem_map);
1836
1837 SEACAS_DEPRECATED EXODUS_EXPORT int
1838 ex_put_partial_side_set(int exoid, /**< NetCDF/Exodus file ID */
1839 ex_entity_id side_set_id, /**< Side-set ID to write */
1840 int64_t start_side_num, /**< Starting element number */
1841 int64_t num_sides, /**< Number of sides to write */
1842 const void_int *side_set_elem_list, /**< List of element IDs */
1843 const void_int *side_set_side_list /**< List of side IDs */
1844 );
1845
1846 SEACAS_DEPRECATED EXODUS_EXPORT int
1847 ex_put_partial_side_set_df(int exoid, /**< NetCDF/Exodus file ID */
1848 ex_entity_id side_set_id, /**< Side-set ID */
1849 int64_t start_num, /**< Starting df number */
1850 int64_t num_df_to_get, /**< Number of df's to write */
1851 void *side_set_dist_fact /**< Distribution factors */
1852 );
1853
1854 SEACAS_DEPRECATED EXODUS_EXPORT int
1855 ex_put_partial_node_set(int exoid, /**< NetCDF/Exodus file ID */
1856 ex_entity_id node_set_id, /**< Node set ID */
1857 int64_t start_node_num, /**< Node index to start writing at */
1858 int64_t num_nodes, /**< Number of nodes to write */
1859 const void_int *node_set_node_list /**< List of nodes in node set */
1860 );
1861
1862 SEACAS_DEPRECATED EXODUS_EXPORT int
1863 ex_put_partial_node_set_df(int exoid, /**< NetCDF/Exodus file ID */
1864 ex_entity_id node_set_id, /**< Node-set ID */
1865 int64_t start_num, /**< Starting df number */
1866 int64_t num_df_to_get, /**< Number of df's to write */
1867 void *node_set_dist_fact /**< Distribution factors */
1868 );
1869
1870 SEACAS_DEPRECATED EXODUS_EXPORT int
1871 ex_put_partial_elem_conn(int exoid, /**< NetCDF/Exodus file ID */
1872 ex_entity_id elem_blk_id, /**< Element block ID */
1873 int64_t start_elem_num, /**< Starting position to write to */
1874 int64_t num_elems, /**< Number of elements to write */
1875 const void_int *connect /**< Connectivity vector */
1876 );
1877
1878 SEACAS_DEPRECATED EXODUS_EXPORT int
1879 ex_put_partial_elem_attr(int exoid, /**< NetCDF/Exodus file ID */
1880 ex_entity_id elem_blk_id, /**< Element block ID */
1881 int64_t start_elem_num, /**< Starting position to write to */
1882 int64_t num_elems, /**< Number of elements to write */
1883 void *attrib /**< Attribute */
1884 );
1885
1886 SEACAS_DEPRECATED EXODUS_EXPORT int
1887 ex_put_elem_var_slab(int exoid, /**< NetCDF/Exodus file ID */
1888 int time_step, /**< time index */
1889 int elem_var_index, /**< elemental variable index */
1890 ex_entity_id elem_blk_id, /**< elemental block id */
1891 int64_t start_pos, /**< Starting position to write to */
1892 int64_t num_vals, /**< Number of elements to write */
1893 void *elem_var_vals /**< variable values */
1894 );
1895
1896 SEACAS_DEPRECATED EXODUS_EXPORT int
1897 ex_put_nodal_var_slab(int exoid, /**< NetCDF/Exodus file ID */
1898 int time_step, /**< The time step index */
1899 int nodal_var_index, /**< Nodal variable index */
1900 int64_t start_pos, /**< Start position for write */
1901 int64_t num_vals, /**< Number of nodal variables */
1902 void *nodal_var_vals /**< Nodal variable values */
1903 );
1904
1905 #endif
1906 /* End of Deprecated functions and their replacements
1907 * ======================================================================== */
1908
1909 /* ERROR CODE DEFINITIONS AND STORAGE */
1910 EXODUS_EXPORT int exoptval; /**< error reporting flag (default is quiet) */
1911 #if defined(EXODUS_THREADSAFE)
1912 #if !defined(exerrval)
1913 /* In both exodusII.h and exodusII_int.h */
1914 typedef struct EX_errval
1915 {
1916 int errval;
1917 char last_pname[MAX_ERR_LENGTH];
1918 char last_errmsg[MAX_ERR_LENGTH];
1919 int last_err_num;
1920 } EX_errval_t;
1921
1922 EXODUS_EXPORT EX_errval_t *ex_errval;
1923 #define exerrval ex_errval->errval
1924 #endif
1925 #else
1926 EXODUS_EXPORT int exerrval; /**< shared error return value */
1927 #endif
1928
1929 EXODUS_EXPORT char *ex_name_of_object(ex_entity_type obj_type);
1930 EXODUS_EXPORT ex_entity_type ex_var_type_to_ex_entity_type(char var_type);
1931 EXODUS_EXPORT int ex_set_parallel(int exoid, int is_parallel);
1932
1933 /* Should be internal use only, but was in external include file for
1934 nemesis and some codes are using the function
1935 */
1936 EXODUS_EXPORT int ex_get_idx(int exoid, /**< NetCDF/Exodus file ID */
1937 const char *ne_var_name, /**< Nemesis index variable name */
1938 int64_t *my_index, /**< array of length 2 to hold results */
1939 int pos /**< position of this proc/cmap in index */
1940 );
1941
1942 /**
1943 * \defgroup ErrorReturnCodes Error return codes - #exerrval return values
1944 * @{
1945 */
1946 enum ex_error_return_code {
1947 EX_MEMFAIL = 1000, /**< memory allocation failure flag def */
1948 EX_BADFILEMODE = 1001, /**< bad file mode def */
1949 EX_BADFILEID = 1002, /**< bad file id def */
1950 EX_WRONGFILETYPE = 1003, /**< wrong file type for function */
1951 EX_LOOKUPFAIL = 1004, /**< id table lookup failed */
1952 EX_BADPARAM = 1005, /**< bad parameter passed */
1953 EX_INTERNAL = 1006, /**< internal logic error */
1954 EX_DUPLICATEID = 1007, /**< duplicate id found */
1955 EX_DUPLICATEOPEN = 1008, /**< duplicate open */
1956 EX_BADFILENAME = 1009, /**< empty or null filename specified */
1957 EX_MSG = -1000, /**< message print code - no error implied */
1958 EX_PRTLASTMSG = -1001, /**< print last error message msg code */
1959 EX_NOTROOTID = -1002, /**< file id is not the root id; it is a subgroup id */
1960 EX_LASTERR = -1003, /**< in ex_err, use existing err_num value */
1961 EX_NULLENTITY = -1006, /**< null entity found */
1962 EX_NOENTITY = -1007, /**< no entities of that type on database */
1963 EX_NOTFOUND = -1008, /**< could not find requested variable on database */
1964 EX_INTSIZEMISMATCH =
1965 -1009, /**< integer sizes do not match on input/output databases in ex_copy */
1966
1967 EX_FATAL = -1, /**< fatal error flag def */
1968 EX_NOERR = 0, /**< no error flag def */
1969 EX_WARN = 1 /**< warning flag def */
1970 };
1971 typedef enum ex_error_return_code ex_error_return_code;
1972
1973 /** @} */
1974
1975 #ifdef __cplusplus
1976 } /* close brackets on extern "C" declaration */
1977 #endif