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