Exodus 7.10

exodusII_int.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2005-2017 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 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
17 *
18 * * Neither the name of NTESS nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 */
35 /*****************************************************************************
36 *
37 * exodusII_int.h - ExodusII header file for internal Exodus call use only
38 *
39 */
40
41 #ifndef EXODUS_II_INT_HDR
42 #define EXODUS_II_INT_HDR
43
44 #include "exodus_config.h"
45
46 #if defined(EXODUS_THREADSAFE)
47 #include <pthread.h>
48 #endif
49
50 #include "netcdf.h"
51 #define NC_HAVE_META_H
52 #if defined(NC_HAVE_META_H)
53 #include "netcdf_meta.h"
54 #endif
55
56 #ifdef _WIN32
57 #define PRId64 "I64d"
58 #else
59 #include <inttypes.h>
60 #endif
61
62 #ifndef __APPLE__
63 #if defined __STDC__ || defined __cplusplus
64 #include <stdlib.h>
65 #endif
66 #endif
67
68 #ifdef _MSC_VER
69 #pragma warning(disable : 4127)
70 #pragma warning(disable : 4706)
71 #pragma warning(disable : 4701)
72 #endif
73
74 #if defined(__BORLANDC__)
75 #pragma warn - 8004 /* "assigned a value that is never used" */
76 #endif
77
78 #include <stdio.h>
79
80 #if defined(_MSC_VER) && _MSC_VER < 1900
81 #define __func__ __FUNCTION__
82 #define snprintf _snprintf
83 #endif
84
85 #ifdef __cplusplus
86 extern "C" {
87 #endif
88
89 /* A format string for outputting size_t ... */
90 #if defined(__STDC_VERSION__)
91 #if (__STDC_VERSION__ >= 199901L)
92 #define ST_ZU "zu"
93 #else
94 #define ST_ZU "lu"
95 #endif
96 #else
97 #define ST_ZU "lu"
98 #endif
99
100 #define MAX_VAR_NAME_LENGTH 32 /**< Internal use only */
101
102 /* Default "filesize" for newly created files.
103 * Set to 0 for normal filesize setting.
104 * Set to 1 for EXODUS_LARGE_MODEL setting to be the default
105 */
106 #define EXODUS_DEFAULT_SIZE 1
107
108 /* Used to map between root (file id) and group ids when using groups */
109 #define EX_FILE_ID_MASK (0xffff0000) /* Must match FILE_ID_MASK in netcdf nc4internal.h */
110 #define EX_GRP_ID_MASK (0x0000ffff) /* Must match GRP_ID_MASK in netcdf nc4internal.h */
111
112 void ex_reset_error_status();
113
114 #if defined(EXODUS_THREADSAFE)
115 #if !defined(exerrval)
116 /* In both exodusII.h and exodusII_int.h */
117 typedef struct EX_errval
118 {
119 int errval;
120 char last_pname[MAX_ERR_LENGTH];
121 char last_errmsg[MAX_ERR_LENGTH];
122 int last_err_num;
123 } EX_errval_t;
124
125 EXODUS_EXPORT EX_errval_t *ex_errval;
126 #define exerrval ex_errval->errval
127 #endif
128
129 extern pthread_once_t EX_first_init_g;
130
131 typedef struct EX_mutex_struct
132 {
133 pthread_mutex_t atomic_lock; /* lock for atomicity of new mechanism */
134 pthread_mutexattr_t attribute;
135 } EX_mutex_t;
136
137 extern EX_mutex_t EX_g;
138 extern int ex_mutex_lock(EX_mutex_t *mutex);
139 extern int ex_mutex_unlock(EX_mutex_t *mutex);
140 extern void ex_pthread_first_thread_init(void);
141 extern EX_errval_t *exerrval_get();
142
143 #define EX_FUNC_ENTER() \
144 do { \
145 /* Initialize the thread-safe code */ \
146 pthread_once(&EX_first_init_g, ex_pthread_first_thread_init); \
147 \
148 /* Grab the mutex for the library */ \
149 ex_mutex_lock(&EX_g); \
150 ex_errval = exerrval_get(); \
151 exerrval = 0; \
152 ex_errval->last_err_num = 0; \
153 } while (0)
154
155 #define EX_FUNC_ENTER_INT() \
156 do { \
157 /* Initialize the thread-safe code */ \
158 pthread_once(&EX_first_init_g, ex_pthread_first_thread_init); \
159 \
160 /* Grab the mutex for the library */ \
161 ex_mutex_lock(&EX_g); \
162 ex_errval = exerrval_get(); \
163 } while (0)
164
165 #define EX_FUNC_LEAVE(error) \
166 do { \
167 ex_mutex_unlock(&EX_g); \
168 return error; \
169 } while (0)
170
171 #define EX_FUNC_VOID() \
172 do { \
173 ex_mutex_unlock(&EX_g); \
174 return; \
175 } while (0)
176
177 #else
178
179 #if 0
180 EXODUS_EXPORT int indent;
181 #define EX_FUNC_ENTER() \
182 do { \
183 ex_reset_error_status(); \
184 fprintf(stderr, "%d Enter: %s\n", indent, __func__); \
185 indent++; \
186 } while (0)
187 #define EX_FUNC_ENTER_INT() \
188 do { \
189 fprintf(stderr, "%d Enter: %s\n", indent, __func__); \
190 indent++; \
191 } while (0)
192 #define EX_FUNC_LEAVE(error) \
193 do { \
194 indent--; \
195 fprintf(stderr, "%d Leave: %s\n", indent, __func__); \
196 return error; \
197 } while (0)
198 #define EX_FUNC_VOID() \
199 do { \
200 indent--; \
201 fprintf(stderr, "%d Leave: %s\n", indent, __func__); \
202 return; \
203 } while (0)
204 #else
205 #define EX_FUNC_ENTER() \
206 { \
207 ex_reset_error_status(); \
208 }
209 #define EX_FUNC_ENTER_INT()
210 #define EX_FUNC_LEAVE(error) return error
211 #define EX_FUNC_VOID() return
212 #endif
213 #endif
214 /*
215 * This file contains defined constants that are used internally in the
216 * EXODUS API.
217 *
218 * The first group of constants refer to netCDF variables, attributes, or
219 * dimensions in which the EXODUS data are stored. Using the defined
220 * constants will allow the names of the netCDF entities to be changed easily
221 * in the future if needed. The first three letters of the constant identify
222 * the netCDF entity as a variable (VAR), dimension (DIM), or attribute (ATT).
223 *
224 * NOTE: The entity name should not have any blanks in it. Blanks are
225 * technically legal but some netcdf utilities (ncgen in particular)
226 * fail when they encounter a blank in a name.
227 *
228 * DEFINED CONSTANT ENTITY NAME DATA STORED IN ENTITY
229 */
230 #define ATT_FILE_TYPE "type" /* obsolete */
231 #define ATT_TITLE "title" /* the database title */
232 #define ATT_API_VERSION "api_version" /* the EXODUS api vers # */
233 #define ATT_API_VERSION_BLANK "api version" /* the EXODUS api vers # */
234 /* used for db version 2.01 */
235 /* and earlier */
236 #define ATT_VERSION "version" /* the EXODUS file vers # */
237 #define ATT_FILESIZE "file_size" /* 1=large, 0=normal */
238 #define ATT_FLT_WORDSIZE "floating_point_word_size"
239 /* word size of floating */
240 /* point numbers in file */
241 #define ATT_FLT_WORDSIZE_BLANK "floating point word size"
242 /* word size of floating */
243 /* point numbers in file */
244 /* used for db version 2.01 */
245 /* and earlier */
246 #define ATT_MAX_NAME_LENGTH "maximum_name_length"
247 #define ATT_INT64_STATUS "int64_status"
248
249 #define DIM_NUM_NODES "num_nodes" /* # of nodes */
250 #define DIM_NUM_DIM "num_dim" /* # of dimensions; 2- or 3-d*/
251 #define DIM_NUM_EDGE "num_edge" /* # of edges (over all blks)*/
252 #define DIM_NUM_FACE "num_face" /* # of faces (over all blks)*/
253 #define DIM_NUM_ELEM "num_elem" /* # of elements */
254 #define DIM_NUM_EL_BLK "num_el_blk" /* # of element blocks */
255 #define DIM_NUM_ED_BLK "num_ed_blk" /* # of edge blocks */
256 #define DIM_NUM_FA_BLK "num_fa_blk" /* # of face blocks */
257 #define VAR_COORD "coord" /* nodal coordinates */
258 #define VAR_COORD_X "coordx" /* X-dimension coordinate */
259 #define VAR_COORD_Y "coordy" /* Y-dimension coordinate */
260 #define VAR_COORD_Z "coordz" /* Z-dimension coordinate */
261 #define VAR_NAME_COOR "coor_names" /* names of coordinates */
262 #define VAR_NAME_EL_BLK "eb_names" /* names of element blocks */
263 #define VAR_NAME_NS "ns_names" /* names of node sets */
264 #define VAR_NAME_SS "ss_names" /* names of side sets */
265 #define VAR_NAME_EM "emap_names" /* names of element maps */
266 #define VAR_NAME_EDM "edmap_names" /* names of edge maps */
267 #define VAR_NAME_FAM "famap_names" /* names of face maps */
268 #define VAR_NAME_NM "nmap_names" /* names of node maps */
269 #define VAR_NAME_ED_BLK "ed_names" /* names of edge blocks */
270 #define VAR_NAME_FA_BLK "fa_names" /* names of face blocks */
271 #define VAR_NAME_ES "es_names" /* names of edge sets */
272 #define VAR_NAME_FS "fs_names" /* names of face sets */
273 #define VAR_NAME_ELS "els_names" /* names of element sets */
274 #define VAR_STAT_EL_BLK "eb_status" /* element block status */
275 #define VAR_STAT_ECONN "econn_status" /* element block edge status */
276 #define VAR_STAT_FCONN "fconn_status" /* element block face status */
277 #define VAR_STAT_ED_BLK "ed_status" /* edge block status */
278 #define VAR_STAT_FA_BLK "fa_status" /* face block status */
279 #define VAR_ID_EL_BLK "eb_prop1" /* element block ids props */
280 #define VAR_ID_ED_BLK "ed_prop1" /* edge block ids props */
281 #define VAR_ID_FA_BLK "fa_prop1" /* face block ids props */
282 #define ATT_NAME_ELB "elem_type" /* element type names for */
283 /* each element block */
284 #define DIM_NUM_EL_IN_BLK(num) ex_catstr("num_el_in_blk", num)
285 /* # of elements in element */
286 /* block num */
287 #define DIM_NUM_NOD_PER_EL(num) ex_catstr("num_nod_per_el", num)
288 /* # of nodes per element in */
289 /* element block num */
290 #define DIM_NUM_ATT_IN_BLK(num) ex_catstr("num_att_in_blk", num)
291 /* # of attributes in element*/
292 /* block num */
293 #define DIM_NUM_ED_IN_EBLK(num) ex_catstr("num_ed_in_blk", num)
294 /* # of edges in edge */
295 /* block num */
296 #define DIM_NUM_NOD_PER_ED(num) ex_catstr("num_nod_per_ed", num)
297 /* # of nodes per edge in */
298 /* edge block num */
299 #define DIM_NUM_EDG_PER_EL(num) ex_catstr("num_edg_per_el", num)
300 /* # of edges per element in */
301 /* element block num */
302 #define DIM_NUM_ATT_IN_EBLK(num) ex_catstr("num_att_in_eblk", num)
303 /* # of attributes in edge */
304 /* block num */
305 #define DIM_NUM_FA_IN_FBLK(num) ex_catstr("num_fa_in_blk", num)
306 /* # of faces in face */
307 /* block num */
308 #define DIM_NUM_NOD_PER_FA(num) ex_catstr("num_nod_per_fa", num)
309 /* # of nodes per face in */
310 /* face block num */
311 #define DIM_NUM_FAC_PER_EL(num) ex_catstr("num_fac_per_el", num)
312 /* # of faces per element in */
313 /* element block num */
314 #define DIM_NUM_ATT_IN_FBLK(num) ex_catstr("num_att_in_fblk", num)
315 /* # of attributes in face */
316 /* block num */
317 #define VAR_CONN(num) ex_catstr("connect", num)
318 /* element connectivity for */
319 /* element block num */
320 #define VAR_EBEPEC(num) ex_catstr("ebepecnt", num)
321 /* array containing number of entity per */
322 /* entity for n-sided face/element blocks */
323 #define VAR_ATTRIB(num) ex_catstr("attrib", num)
324 /* list of attributes for */
325 /* element block num */
326 #define VAR_NAME_ATTRIB(num) ex_catstr("attrib_name", num)
327 /* list of attribute names */
328 /* for element block num */
329 #define VAR_EB_PROP(num) ex_catstr("eb_prop", num)
330 /* list of the numth property*/
331 /* for all element blocks */
332 #define VAR_ECONN(num) ex_catstr("edgconn", num)
333 /* edge connectivity for */
334 /* element block num */
335 #define VAR_EBCONN(num) ex_catstr("ebconn", num)
336 /* edge connectivity for */
337 /* edge block num */
338 #define VAR_EATTRIB(num) ex_catstr("eattrb", num)
339 /* list of attributes for */
340 /* edge block num */
341 #define VAR_NAME_EATTRIB(num) ex_catstr("eattrib_name", num)
342 /* list of attribute names */
343 /* for edge block num */
344 #define VAR_NATTRIB "nattrb"
345 #define VAR_NAME_NATTRIB "nattrib_name"
346 #define DIM_NUM_ATT_IN_NBLK "num_att_in_nblk"
347
348 #define VAR_NSATTRIB(num) ex_catstr("nsattrb", num)
349 #define VAR_NAME_NSATTRIB(num) ex_catstr("nsattrib_name", num)
350 #define DIM_NUM_ATT_IN_NS(num) ex_catstr("num_att_in_ns", num)
351
352 #define VAR_SSATTRIB(num) ex_catstr("ssattrb", num)
353 #define VAR_NAME_SSATTRIB(num) ex_catstr("ssattrib_name", num)
354 #define DIM_NUM_ATT_IN_SS(num) ex_catstr("num_att_in_ss", num)
355
356 #define VAR_ESATTRIB(num) ex_catstr("esattrb", num)
357 #define VAR_NAME_ESATTRIB(num) ex_catstr("esattrib_name", num)
358 #define DIM_NUM_ATT_IN_ES(num) ex_catstr("num_att_in_es", num)
359
360 #define VAR_FSATTRIB(num) ex_catstr("fsattrb", num)
361 #define VAR_NAME_FSATTRIB(num) ex_catstr("fsattrib_name", num)
362 #define DIM_NUM_ATT_IN_FS(num) ex_catstr("num_att_in_fs", num)
363
364 #define VAR_ELSATTRIB(num) ex_catstr("elsattrb", num)
365 #define VAR_NAME_ELSATTRIB(num) ex_catstr("elsattrib_name", num)
366 #define DIM_NUM_ATT_IN_ELS(num) ex_catstr("num_att_in_els", num)
367
368 #define VAR_ED_PROP(num) ex_catstr("ed_prop", num)
369 /* list of the numth property*/
370 /* for all edge blocks */
371 #define VAR_FCONN(num) ex_catstr("facconn", num)
372 /* face connectivity for */
373 /* element block num */
374 #define VAR_FBCONN(num) ex_catstr("fbconn", num)
375 /* face connectivity for */
376 /* face block num */
377 #define VAR_FBEPEC(num) ex_catstr("fbepecnt", num)
378 /* array containing number of entity per */
379 /* entity for n-sided face/element blocks */
380 #define VAR_FATTRIB(num) ex_catstr("fattrb", num)
381 /* list of attributes for */
382 /* face block num */
383 #define VAR_NAME_FATTRIB(num) ex_catstr("fattrib_name", num)
384 /* list of attribute names */
385 /* for face block num */
386 #define VAR_FA_PROP(num) ex_catstr("fa_prop", num)
387 /* list of the numth property*/
388 /* for all face blocks */
389 #define ATT_PROP_NAME "name" /* name attached to element */
390 /* block, node set, side */
391 /* set, element map, or */
392 /* map properties */
393 #define VAR_MAP "elem_map" /* element order map */
394 /* obsolete, replaced by */
395 /* VAR_ELEM_MAP(num) */
396 #define DIM_NUM_SS "num_side_sets" /* # of side sets */
397 #define VAR_SS_STAT "ss_status" /* side set status */
398 #define VAR_SS_IDS "ss_prop1" /* side set id properties */
399 #define DIM_NUM_SIDE_SS(num) ex_catstr("num_side_ss", num)
400 /* # of sides in side set num*/
401 #define DIM_NUM_DF_SS(num) ex_catstr("num_df_ss", num)
402 /* # of distribution factors */
403 /* in side set num */
404 /*#define DIM_NUM_NOD_SS(num) ex_catstr("num_nod_ss",num) *** obsolete *** */
405 /* # of nodes in side set num*/
406 #define VAR_FACT_SS(num) ex_catstr("dist_fact_ss", num)
407 /* the distribution factors */
408 /* for each node in side */
409 /* set num */
410 #define VAR_ELEM_SS(num) ex_catstr("elem_ss", num)
411 /* list of elements in side */
412 /* set num */
413 #define VAR_SIDE_SS(num) ex_catstr("side_ss", num)
414 /* list of sides in side set */
415 #define VAR_SS_PROP(num) ex_catstr("ss_prop", num)
416 /* list of the numth property*/
417 /* for all side sets */
418 #define DIM_NUM_ES "num_edge_sets" /* # of edge sets */
419 #define VAR_ES_STAT "es_status" /* edge set status */
420 #define VAR_ES_IDS "es_prop1" /* edge set id properties */
421 #define DIM_NUM_EDGE_ES(num) ex_catstr("num_edge_es", num)
422 /* # of edges in edge set num*/
423 #define DIM_NUM_DF_ES(num) ex_catstr("num_df_es", num)
424 /* # of distribution factors */
425 /* in edge set num */
426 /*#define DIM_NUM_NOD_ES(num) ex_catstr("num_nod_es",num) *** obsolete *** */
427 /* # of nodes in edge set num*/
428 #define VAR_FACT_ES(num) ex_catstr("dist_fact_es", num)
429 /* the distribution factors */
430 /* for each node in edge */
431 /* set num */
432 #define VAR_EDGE_ES(num) ex_catstr("edge_es", num)
433 /* list of edges in edge */
434 /* set num */
435 #define VAR_ORNT_ES(num) ex_catstr("ornt_es", num)
436 /* list of orientations in */
437 /* the edge set. */
438 #define VAR_ES_PROP(num) ex_catstr("es_prop", num)
439 /* list of the numth property*/
440 /* for all edge sets */
441 #define DIM_NUM_FS "num_face_sets" /* # of face sets */
442 #define VAR_FS_STAT "fs_status" /* face set status */
443 #define VAR_FS_IDS "fs_prop1" /* face set id properties */
444 #define DIM_NUM_FACE_FS(num) ex_catstr("num_face_fs", num)
445 /* # of faces in side set num*/
446 #define DIM_NUM_DF_FS(num) ex_catstr("num_df_fs", num)
447 /* # of distribution factors */
448 /* in face set num */
449 /*#define DIM_NUM_NOD_FS(num) ex_catstr("num_nod_ss",num) *** obsolete *** */
450 /* # of nodes in face set num*/
451 #define VAR_FACT_FS(num) ex_catstr("dist_fact_fs", num)
452 /* the distribution factors */
453 /* for each node in face */
454 /* set num */
455 #define VAR_FACE_FS(num) ex_catstr("face_fs", num)
456 /* list of elements in face */
457 /* set num */
458 #define VAR_ORNT_FS(num) ex_catstr("ornt_fs", num)
459 /* list of sides in side set */
460 #define VAR_FS_PROP(num) ex_catstr("fs_prop", num)
461 /* list of the numth property*/
462 /* for all face sets */
463 #define DIM_NUM_ELS "num_elem_sets" /* # of elem sets */
464 #define DIM_NUM_ELE_ELS(num) ex_catstr("num_ele_els", num)
465 /* # of elements in elem set */
466 /* num */
467 #define DIM_NUM_DF_ELS(num) ex_catstr("num_df_els", num)
468 /* # of distribution factors */
469 /* in element set num */
470 #define VAR_ELS_STAT "els_status" /* elem set status */
471 #define VAR_ELS_IDS "els_prop1" /* elem set id properties */
472 #define VAR_ELEM_ELS(num) ex_catstr("elem_els", num)
473 /* list of elements in elem */
474 /* set num */
475 #define VAR_FACT_ELS(num) ex_catstr("dist_fact_els", num)
476 /* list of distribution */
477 /* factors in elem set num */
478 #define VAR_ELS_PROP(num) ex_catstr("els_prop", num)
479 /* list of the numth property*/
480 /* for all elem sets */
481 #define DIM_NUM_NS "num_node_sets" /* # of node sets */
482 #define DIM_NUM_NOD_NS(num) ex_catstr("num_nod_ns", num)
483 /* # of nodes in node set */
484 /* num */
485 #define DIM_NUM_DF_NS(num) ex_catstr("num_df_ns", num)
486 /* # of distribution factors */
487 /* in node set num */
488 #define VAR_NS_STAT "ns_status" /* node set status */
489 #define VAR_NS_IDS "ns_prop1" /* node set id properties */
490 #define VAR_NODE_NS(num) ex_catstr("node_ns", num)
491 /* list of nodes in node set */
492 /* num */
493 #define VAR_FACT_NS(num) ex_catstr("dist_fact_ns", num)
494 /* list of distribution */
495 /* factors in node set num */
496 #define VAR_NS_PROP(num) ex_catstr("ns_prop", num)
497 /* list of the numth property*/
498 /* for all node sets */
499 #define DIM_NUM_QA "num_qa_rec" /* # of QA records */
500 #define VAR_QA_TITLE "qa_records" /* QA records */
501 #define DIM_NUM_INFO "num_info" /* # of information records */
502 #define VAR_INFO "info_records" /* information records */
503 #define VAR_HIS_TIME "time_hist" /* obsolete */
504 #define VAR_WHOLE_TIME "time_whole" /* simulation times for whole*/
505 /* time steps */
506 #define VAR_ELEM_TAB "elem_var_tab" /* element variable truth */
507 /* table */
508 #define VAR_EBLK_TAB "edge_var_tab" /* edge variable truth table */
509 #define VAR_FBLK_TAB "face_var_tab" /* face variable truth table */
510 #define VAR_ELSET_TAB "elset_var_tab" /* elemset variable truth */
511 /* table */
512 #define VAR_SSET_TAB "sset_var_tab" /* sideset variable truth */
513 /* table */
514 #define VAR_FSET_TAB "fset_var_tab" /* faceset variable truth */
515 /* table */
516 #define VAR_ESET_TAB "eset_var_tab" /* edgeset variable truth */
517 /* table */
518 #define VAR_NSET_TAB "nset_var_tab" /* nodeset variable truth */
519 /* table */
520 #define DIM_NUM_GLO_VAR "num_glo_var" /* # of global variables */
521 #define VAR_NAME_GLO_VAR "name_glo_var" /* names of global variables */
522 #define VAR_GLO_VAR "vals_glo_var" /* values of global variables*/
523 #define DIM_NUM_NOD_VAR "num_nod_var" /* # of nodal variables */
524 #define VAR_NAME_NOD_VAR "name_nod_var" /* names of nodal variables */
525 #define VAR_NOD_VAR "vals_nod_var" /* values of nodal variables */
526 #define VAR_NOD_VAR_NEW(num) ex_catstr("vals_nod_var", num)
527 /* values of nodal variables */
528 #define DIM_NUM_ELE_VAR "num_elem_var" /* # of element variables */
529 #define VAR_NAME_ELE_VAR "name_elem_var" /* names of element variables*/
530 #define VAR_ELEM_VAR(num1, num2) ex_catstr2("vals_elem_var", num1, "eb", num2)
531 /* values of element variable*/
532 /* num1 in element block */
533 /* num2 */
534 #define DIM_NUM_EDG_VAR "num_edge_var" /* # of edge variables */
535 #define VAR_NAME_EDG_VAR "name_edge_var" /* names of edge variables */
536 #define VAR_EDGE_VAR(num1, num2) ex_catstr2("vals_edge_var", num1, "eb", num2)
537 /* values of edge variable */
538 /* num1 in edge block num2 */
539 #define DIM_NUM_FAC_VAR "num_face_var" /* # of face variables */
540 #define VAR_NAME_FAC_VAR "name_face_var" /* names of face variables */
541 #define VAR_FACE_VAR(num1, num2) ex_catstr2("vals_face_var", num1, "fb", num2)
542 /* values of face variable */
543 /* num1 in face block num2 */
544
545 #define DIM_NUM_NSET_VAR "num_nset_var" /* # of nodeset variables */
546 #define VAR_NAME_NSET_VAR "name_nset_var" /* names of nodeset variables*/
547 #define VAR_NS_VAR(num1, num2) ex_catstr2("vals_nset_var", num1, "ns", num2)
548 /* values of nodeset variable*/
549 /* num1 in nodeset num2 */
550 #define DIM_NUM_ESET_VAR "num_eset_var" /* # of edgeset variables */
551 #define VAR_NAME_ESET_VAR "name_eset_var" /* names of edgeset variables*/
552 #define VAR_ES_VAR(num1, num2) ex_catstr2("vals_eset_var", num1, "es", num2)
553 /* values of edgeset variable*/
554 /* num1 in edgeset num2 */
555 #define DIM_NUM_FSET_VAR "num_fset_var" /* # of faceset variables */
556 #define VAR_NAME_FSET_VAR "name_fset_var" /* names of faceset variables*/
557 #define VAR_FS_VAR(num1, num2) ex_catstr2("vals_fset_var", num1, "fs", num2)
558 /* values of faceset variable*/
559 /* num1 in faceset num2 */
560 #define DIM_NUM_SSET_VAR "num_sset_var" /* # of sideset variables */
561 #define VAR_NAME_SSET_VAR "name_sset_var" /* names of sideset variables*/
562 #define VAR_SS_VAR(num1, num2) ex_catstr2("vals_sset_var", num1, "ss", num2)
563 /* values of sideset variable*/
564 /* num1 in sideset num2 */
565 #define DIM_NUM_ELSET_VAR "num_elset_var" /* # of element set variables*/
566 #define VAR_NAME_ELSET_VAR "name_elset_var" /* names of elemset variables*/
567 #define VAR_ELS_VAR(num1, num2) ex_catstr2("vals_elset_var", num1, "es", num2)
568 /* values of elemset variable*/
569 /* num1 in elemset num2 */
570
571 #define DIM_NUM_HIS_VAR "num_his_var" /* obsolete */
572 #define VAR_NAME_HIS_VAR "name_his_var" /* obsolete */
573 #define VAR_HIS_VAR "vals_his_var" /* obsolete */
574 #define DIM_STR "len_string" /* general dimension of */
575 /* length MAX_STR_LENGTH */
576 /* used for some string lengths */
577 #define DIM_STR_NAME "len_name" /* general dimension of */
578 /* length MAX_NAME_LENGTH */
579 /* used for name lengths */
580 #define DIM_LIN "len_line" /* general dimension of */
581 /* length MAX_LINE_LENGTH */
582 /* used for long strings */
583 #define DIM_N4 "four" /* general dimension of */
584 /* length 4 */
585 #define DIM_TIME "time_step" /* unlimited (expandable) */
586 /* dimension for time steps*/
587 #define DIM_HTIME "hist_time_step" /* obsolete */
588 #define VAR_ELEM_NUM_MAP "elem_num_map" /* element numbering map */
589 /* obsolete, replaced by */
590 /* VAR_ELEM_MAP(num) */
591 #define VAR_FACE_NUM_MAP "face_num_map" /* face numbering map */
592 /* obsolete, replaced by */
593 /* VAR_FACE_MAP(num) */
594 #define VAR_EDGE_NUM_MAP "edge_num_map" /* edge numbering map */
595 /* obsolete, replaced by */
596 /* VAR_EDGE_MAP(num) */
597 #define VAR_NODE_NUM_MAP "node_num_map" /* node numbering map */
598 /* obsolete, replaced by */
599 /* VAR_NODE_MAP(num) */
600 #define DIM_NUM_EM "num_elem_maps" /* # of element maps */
601 #define VAR_ELEM_MAP(num) ex_catstr("elem_map", num)
602 /* the numth element map */
603 #define VAR_EM_PROP(num) ex_catstr("em_prop", num)
604 /* list of the numth property*/
605 /* for all element maps */
606 #define DIM_NUM_EDM "num_edge_maps" /* # of edge maps */
607 #define VAR_EDGE_MAP(num) ex_catstr("edge_map", num)
608 /* the numth edge map */
609 #define VAR_EDM_PROP(num) ex_catstr("edm_prop", num)
610 /* list of the numth property*/
611 /* for all edge maps */
612 #define DIM_NUM_FAM "num_face_maps" /* # of face maps */
613 #define VAR_FACE_MAP(num) ex_catstr("face_map", num)
614 /* the numth face map */
615 #define VAR_FAM_PROP(num) ex_catstr("fam_prop", num)
616 /* list of the numth property*/
617 /* for all face maps */
618 #define DIM_NUM_NM "num_node_maps" /* # of node maps */
619 #define VAR_NODE_MAP(num) ex_catstr("node_map", num)
620 /* the numth node map */
621 #define VAR_NM_PROP(num) ex_catstr("nm_prop", num)
622 /* list of the numth property*/
623 /* for all node maps */
624
625 #define DIM_NUM_CFRAMES "num_cframes"
626 #define DIM_NUM_CFRAME9 "num_cframes_9"
627 #define VAR_FRAME_COORDS "frame_coordinates"
628 #define VAR_FRAME_IDS "frame_ids"
629 #define VAR_FRAME_TAGS "frame_tags"
630
631 #define VAR_ELBLK_IDS_GLOBAL "el_blk_ids_global"
632 #define VAR_ELBLK_CNT_GLOBAL "el_blk_cnt_global"
633 #define VAR_NS_IDS_GLOBAL "ns_ids_global"
634 #define VAR_NS_NODE_CNT_GLOBAL "ns_node_cnt_global"
635 #define VAR_NS_DF_CNT_GLOBAL "ns_df_cnt_global"
636 #define VAR_SS_IDS_GLOBAL "ss_ids_global"
637 #define VAR_SS_SIDE_CNT_GLOBAL "ss_side_cnt_global"
638 #define VAR_SS_DF_CNT_GLOBAL "ss_df_cnt_global"
639 #define VAR_FILE_TYPE "nem_ftype"
640 #define VAR_COMM_MAP "comm_map"
641 #define VAR_NODE_MAP_INT "node_mapi"
642 #define VAR_NODE_MAP_INT_IDX "node_mapi_idx"
643 #define VAR_NODE_MAP_BOR "node_mapb"
644 #define VAR_NODE_MAP_BOR_IDX "node_mapb_idx"
645 #define VAR_NODE_MAP_EXT "node_mape"
646 #define VAR_NODE_MAP_EXT_IDX "node_mape_idx"
647 #define VAR_ELEM_MAP_INT "elem_mapi"
648 #define VAR_ELEM_MAP_INT_IDX "elem_mapi_idx"
649 #define VAR_ELEM_MAP_BOR "elem_mapb"
650 #define VAR_ELEM_MAP_BOR_IDX "elem_mapb_idx"
651 #define VAR_INT_N_STAT "int_n_stat"
652 #define VAR_BOR_N_STAT "bor_n_stat"
653 #define VAR_EXT_N_STAT "ext_n_stat"
654 #define VAR_INT_E_STAT "int_e_stat"
655 #define VAR_BOR_E_STAT "bor_e_stat"
656 #define VAR_N_COMM_IDS "n_comm_ids"
657 #define VAR_N_COMM_STAT "n_comm_stat"
658 #define VAR_N_COMM_INFO_IDX "n_comm_info_idx"
659 #define VAR_E_COMM_IDS "e_comm_ids"
660 #define VAR_E_COMM_STAT "e_comm_stat"
661 #define VAR_E_COMM_INFO_IDX "e_comm_info_idx"
662 #define VAR_N_COMM_NIDS "n_comm_nids"
663 #define VAR_N_COMM_PROC "n_comm_proc"
664 #define VAR_N_COMM_DATA_IDX "n_comm_data_idx"
665 #define VAR_E_COMM_EIDS "e_comm_eids"
666 #define VAR_E_COMM_SIDS "e_comm_sids"
667 #define VAR_E_COMM_PROC "e_comm_proc"
668 #define VAR_E_COMM_DATA_IDX "e_comm_data_idx"
669
670 #define DIM_NUM_INT_NODES "num_int_node"
671 #define DIM_NUM_BOR_NODES "num_bor_node"
672 #define DIM_NUM_EXT_NODES "num_ext_node"
673 #define DIM_NUM_INT_ELEMS "num_int_elem"
674 #define DIM_NUM_BOR_ELEMS "num_bor_elem"
675 #define DIM_NUM_PROCS "num_processors"
676 #define DIM_NUM_PROCS_F "num_procs_file"
677 #define DIM_NUM_NODES_GLOBAL "num_nodes_global"
678 #define DIM_NUM_ELEMS_GLOBAL "num_elems_global"
679 #define DIM_NUM_NS_GLOBAL "num_ns_global"
680 #define DIM_NUM_SS_GLOBAL "num_ss_global"
681 #define DIM_NUM_ELBLK_GLOBAL "num_el_blk_global"
682 #define DIM_NUM_N_CMAPS "num_n_cmaps"
683 #define DIM_NUM_E_CMAPS "num_e_cmaps"
684 #define DIM_NCNT_CMAP "ncnt_cmap"
685 #define DIM_ECNT_CMAP "ecnt_cmap"
686
687 enum ex_element_type {
688 EX_EL_UNK = -1, /**< unknown entity */
689 EX_EL_NULL_ELEMENT = 0,
690 EX_EL_TRIANGLE = 1, /**< Triangle entity */
691 EX_EL_QUAD = 2, /**< Quad entity */
692 EX_EL_HEX = 3, /**< Hex entity */
693 EX_EL_WEDGE = 4, /**< Wedge entity */
694 EX_EL_TETRA = 5, /**< Tetra entity */
695 EX_EL_TRUSS = 6, /**< Truss entity */
696 EX_EL_BEAM = 7, /**< Beam entity */
697 EX_EL_SHELL = 8, /**< Shell entity */
698 EX_EL_SPHERE = 9, /**< Sphere entity */
699 EX_EL_CIRCLE = 10, /**< Circle entity */
700 EX_EL_TRISHELL = 11, /**< Triangular Shell entity */
701 EX_EL_PYRAMID = 12 /**< Pyramid entity */
702 };
703 typedef enum ex_element_type ex_element_type;
704
705 enum ex_coordinate_frame_type { EX_CF_RECTANGULAR = 1, EX_CF_CYLINDRICAL = 2, EX_CF_SPHERICAL = 3 };
706 typedef enum ex_coordinate_frame_type ex_coordinate_frame_type;
707
708 /* Internal structure declarations */
709
710 struct ex_file_item
711 {
712 int file_id;
713 nc_type netcdf_type_code;
714 int int64_status;
715 int maximum_name_length;
716 int time_varid; /* Store to avoid lookup each timestep */
717 unsigned int
718 compression_level : 4; /* 0 (disabled) to 9 (maximum) compression level; netcdf-4 only */
719 unsigned int user_compute_wordsize : 1; /* 0 for 4 byte or 1 for 8 byte reals */
720 unsigned int shuffle : 1; /* 1 true, 0 false */
721 unsigned int
722 file_type : 2; /* 0 - classic, 1 -- 64 bit classic, 2 --netcdf4, 3 --netcdf4 classic */
723 unsigned int is_parallel : 1; /* 1 true, 0 false */
724 unsigned int is_mpiio : 1; /* 1 true, 0 false */
725 unsigned int is_pnetcdf : 1; /* 1 true, 0 false */
726 unsigned int has_nodes : 1; /* for input only at this time */
727 unsigned int has_edges : 1; /* for input only at this time */
728 unsigned int has_faces : 1; /* for input only at this time */
729 unsigned int has_elems : 1; /* for input only at this time */
730 struct ex_file_item *next;
731 };
732
733 struct elem_blk_parm
734 {
735 char elem_type[33];
736 int64_t elem_blk_id;
737 int64_t num_elem_in_blk;
738 int num_nodes_per_elem;
739 int num_sides;
740 int num_nodes_per_side[6];
741 int num_attr;
742 int64_t elem_ctr;
743 ex_element_type elem_type_val;
744 };
745
746 struct list_item
747 { /* for use with ex_get_file_item */
748 int exo_id;
749 int value;
750 struct list_item *next;
751 };
752
753 struct obj_stats
754 {
755 int64_t * id_vals;
756 int * stat_vals;
757 size_t num;
758 int exoid;
759 char valid_ids;
760 char valid_stat;
761 char sequential;
762 struct obj_stats *next;
763 };
764
765 void ex_iqsort(int v[], int iv[], int N);
766 void ex_iqsort64(int64_t v[], int64_t iv[], int64_t N);
767
768 char *ex_catstr(const char * /*string*/, int /*num*/);
769 char *ex_catstr2(const char * /*string1*/, int /*num1*/, const char * /*string2*/, int /*num2*/);
770 char *ex_dim_num_entries_in_object(ex_entity_type /*obj_type*/, int /*idx*/);
771 char *ex_dim_num_objects(ex_entity_type obj_type);
772 char *ex_name_var_of_object(ex_entity_type /*obj_type*/, int /*i*/, int /*j*/);
773 char *ex_name_of_map(ex_entity_type /*map_type*/, int /*map_index*/);
774
775 int ex_conv_ini(int exoid, int *comp_wordsize, int *io_wordsize, int file_wordsize,
776 int int64_status, int is_parallel, int is_mpiio, int is_pnetcdf);
777 void ex_conv_exit(int exoid);
778
779 nc_type nc_flt_code(int exoid);
780 int ex_comp_ws(int exoid);
781 int ex_get_cpu_ws(void);
782 int ex_is_parallel(int exoid);
783
784 struct list_item **ex_get_counter_list(ex_entity_type obj_type);
785 int ex_get_file_item(int /*exoid*/, struct list_item ** /*list_ptr*/);
786 int ex_inc_file_item(int /*exoid*/, struct list_item ** /*list_ptr*/);
787 void ex_rm_file_item(int /*exoid*/, struct list_item ** /*list_ptr*/);
788
789 extern struct obj_stats *exoII_eb;
790 extern struct obj_stats *exoII_ed;
791 extern struct obj_stats *exoII_fa;
792 extern struct obj_stats *exoII_ns;
793 extern struct obj_stats *exoII_es;
794 extern struct obj_stats *exoII_fs;
795 extern struct obj_stats *exoII_ss;
796 extern struct obj_stats *exoII_els;
797 extern struct obj_stats *exoII_em;
798 extern struct obj_stats *exoII_edm;
799 extern struct obj_stats *exoII_fam;
800 extern struct obj_stats *exoII_nm;
801
802 struct ex_file_item *ex_find_file_item(int exoid);
803 struct ex_file_item *ex_add_file_item(int exoid);
804 struct obj_stats * ex_get_stat_ptr(int exoid, struct obj_stats **obj_ptr);
805
806 void ex_rm_stat_ptr(int exoid, struct obj_stats **obj_ptr);
807
808 void ex_compress_variable(int exoid, int varid, int type);
809 int ex_id_lkup(int exoid, ex_entity_type id_type, ex_entity_id num);
810 void ex_check_valid_file_id(int exoid,
811 const char *func); /** Abort if exoid does not refer to valid file */
812 int ex_check_file_type(const char *path, int *type);
813 int ex_get_dimension(int exoid, const char *DIMENSION, const char *label, size_t *count, int *dimid,
814 const char *routine);
815
816 int ex_get_nodal_var_int(int exoid, int time_step, int nodal_var_index, int64_t num_nodes,
817 void *nodal_var_vals);
818
819 int ex_put_nodal_var_int(int exoid, int time_step, int nodal_var_index, int64_t num_nodes,
820 const void *nodal_var_vals);
821
822 int ex_get_nodal_var_time_int(int exoid, int nodal_var_index, int64_t node_number,
823 int beg_time_step, int end_time_step, void *nodal_var_vals);
824
825 int ex_get_partial_nodal_var_int(int exoid, int time_step, int nodal_var_index, int64_t start_node,
826 int64_t num_nodes, void *var_vals);
827
828 int ex_put_partial_nodal_var_int(int exoid, int time_step, int nodal_var_index, int64_t start_node,
829 int64_t num_nodes, const void *nodal_var_vals);
830 int ex_get_glob_vars_int(int exoid, int time_step, int num_glob_vars, void *glob_var_vals);
831
832 int ex_get_glob_var_time_int(int exoid, int glob_var_index, int beg_time_step, int end_time_step,
833 void *glob_var_vals);
834
835 int ex_get_name_internal(int exoid, int varid, size_t index, char *name, int name_size,
836 ex_entity_type obj_type, const char *routine);
837 int ex_get_names_internal(int exoid, int varid, size_t num_entity, char **names,
838 ex_entity_type obj_type, const char *routine);
839 int ex_put_name_internal(int exoid, int varid, size_t index, const char *name,
840 ex_entity_type obj_type, const char *subtype, const char *routine);
841 int ex_put_names_internal(int exoid, int varid, size_t num_entity, char **names,
842 ex_entity_type obj_type, const char *subtype, const char *routine);
843 void ex_trim_internal(char *name);
844 void ex_update_max_name_length(int exoid, int length);
845 int ex_leavedef(int exoid, /* NemesisI file ID */
846 const char *call_rout /* Name of calling function */
847 );
848
849 int ex_int_get_block_param(int exoid, ex_entity_id id, int ndim,
850 struct elem_blk_parm *elem_blk_parm);
851
852 int ex_get_file_type(int exoid, /* NetCDF/Exodus file ID */
853 char *ftype /* Nemesis file type */
854 );
855
856 int ex_put_nemesis_version(int exoid); /* NetCDF/Exodus file ID */
857
858 int ne_check_file_version(int neid /* NetCDF/Exodus file ID */
859 );
860
861 int ne_id_lkup(int exoid, /* NetCDF/Exodus file ID */
862 const char * ne_var_name, /* Nemesis variable name */
863 int64_t * idx, /* index variable for variable, length 2 */
864 ex_entity_id ne_var_id /* NetCDF variable ID */
865 );
866
867 /**
868 * For output databases, the maximum length of any entity, variable,
869 * property, attribute, or coordinate name to be written (not
870 * including the NULL terminator). If a name is longer than this
871 * value, a warning message will be output to stderr and the name
872 * will be truncated. Must be set (via call to
873 * 'ex_set_max_name_length(exoid, int len)' prior to calling ex_create.
874 *
875 * For input databases, the size of the name arrays that the client
876 * code will be passing to API routines that retrieve names (not
877 * including the NULL terminator). This defaults to 32 for
878 * compatibility with older clients. The value used at the time of
879 * creation of the database can be queried by ex_inquire with the
880 * EX_INQ_DB_MAX_NAME_LENGTH argument. The current value for this
881 * variable can be queried with EX_INQ_CUR_MAX_NAME_LENGTH argument.
882 *
883 * Note that this is a global setting for all databases. If you are
884 * accessing multiple databases, they will all use the same value.
885 */
886 extern int ex_default_max_name_length;
887 #ifdef __cplusplus
888 }
889 #endif
890
891 #endif
elem_blk_parm::num_sides
int num_sides
Definition: exodusII_int.h:739
list_item::next
struct list_item * next
Definition: exodusII_int.h:750
EX_EL_TRIANGLE
Definition: exodusII_int.h:690
EX_EL_NULL_ELEMENT
Definition: exodusII_int.h:689
ex_file_item::int64_status
int int64_status
Definition: exodusII_int.h:714
ex_file_item::shuffle
unsigned int shuffle
Definition: exodusII_int.h:720
EX_EL_TRISHELL
Definition: exodusII_int.h:700
ex_name_var_of_object
char * ex_name_var_of_object(ex_entity_type, int, int)
Definition: ex_utils.c:499
ex_conv_exit
void ex_conv_exit(int exoid)
Definition: ex_conv.c:275
ex_get_name_internal
int ex_get_name_internal(int exoid, int varid, size_t index, char *name, int name_size, ex_entity_type obj_type, const char *routine)
Definition: ex_utils.c:316
obj_stats::next
struct obj_stats * next
Definition: exodusII_int.h:762
ex_rm_stat_ptr
void ex_rm_stat_ptr(int exoid, struct obj_stats **obj_ptr)
Definition: ex_utils.c:871
list_item::value
int value
Definition: exodusII_int.h:749
EX_EL_TETRA
Definition: exodusII_int.h:694
ex_put_name_internal
int ex_put_name_internal(int exoid, int varid, size_t index, const char *name, ex_entity_type obj_type, const char *subtype, const char *routine)
Definition: ex_utils.c:245
ex_get_nodal_var_int
int ex_get_nodal_var_int(int exoid, int time_step, int nodal_var_index, int64_t num_nodes, void *nodal_var_vals)
Definition: ex_get_nodal_var_int.c:102
EX_CF_SPHERICAL
Definition: exodusII_int.h:705
ex_inc_file_item
int ex_inc_file_item(int, struct list_item **)
Definition: ex_utils.c:962
ex_file_item::user_compute_wordsize
unsigned int user_compute_wordsize
Definition: exodusII_int.h:719
ex_get_counter_list
struct list_item ** ex_get_counter_list(ex_entity_type obj_type)
Definition: ex_utils.c:914
ex_update_max_name_length
void ex_update_max_name_length(int exoid, int length)
Definition: ex_utils.c:159
obj_stats::num
size_t num
Definition: exodusII_int.h:757
ex_get_stat_ptr
struct obj_stats * ex_get_stat_ptr(int exoid, struct obj_stats **obj_ptr)
Definition: ex_utils.c:832
exoII_edm
struct obj_stats * exoII_edm
Definition: ex_utils.c:65
EXODUS_EXPORT
#define EXODUS_EXPORT
Definition: exodusII.h:422
ex_file_item::netcdf_type_code
nc_type netcdf_type_code
Definition: exodusII_int.h:713
obj_stats::sequential
char sequential
Definition: exodusII_int.h:761
ex_is_parallel
int ex_is_parallel(int exoid)
Definition: ex_conv.c:472
ex_check_valid_file_id
void ex_check_valid_file_id(int exoid, const char *func)
Definition: ex_conv.c:84
ex_conv_ini
int ex_conv_ini(int exoid, int *comp_wordsize, int *io_wordsize, int file_wordsize, int int64_status, int is_parallel, int is_mpiio, int is_pnetcdf)
Definition: ex_conv.c:113
exoII_eb
struct obj_stats * exoII_eb
Definition: ex_utils.c:56
ex_get_glob_vars_int
int ex_get_glob_vars_int(int exoid, int time_step, int num_glob_vars, void *glob_var_vals)
Definition: ex_get_glob_vars_int.c:63
ex_file_item::has_nodes
unsigned int has_nodes
Definition: exodusII_int.h:726
ex_file_item::is_pnetcdf
unsigned int is_pnetcdf
Definition: exodusII_int.h:725
last_pname
static char last_pname[MAX_ERR_LENGTH]
Definition: ex_err.c:109
ex_get_dimension
int ex_get_dimension(int exoid, const char *DIMENSION, const char *label, size_t *count, int *dimid, const char *routine)
Definition: ex_utils.c:1402
ex_file_item::has_edges
unsigned int has_edges
Definition: exodusII_int.h:727
ex_file_item::has_faces
unsigned int has_faces
Definition: exodusII_int.h:728
EX_EL_SHELL
Definition: exodusII_int.h:697
ex_catstr2
char * ex_catstr2(const char *, int, const char *, int)
Definition: ex_utils.c:384
elem_blk_parm
Definition: exodusII_int.h:733
ex_leavedef
int ex_leavedef(int exoid, const char *call_rout)
Definition: ex_ne_util.c:67
nc_flt_code
nc_type nc_flt_code(int exoid)
Definition: ex_conv.c:312
ex_name_of_map
char * ex_name_of_map(ex_entity_type, int)
Definition: ex_utils.c:514
list_item
Definition: exodusII_int.h:746
ex_file_item::maximum_name_length
int maximum_name_length
Definition: exodusII_int.h:715
MAX_ERR_LENGTH
#define MAX_ERR_LENGTH
Definition: exodusII.h:302
ex_int_get_block_param
int ex_int_get_block_param(int exoid, ex_entity_id id, int ndim, struct elem_blk_parm *elem_blk_parm)
Definition: ex_int_get_block_param.c:56
ex_check_file_type
int ex_check_file_type(const char *path, int *type)
Definition: ex_utils.c:85
exoII_es
struct obj_stats * exoII_es
Definition: ex_utils.c:60
ex_get_partial_nodal_var_int
int ex_get_partial_nodal_var_int(int exoid, int time_step, int nodal_var_index, int64_t start_node, int64_t num_nodes, void *var_vals)
Definition: ex_get_partial_nodal_var_int.c:72
obj_stats::valid_stat
char valid_stat
Definition: exodusII_int.h:760
ex_compress_variable
void ex_compress_variable(int exoid, int varid, int type)
Definition: ex_utils.c:1441
obj_stats::exoid
int exoid
Definition: exodusII_int.h:758
ne_check_file_version
int ne_check_file_version(int neid)
Definition: ex_ne_util.c:244
exoII_fa
struct obj_stats * exoII_fa
Definition: ex_utils.c:58
ex_file_item::time_varid
int time_varid
Definition: exodusII_int.h:716
ex_put_partial_nodal_var_int
int ex_put_partial_nodal_var_int(int exoid, int time_step, int nodal_var_index, int64_t start_node, int64_t num_nodes, const void *nodal_var_vals)
Definition: ex_put_partial_nodal_var_int.c:76
exoII_ss
struct obj_stats * exoII_ss
Definition: ex_utils.c:62
exoII_ed
struct obj_stats * exoII_ed
Definition: ex_utils.c:57
last_errmsg
static char last_errmsg[MAX_ERR_LENGTH]
Definition: ex_err.c:110
ex_rm_file_item
void ex_rm_file_item(int, struct list_item **)
Definition: ex_utils.c:1056
ex_file_item
Definition: exodusII_int.h:710
ex_find_file_item
struct ex_file_item * ex_find_file_item(int exoid)
Definition: ex_conv.c:70
EX_EL_HEX
Definition: exodusII_int.h:692
elem_blk_parm::num_attr
int num_attr
Definition: exodusII_int.h:741
ex_entity_type
ex_entity_type
Definition: exodusII.h:247
ex_file_item::has_elems
unsigned int has_elems
Definition: exodusII_int.h:729
exoII_ns
struct obj_stats * exoII_ns
Definition: ex_utils.c:59
ex_put_nemesis_version
int ex_put_nemesis_version(int exoid)
Definition: ex_ne_util.c:202
exoII_nm
struct obj_stats * exoII_nm
Definition: ex_utils.c:67
ex_iqsort
void ex_iqsort(int v[], int iv[], int N)
Definition: ex_utils.c:1326
ex_element_type
ex_element_type
Definition: exodusII_int.h:687
EX_EL_QUAD
Definition: exodusII_int.h:691
obj_stats::id_vals
int64_t * id_vals
Definition: exodusII_int.h:755
obj_stats::valid_ids
char valid_ids
Definition: exodusII_int.h:759
ex_file_item::next
struct ex_file_item * next
Definition: exodusII_int.h:730
exoII_els
struct obj_stats * exoII_els
Definition: ex_utils.c:63
ex_file_item::is_mpiio
unsigned int is_mpiio
Definition: exodusII_int.h:724
obj_stats
Definition: exodusII_int.h:753
ex_put_names_internal
int ex_put_names_internal(int exoid, int varid, size_t num_entity, char **names, ex_entity_type obj_type, const char *subtype, const char *routine)
Definition: ex_utils.c:185
elem_blk_parm::elem_type_val
ex_element_type elem_type_val
Definition: exodusII_int.h:743
ne_id_lkup
int ne_id_lkup(int exoid, const char *ne_var_name, int64_t *idx, ex_entity_id ne_var_id)
Definition: ex_ne_util.c:87
EX_EL_TRUSS
Definition: exodusII_int.h:695
ex_coordinate_frame_type
ex_coordinate_frame_type
Definition: exodusII_int.h:705
obj_stats::stat_vals
int * stat_vals
Definition: exodusII_int.h:756
EX_EL_SPHERE
Definition: exodusII_int.h:698
elem_blk_parm::num_elem_in_blk
int64_t num_elem_in_blk
Definition: exodusII_int.h:737
ex_file_item::file_id
int file_id
Definition: exodusII_int.h:712
ex_dim_num_entries_in_object
char * ex_dim_num_entries_in_object(ex_entity_type, int)
Definition: ex_utils.c:483
ex_default_max_name_length
int ex_default_max_name_length
ex_id_lkup
int ex_id_lkup(int exoid, ex_entity_type id_type, ex_entity_id num)
Definition: ex_utils.c:543
EX_CF_RECTANGULAR
Definition: exodusII_int.h:705
ex_file_item::is_parallel
unsigned int is_parallel
Definition: exodusII_int.h:723
ex_iqsort64
void ex_iqsort64(int64_t v[], int64_t iv[], int64_t N)
Definition: ex_utils.c:1341
exoII_em
struct obj_stats * exoII_em
Definition: ex_utils.c:64
ex_get_names_internal
int ex_get_names_internal(int exoid, int varid, size_t num_entity, char **names, ex_entity_type obj_type, const char *routine)
Definition: ex_utils.c:294
elem_blk_parm::num_nodes_per_elem
int num_nodes_per_elem
Definition: exodusII_int.h:738
list_item::exo_id
int exo_id
Definition: exodusII_int.h:748
elem_blk_parm::elem_blk_id
int64_t elem_blk_id
Definition: exodusII_int.h:736
exoII_fs
struct obj_stats * exoII_fs
Definition: ex_utils.c:61
ex_add_file_item
struct ex_file_item * ex_add_file_item(int exoid)
ex_trim_internal
void ex_trim_internal(char *name)
Definition: ex_utils.c:346
ex_get_nodal_var_time_int
int ex_get_nodal_var_time_int(int exoid, int nodal_var_index, int64_t node_number, int beg_time_step, int end_time_step, void *nodal_var_vals)
Definition: ex_get_nodal_var_time_int.c:113
EX_EL_WEDGE
Definition: exodusII_int.h:693
ex_get_cpu_ws
int ex_get_cpu_ws(void)
Definition: ex_utils.c:1125
elem_blk_parm::elem_ctr
int64_t elem_ctr
Definition: exodusII_int.h:742
ex_get_file_item
int ex_get_file_item(int, struct list_item **)
Definition: ex_utils.c:1010
ex_reset_error_status
void ex_reset_error_status()
Definition: ex_err.c:118
last_err_num
static int last_err_num
Definition: ex_err.c:111
EX_EL_BEAM
Definition: exodusII_int.h:696
EX_EL_CIRCLE
Definition: exodusII_int.h:699
ex_catstr
char * ex_catstr(const char *, int)
Definition: ex_utils.c:372
ex_entity_id
int64_t ex_entity_id
Definition: exodusII.h:306
ex_file_item::file_type
unsigned int file_type
Definition: exodusII_int.h:722
ex_put_nodal_var_int
int ex_put_nodal_var_int(int exoid, int time_step, int nodal_var_index, int64_t num_nodes, const void *nodal_var_vals)
Definition: ex_put_nodal_var_int.c:104
ex_get_glob_var_time_int
int ex_get_glob_var_time_int(int exoid, int glob_var_index, int beg_time_step, int end_time_step, void *glob_var_vals)
Definition: ex_get_glob_var_time_int.c:104
ex_comp_ws
int ex_comp_ws(int exoid)
Definition: ex_conv.c:452
EX_EL_UNK
Definition: exodusII_int.h:688
ex_dim_num_objects
char * ex_dim_num_objects(ex_entity_type obj_type)
Definition: ex_utils.c:457
exoII_fam
struct obj_stats * exoII_fam
Definition: ex_utils.c:66
EX_EL_PYRAMID
Definition: exodusII_int.h:701
ex_file_item::compression_level
unsigned int compression_level
Definition: exodusII_int.h:718
ex_get_file_type
int ex_get_file_type(int exoid, char *ftype)
Definition: ex_ne_util.c:159
EX_CF_CYLINDRICAL
Definition: exodusII_int.h:705