IOSS  2.0
Ioex_Internals.h
Go to the documentation of this file.
1 /*
2  * Copyright(C) 1999-2020 National Technology & Engineering Solutions
3  * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4  * NTESS, the U.S. Government retains certain rights in this software.
5  *
6  * See packages/seacas/LICENSE for details
7  */
8 
9 #ifndef IOSS_Ioex_Internals_h
10 #define IOSS_Ioex_Internals_h
11 
12 #include "Ioss_ParallelUtils.h" // for ParallelUtils
13 #include <cstdint> // for int64_t
14 #include <exodusII.h> // for MAX_LINE_LENGTH, etc
15 #include <string> // for string
16 #include <vector> // for vector
17 namespace Ioss {
18  class Assembly;
19  class Blob;
20  class EdgeBlock;
21  class EdgeSet;
22  class ElementBlock;
23  class ElementSet;
24  class FaceBlock;
25  class FaceSet;
26  class NodeBlock;
27  class NodeSet;
28  class SideBlock;
29  class SideSet;
30 } // namespace Ioss
31 
32 using entity_id = int64_t;
33 
34 namespace Ioss {
35 } // namespace Ioss
36 /*!
37  * This set of classes provides a thin wrapper around the exodusII
38  * internals. It supplants several of the exodusII API calls in
39  * order to avoid ncredef calls which totally rewrite the existing
40  * database and can be very expensive. These routines provide all
41  * required variable, dimension, and attribute definitions to the
42  * underlying netcdf file with only a single ncredef call.
43  *
44  * To use the application must create an Internals instance
45  * and call the Internals::write_meta_data() function. This
46  * function requires several classes as arguments including:
47  * <ul>
48  * <li> Mesh -- defines mesh global metadata
49  * <li> Block -- defines metadata for each block
50  * <li> NodeSet -- defines metadata for each nodeset
51  * <li> SideSet -- defines metadata for each sideset
52  * <li> CommunicationMetaData -- global metadata relating to
53  * parallel info.
54  * </ul>
55  *
56  * Calling Internals::write_meta_data(), replaces the
57  * following exodusII and nemesis API calls:
58  * <ul>
59  * <li> ex_put_init(),
60  * <li> ex_put_elem_block(),
61  * <li> ex_put_node_set_param(),
62  * <li> ex_put_side_set_param(),
63  * <li> ne_put_init_info(),
64  * <li> ne_put_loadbal_param(),
65  * <li> ne_put_cmap_params(),
66  * </ul>
67  */
68 namespace Ioex {
69  struct NodeBlock
70  {
71  NodeBlock() = default;
72  NodeBlock(const NodeBlock &other) = default;
73  explicit NodeBlock(const Ioss::NodeBlock &other);
74 
75  NodeBlock &operator=(const NodeBlock &other);
76 
77  ~NodeBlock() = default;
78 
79  bool operator==(const NodeBlock &) const;
80  bool operator!=(const NodeBlock &other) const { return !(*this == other); }
81 
82  std::string name{};
83  entity_id id{0};
84  int64_t entityCount{0};
85  int64_t localOwnedCount{0};
86  int64_t attributeCount{0};
87  int64_t procOffset{0};
88  };
89 
90  struct Assembly
91  {
92  Assembly() = default;
93  Assembly(const Assembly &other) = default;
94  explicit Assembly(const Ioss::Assembly &other);
95 
96  Assembly &operator=(const Assembly &other);
97 
98  ~Assembly() = default;
99 
100  bool operator==(const Assembly &) const;
101  bool operator!=(const Assembly &other) const { return !(*this == other); }
102 
103  std::string name{};
104  entity_id id{0};
105  int64_t entityCount{0};
106  int64_t attributeCount{0};
107  ex_entity_type type{};
108  std::vector<int64_t> memberIdList;
109  };
110 
111  struct Blob
112  {
113  Blob() = default;
114  Blob(const Blob &other) = default;
115  explicit Blob(const Ioss::Blob &other);
116 
117  Blob &operator=(const Blob &other);
118 
119  ~Blob() = default;
120 
121  bool operator==(const Blob &) const;
122  bool operator!=(const Blob &other) const { return !(*this == other); }
123 
124  std::string name{};
125  entity_id id{0};
126  int64_t entityCount{0};
127  int64_t localOwnedCount{0};
128  int64_t attributeCount{0};
129  int64_t procOffset{0};
130  };
131 
132  struct EdgeBlock
133  {
135 
136  EdgeBlock(const EdgeBlock &other)
137  : name(other.name), id(other.id), entityCount(other.entityCount),
139  procOffset(other.procOffset)
140  {
142  }
143 
144  explicit EdgeBlock(const Ioss::EdgeBlock &other);
145 
146  EdgeBlock &operator=(const EdgeBlock &other);
147 
148  ~EdgeBlock() = default;
149 
150  bool operator==(const EdgeBlock & /*other*/) const;
151  bool operator!=(const EdgeBlock &other) const { return !(*this == other); }
152 
153  char elType[MAX_STR_LENGTH + 1]{};
154  std::string name{};
155  entity_id id{0};
156  int64_t entityCount{0};
157  int64_t nodesPerEntity{0};
158  int64_t attributeCount{0};
159  int64_t procOffset{0};
160 
161  private:
162  };
163 
164  struct FaceBlock
165  {
167 
168  FaceBlock(const FaceBlock &other)
169  : name(other.name), id(other.id), entityCount(other.entityCount),
172  {
174  }
175 
176  explicit FaceBlock(const Ioss::FaceBlock &other);
177 
178  FaceBlock &operator=(const FaceBlock &other);
179 
180  ~FaceBlock() = default;
181 
182  bool operator==(const FaceBlock & /*other*/) const;
183  bool operator!=(const FaceBlock &other) const { return !(*this == other); }
184 
185  char elType[MAX_STR_LENGTH + 1]{};
186  std::string name{};
187  entity_id id{0};
188  int64_t entityCount{0};
189  int64_t nodesPerEntity{0};
190  int64_t edgesPerEntity{0};
191  int64_t attributeCount{0};
192  int64_t procOffset{0};
193 
194  private:
195  };
196 
197  struct ElemBlock
198  {
200 
201  ElemBlock(const ElemBlock &other)
202  : name(other.name), id(other.id), entityCount(other.entityCount),
205  offset_(other.offset_), procOffset(other.procOffset)
206  {
208  }
209 
210  explicit ElemBlock(const Ioss::ElementBlock &other);
211 
212  ElemBlock &operator=(const ElemBlock &other);
213 
214  ~ElemBlock() = default;
215 
216  bool operator==(const ElemBlock & /*other*/) const;
217  bool operator!=(const ElemBlock &other) const { return !(*this == other); }
218 
219  char elType[MAX_STR_LENGTH + 1]{};
220  std::string name{};
221  entity_id id{0};
222  int64_t entityCount{0};
223  int64_t nodesPerEntity{0};
224  int64_t edgesPerEntity{0};
225  int64_t facesPerEntity{0};
226  int64_t attributeCount{0};
227  int64_t offset_{-1};
228  int64_t procOffset{0};
229  };
230 
231  struct NodeSet
232  {
233  NodeSet() = default;
234  NodeSet(const NodeSet &other) = default;
235  explicit NodeSet(const Ioss::NodeSet &other);
236  bool operator==(const NodeSet & /*other*/) const;
237  bool operator!=(const NodeSet &other) const { return !(*this == other); }
238 
239  std::string name{};
240  entity_id id{0};
241  int64_t entityCount{0};
242  int64_t localOwnedCount{0};
243  int64_t attributeCount{0};
244  int64_t dfCount{0};
245  int64_t procOffset{0};
246  };
247 
248  struct EdgeSet
249  {
250  EdgeSet() = default;
251  EdgeSet(const EdgeSet &other) = default;
252  explicit EdgeSet(const Ioss::EdgeSet &other);
253  bool operator==(const EdgeSet & /*other*/) const;
254  bool operator!=(const EdgeSet &other) const { return !(*this == other); }
255 
256  std::string name{};
257  entity_id id{0};
258  int64_t entityCount{0};
259  int64_t attributeCount{0};
260  int64_t dfCount{0};
261  int64_t procOffset{0};
262  };
263 
264  struct FaceSet
265  {
266  FaceSet() = default;
267  FaceSet(const FaceSet &other) = default;
268  explicit FaceSet(const Ioss::FaceSet &other);
269  bool operator==(const FaceSet & /*other*/) const;
270  bool operator!=(const FaceSet &other) const { return !(*this == other); }
271 
272  std::string name{};
273  entity_id id{0};
274  int64_t entityCount{0};
275  int64_t attributeCount{0};
276  int64_t dfCount{0};
277  int64_t procOffset{0};
278  };
279 
280  struct ElemSet
281  {
282  ElemSet() = default;
283  ElemSet(const ElemSet &other) = default;
284  explicit ElemSet(const Ioss::ElementSet &other);
285  bool operator==(const ElemSet & /*other*/) const;
286  bool operator!=(const ElemSet &other) const { return !(*this == other); }
287 
288  std::string name{};
289  entity_id id{0};
290  int64_t entityCount{0};
291  int64_t attributeCount{0};
292  int64_t dfCount{0};
293  int64_t procOffset{0};
294  };
295 
296  struct SideSet
297  {
298  SideSet() = default;
299  explicit SideSet(const Ioss::SideBlock &other);
300  explicit SideSet(const Ioss::SideSet &other);
301  bool operator==(const SideSet & /*other*/) const;
302  bool operator!=(const SideSet &other) const { return !(*this == other); }
303 
304  std::string name{};
305  entity_id id{0};
306  int64_t entityCount{0};
307  int64_t dfCount{0};
308  int64_t procOffset{0};
309  int64_t dfProcOffset{0};
310  };
311 
313  {
314  CommunicationMap() = default;
315  CommunicationMap(entity_id the_id, int64_t count, char the_type)
316  : id(the_id), entityCount(count), type(the_type)
317  {
318  }
319  bool operator==(const CommunicationMap & /*other*/) const;
320  bool operator!=(const CommunicationMap &other) const { return !(*this == other); }
321  entity_id id{0};
322  int64_t entityCount{0};
323  char type{'U'}; // 'n' for node, 'e' for element
324  };
325 
327  {
330 
331  std::vector<CommunicationMap> nodeMap{};
332  std::vector<CommunicationMap> elementMap{};
333  int processorId{0};
335  int64_t globalNodes{0};
336  int64_t globalElements{0};
338  int64_t globalNodeSets{0};
339  int64_t globalSideSets{0};
340  int64_t nodesInternal{0};
341  int64_t nodesBorder{0};
342  int64_t nodesExternal{0};
343  int64_t elementsInternal{0};
344  int64_t elementsBorder{0};
345  bool outputNemesis{false};
346  };
347 
348  class Redefine
349  {
350  public:
351  explicit Redefine(int exoid);
352  Redefine(const Redefine &from) = delete;
353  Redefine &operator=(const Redefine &from) = delete;
354  ~Redefine();
355 
356  private:
358  };
359 
360  class Mesh
361  {
362  public:
363  Mesh() = default;
364 
365  Mesh(int dim, char *the_title, bool file_pp) : dimensionality(dim), file_per_processor(file_pp)
366  {
367  Ioss::Utils::copy_string(title, the_title);
368  }
369 
370  void populate(Ioss::Region *region);
371 
372  char title[MAX_LINE_LENGTH + 1]{};
374  bool file_per_processor{true};
375 
376  std::vector<Assembly> assemblies{};
377  std::vector<Blob> blobs{};
378 
379  std::vector<NodeBlock> nodeblocks{};
380  std::vector<EdgeBlock> edgeblocks{};
381  std::vector<FaceBlock> faceblocks{};
382  std::vector<ElemBlock> elemblocks{};
383  std::vector<NodeSet> nodesets{};
384  std::vector<EdgeSet> edgesets{};
385  std::vector<FaceSet> facesets{};
386  std::vector<ElemSet> elemsets{};
387  std::vector<SideSet> sidesets{};
389  };
390 
391  class Internals
392  {
393  public:
394  Internals(int exoid, int maximum_name_length, const Ioss::ParallelUtils &util);
395  Internals(const Internals &from) = delete;
396  Internals &operator=(const Internals &from) = delete;
397 
398  int initialize_state_file(Mesh &mesh, const ex_var_params &var_params,
399  const std::string &base_file_name);
400 
401  int write_meta_data(Mesh &mesh);
402 
403  /* Special use for updating assembly data in-place in existing db file */
404  /* See src/main/io_assembly.C for current use */
405  static void update_assembly_data(int filePtr, std::vector<Assembly> &assemblies, int stage = 0);
406 
407  // Simple wrapper around `ex_copy`, but keeps users from including `exodusII.h`
408  static void copy_database(int in_file, int out_file, bool transient_also = true);
409 
410  private:
411  void get_global_counts(Mesh &mesh);
412 
413  int put_metadata(const Mesh &mesh, const CommunicationMetaData &comm);
414  int put_metadata(const std::vector<Assembly> &assemblies);
415  int put_metadata(const std::vector<Blob> &blobs);
416  int put_metadata(const std::vector<NodeBlock> &nodeblocks, bool count_only = false);
417  int put_metadata(const std::vector<EdgeBlock> &blocks, bool count_only = false);
418  int put_metadata(const std::vector<FaceBlock> &blocks, bool count_only = false);
419  int put_metadata(const std::vector<ElemBlock> &blocks, bool count_only = false);
420 
421  int put_metadata(const std::vector<NodeSet> &nodesets, bool count_only = false);
422  int put_metadata(const std::vector<EdgeSet> &edgesets, bool count_only = false);
423  int put_metadata(const std::vector<FaceSet> &facesets, bool count_only = false);
424  int put_metadata(const std::vector<ElemSet> &elemsets, bool count_only = false);
425 
426  int put_metadata(const std::vector<SideSet> &sidesets, bool count_only = false);
427 
429  int put_non_define_data(const std::vector<Assembly> &assemblies);
430  int put_non_define_data(const std::vector<Blob> &blobs);
431  int put_non_define_data(const std::vector<NodeBlock> &nodeblocks);
432  int put_non_define_data(const std::vector<EdgeBlock> &blocks);
433  int put_non_define_data(const std::vector<FaceBlock> &blocks);
434  int put_non_define_data(const std::vector<ElemBlock> &blocks);
435 
436  int put_non_define_data(const std::vector<NodeSet> &nodesets);
437  int put_non_define_data(const std::vector<EdgeSet> &edgesets);
438  int put_non_define_data(const std::vector<FaceSet> &facesets);
439  int put_non_define_data(const std::vector<ElemSet> &elemsets);
440 
441  int put_non_define_data(const std::vector<SideSet> &sidesets);
442 
443  int max_name_length() const { return maximumNameLength; }
444 
446  int nodeMapVarID[3];
448  int commIndexVar{0};
452  };
453 } // namespace Ioex
454 #endif /* IOSS_Ioex_Internals_h */
Ioex::Assembly::operator!=
bool operator!=(const Assembly &other) const
Definition: Ioex_Internals.h:101
Ioex::CommunicationMap
Definition: Ioex_Internals.h:313
Ioex::CommunicationMetaData::globalNodes
int64_t globalNodes
Definition: Ioex_Internals.h:335
Ioex::CommunicationMap::operator==
bool operator==(const CommunicationMap &) const
Definition: Ioex_Internals.C:512
Ioex::FaceBlock::operator==
bool operator==(const FaceBlock &) const
Definition: Ioex_Internals.C:288
Ioex::Mesh::dimensionality
int dimensionality
Definition: Ioex_Internals.h:373
Ioex::Blob::Blob
Blob(const Blob &other)=default
Ioex::EdgeSet::operator==
bool operator==(const EdgeSet &) const
Definition: Ioex_Internals.C:412
Ioex::Mesh::edgesets
std::vector< EdgeSet > edgesets
Definition: Ioex_Internals.h:384
Ioex::ElemSet::name
std::string name
Definition: Ioex_Internals.h:288
Ioex::NodeSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:241
Ioex::ElemSet::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:291
Ioex::FaceSet::FaceSet
FaceSet(const FaceSet &other)=default
Ioex::ElemBlock::~ElemBlock
~ElemBlock()=default
Ioex::ElemBlock::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:226
Ioex::Assembly::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:106
Ioex::SideSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:308
Ioex::Assembly
Definition: Ioex_Internals.h:91
Ioex::EdgeBlock::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:156
Ioex::SideSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:306
Ioex::CommunicationMetaData::nodesInternal
int64_t nodesInternal
Definition: Ioex_Internals.h:340
Ioex::NodeSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:245
Ioex::ElemBlock
Definition: Ioex_Internals.h:198
Ioex::ElemBlock::name
std::string name
Definition: Ioex_Internals.h:220
Ioex::ElemBlock::nodesPerEntity
int64_t nodesPerEntity
Definition: Ioex_Internals.h:223
Ioss::Assembly
A homogeneous collection of other GroupingEntities.
Definition: Ioss_Assembly.h:28
Ioex::ElemBlock::offset_
int64_t offset_
Definition: Ioex_Internals.h:227
Ioss::Utils::copy_string
static void copy_string(char *dest, char const *source, size_t elements)
Definition: Ioss_Utils.C:1356
Ioss::Blob
A homogeneous collection of other GroupingEntities.
Definition: Ioss_Blob.h:28
Ioex::NodeBlock::operator=
NodeBlock & operator=(const NodeBlock &other)
Definition: Ioex_Internals.C:194
Ioex::Blob
Definition: Ioex_Internals.h:112
Ioex::Internals::copy_database
static void copy_database(int in_file, int out_file, bool transient_also=true)
Definition: Ioex_Internals.C:1047
Ioex::Assembly::operator=
Assembly & operator=(const Assembly &other)
Definition: Ioex_Internals.C:130
Ioex::FaceBlock::operator!=
bool operator!=(const FaceBlock &other) const
Definition: Ioex_Internals.h:183
Ioex::Internals::operator=
Internals & operator=(const Internals &from)=delete
Ioex::SideSet::dfProcOffset
int64_t dfProcOffset
Definition: Ioex_Internals.h:309
Ioex::Redefine::operator=
Redefine & operator=(const Redefine &from)=delete
Ioex::Internals::put_metadata
int put_metadata(const std::vector< NodeBlock > &nodeblocks, bool count_only=false)
Ioex::FaceBlock::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:192
Ioex::EdgeBlock::elType
char elType[MAX_STR_LENGTH+1]
Definition: Ioex_Internals.h:153
Ioex::Internals::put_non_define_data
int put_non_define_data(const CommunicationMetaData &comm)
Definition: Ioex_Internals.C:2498
Ioex::Mesh::facesets
std::vector< FaceSet > facesets
Definition: Ioex_Internals.h:385
Ioex::Blob::name
std::string name
Definition: Ioex_Internals.h:124
Ioex::FaceBlock::edgesPerEntity
int64_t edgesPerEntity
Definition: Ioex_Internals.h:190
Ioex::Mesh::sidesets
std::vector< SideSet > sidesets
Definition: Ioex_Internals.h:387
Ioex::FaceBlock::id
entity_id id
Definition: Ioex_Internals.h:187
Ioex::NodeSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:244
Ioex::Internals::write_meta_data
int write_meta_data(Mesh &mesh)
Definition: Ioex_Internals.C:916
Ioex::Mesh::comm
CommunicationMetaData comm
Definition: Ioex_Internals.h:388
Ioss::EdgeBlock
A collection of element edges with the same topology.
Definition: Ioss_EdgeBlock.h:28
Ioex::Redefine::exodusFilePtr
int exodusFilePtr
Definition: Ioex_Internals.h:357
Ioex::Mesh::Mesh
Mesh()=default
Ioex::EdgeBlock::operator==
bool operator==(const EdgeBlock &) const
Definition: Ioex_Internals.C:239
Ioex::Blob::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:128
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Ioex::CommunicationMetaData::processorId
int processorId
Definition: Ioex_Internals.h:333
Ioex::Blob::localOwnedCount
int64_t localOwnedCount
Definition: Ioex_Internals.h:127
Ioex::CommunicationMetaData
Definition: Ioex_Internals.h:327
Ioex::Assembly::memberIdList
std::vector< int64_t > memberIdList
Definition: Ioex_Internals.h:108
Ioex::CommunicationMetaData::nodeMap
std::vector< CommunicationMap > nodeMap
Definition: Ioex_Internals.h:331
Ioex::CommunicationMetaData::nodesExternal
int64_t nodesExternal
Definition: Ioex_Internals.h:342
Ioex::Internals::parallelUtil
Ioss::ParallelUtils parallelUtil
Definition: Ioex_Internals.h:451
Ioex::SideSet::name
std::string name
Definition: Ioex_Internals.h:304
Ioss::Region
A grouping entity that contains other grouping entities.
Definition: Ioss_Region.h:78
Ioex::ElemBlock::ElemBlock
ElemBlock(const ElemBlock &other)
Definition: Ioex_Internals.h:201
Ioex::NodeSet::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:243
Ioex::CommunicationMetaData::CommunicationMetaData
CommunicationMetaData()=default
Ioss::NodeSet
A collection of nodes.
Definition: Ioss_NodeSet.h:28
Ioex::SideSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:307
Ioex::EdgeBlock::~EdgeBlock
~EdgeBlock()=default
Ioex::CommunicationMap::id
entity_id id
Definition: Ioex_Internals.h:321
Ioex::NodeBlock::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:86
Ioex::Internals::maximumNameLength
int maximumNameLength
Definition: Ioex_Internals.h:450
Ioex::EdgeBlock::operator=
EdgeBlock & operator=(const EdgeBlock &other)
Definition: Ioex_Internals.C:227
Ioss::FaceSet
A collection of element faces.
Definition: Ioss_FaceSet.h:29
Ioex::Internals::max_name_length
int max_name_length() const
Definition: Ioex_Internals.h:443
Ioex::Mesh::faceblocks
std::vector< FaceBlock > faceblocks
Definition: Ioex_Internals.h:381
Ioex::Mesh::file_per_processor
bool file_per_processor
Definition: Ioex_Internals.h:374
Ioex::FaceSet::operator==
bool operator==(const FaceSet &) const
Definition: Ioex_Internals.C:434
Ioex::ElemSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:292
Ioex::Internals::initialize_state_file
int initialize_state_file(Mesh &mesh, const ex_var_params &var_params, const std::string &base_file_name)
Definition: Ioex_Internals.C:523
Ioex::Mesh::populate
void populate(Ioss::Region *region)
Definition: Ioex_Internals.C:814
Ioex::Blob::operator=
Blob & operator=(const Blob &other)
Definition: Ioex_Internals.C:159
Ioex::Mesh::edgeblocks
std::vector< EdgeBlock > edgeblocks
Definition: Ioex_Internals.h:380
Ioex::CommunicationMetaData::processorCount
int processorCount
Definition: Ioex_Internals.h:334
Ioss::EdgeSet
A collection of element edges.
Definition: Ioss_EdgeSet.h:29
Ioss::ElementSet
A collection of elements.
Definition: Ioss_ElementSet.h:29
Ioex::Blob::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:126
Ioss_ParallelUtils.h
Ioex::Internals::exodusFilePtr
int exodusFilePtr
Definition: Ioex_Internals.h:445
Ioex::Redefine::Redefine
Redefine(int exoid)
Definition: Ioex_Internals.C:74
Ioex::ElemBlock::elType
char elType[MAX_STR_LENGTH+1]
Definition: Ioex_Internals.h:219
Ioex::EdgeBlock::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:158
entity_id
int64_t entity_id
Definition: Ioex_Internals.h:32
Ioex::NodeSet::NodeSet
NodeSet()=default
Ioex::CommunicationMetaData::elementMap
std::vector< CommunicationMap > elementMap
Definition: Ioex_Internals.h:332
Ioex::EdgeBlock::operator!=
bool operator!=(const EdgeBlock &other) const
Definition: Ioex_Internals.h:151
Ioex::EdgeBlock::EdgeBlock
EdgeBlock()
Definition: Ioex_Internals.h:134
Ioex::Internals::elemCommIndexVar
int elemCommIndexVar
Definition: Ioex_Internals.h:449
Ioex::NodeSet::operator!=
bool operator!=(const NodeSet &other) const
Definition: Ioex_Internals.h:237
Ioex::EdgeSet::name
std::string name
Definition: Ioex_Internals.h:256
Ioex::Internals::elementMapVarID
int elementMapVarID[2]
Definition: Ioex_Internals.h:447
Ioex::ElemSet
Definition: Ioex_Internals.h:281
Ioss::FaceBlock
A collection of element faces with the same topology.
Definition: Ioss_FaceBlock.h:28
Ioex::FaceBlock::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:191
Ioex::NodeBlock::localOwnedCount
int64_t localOwnedCount
Definition: Ioex_Internals.h:85
Ioex::Redefine::Redefine
Redefine(const Redefine &from)=delete
Ioex::Internals::nodeMapVarID
int nodeMapVarID[3]
Definition: Ioex_Internals.h:446
Ioex::Assembly::Assembly
Assembly(const Assembly &other)=default
Ioex::Redefine
Definition: Ioex_Internals.h:349
Ioex::Mesh::blobs
std::vector< Blob > blobs
Definition: Ioex_Internals.h:377
Ioex
A namespace for the exodus database format.
Definition: Ioex_BaseDatabaseIO.C:101
Ioex::Assembly::name
std::string name
Definition: Ioex_Internals.h:103
Ioex::NodeSet::localOwnedCount
int64_t localOwnedCount
Definition: Ioex_Internals.h:242
Ioex::NodeBlock
Definition: Ioex_Internals.h:70
Ioex::FaceSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:276
Ioex::CommunicationMetaData::globalNodeSets
int64_t globalNodeSets
Definition: Ioex_Internals.h:338
Ioex::Blob::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:129
Ioex::CommunicationMap::operator!=
bool operator!=(const CommunicationMap &other) const
Definition: Ioex_Internals.h:320
Ioex::Internals::put_non_define_data
int put_non_define_data(const std::vector< NodeBlock > &nodeblocks)
Ioex::EdgeBlock::nodesPerEntity
int64_t nodesPerEntity
Definition: Ioex_Internals.h:157
Ioss::SideBlock
A collection of element sides having the same topology.
Definition: Ioss_SideBlock.h:34
Ioex::SideSet::operator==
bool operator==(const SideSet &) const
Definition: Ioex_Internals.C:506
Ioex::ElemBlock::facesPerEntity
int64_t facesPerEntity
Definition: Ioex_Internals.h:225
Ioex::Mesh::nodesets
std::vector< NodeSet > nodesets
Definition: Ioex_Internals.h:383
Ioex::FaceBlock::FaceBlock
FaceBlock(const FaceBlock &other)
Definition: Ioex_Internals.h:168
Ioex::Redefine::~Redefine
~Redefine()
Definition: Ioex_Internals.C:87
Ioex::ElemBlock::id
entity_id id
Definition: Ioex_Internals.h:221
Ioex::CommunicationMetaData::elementsInternal
int64_t elementsInternal
Definition: Ioex_Internals.h:343
Ioex::Assembly::Assembly
Assembly()=default
Ioex::ElemBlock::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:222
Ioex::Blob::operator!=
bool operator!=(const Blob &other) const
Definition: Ioex_Internals.h:122
Ioex::EdgeBlock::EdgeBlock
EdgeBlock(const EdgeBlock &other)
Definition: Ioex_Internals.h:136
Ioex::EdgeSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:261
Ioex::ElemSet::operator==
bool operator==(const ElemSet &) const
Definition: Ioex_Internals.C:456
Ioex::Mesh::Mesh
Mesh(int dim, char *the_title, bool file_pp)
Definition: Ioex_Internals.h:365
Ioex::Assembly::type
ex_entity_type type
Definition: Ioex_Internals.h:107
Ioex::ElemSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:293
Ioex::FaceBlock::operator=
FaceBlock & operator=(const FaceBlock &other)
Definition: Ioex_Internals.C:275
Ioex::EdgeSet
Definition: Ioex_Internals.h:249
Ioex::EdgeBlock::name
std::string name
Definition: Ioex_Internals.h:154
Ioex::EdgeSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:260
Ioex::FaceBlock
Definition: Ioex_Internals.h:165
Ioex::ElemSet::operator!=
bool operator!=(const ElemSet &other) const
Definition: Ioex_Internals.h:286
Ioex::ElemBlock::edgesPerEntity
int64_t edgesPerEntity
Definition: Ioex_Internals.h:224
Ioss::ElementBlock
A collection of elements having the same topology.
Definition: Ioss_ElementBlock.h:23
Ioex::NodeBlock::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:87
Ioex::Assembly::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:105
Ioex::NodeBlock::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:84
Ioex::Mesh::elemsets
std::vector< ElemSet > elemsets
Definition: Ioex_Internals.h:386
Ioex::CommunicationMap::CommunicationMap
CommunicationMap()=default
Ioex::CommunicationMap::type
char type
Definition: Ioex_Internals.h:323
Ioex::FaceSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:277
Ioex::ElemSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:290
Ioex::EdgeSet::EdgeSet
EdgeSet()=default
Ioex::FaceSet::FaceSet
FaceSet()=default
Ioex::NodeSet::name
std::string name
Definition: Ioex_Internals.h:239
Ioex::NodeSet::NodeSet
NodeSet(const NodeSet &other)=default
Ioex::Internals::update_assembly_data
static void update_assembly_data(int filePtr, std::vector< Assembly > &assemblies, int stage=0)
Definition: Ioex_Internals.C:1055
Ioex::SideSet
Definition: Ioex_Internals.h:297
Ioex::Internals::Internals
Internals(const Internals &from)=delete
Ioex::EdgeBlock
Definition: Ioex_Internals.h:133
Ioex::NodeBlock::name
std::string name
Definition: Ioex_Internals.h:82
Ioex::CommunicationMap::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:322
Ioex::FaceSet::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:275
Ioss::ParallelUtils
Definition: Ioss_ParallelUtils.h:24
Ioex::NodeBlock::NodeBlock
NodeBlock()=default
Ioex::CommunicationMetaData::nodesBorder
int64_t nodesBorder
Definition: Ioex_Internals.h:341
Ioex::Mesh
Definition: Ioex_Internals.h:361
Ioex::CommunicationMetaData::globalElementBlocks
int64_t globalElementBlocks
Definition: Ioex_Internals.h:337
Ioex::EdgeSet::operator!=
bool operator!=(const EdgeSet &other) const
Definition: Ioex_Internals.h:254
Ioex::Blob::operator==
bool operator==(const Blob &) const
Ioex::Assembly::operator==
bool operator==(const Assembly &) const
Ioex::Internals
Definition: Ioex_Internals.h:392
Ioex::FaceSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:274
Ioex::FaceBlock::nodesPerEntity
int64_t nodesPerEntity
Definition: Ioex_Internals.h:189
Ioex::EdgeSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:258
Ioex::Internals::get_global_counts
void get_global_counts(Mesh &mesh)
Definition: Ioex_Internals.C:1070
Ioex::ElemBlock::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:228
Ioex::Internals::commIndexVar
int commIndexVar
Definition: Ioex_Internals.h:448
Ioss::NodeBlock
A collection of all nodes in the region.
Definition: Ioss_NodeBlock.h:28
Ioex::CommunicationMetaData::elementsBorder
int64_t elementsBorder
Definition: Ioex_Internals.h:344
Ioex::SideSet::operator!=
bool operator!=(const SideSet &other) const
Definition: Ioex_Internals.h:302
Ioex::ElemBlock::operator==
bool operator==(const ElemBlock &) const
Definition: Ioex_Internals.C:357
Ioex::CommunicationMetaData::globalSideSets
int64_t globalSideSets
Definition: Ioex_Internals.h:339
Ioex::FaceBlock::FaceBlock
FaceBlock()
Definition: Ioex_Internals.h:166
Ioex::CommunicationMetaData::CommunicationMetaData
CommunicationMetaData(const CommunicationMetaData &)=delete
Ioex::FaceSet
Definition: Ioex_Internals.h:265
Ioex::Mesh::title
char title[MAX_LINE_LENGTH+1]
Definition: Ioex_Internals.h:372
Ioex::FaceBlock::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:188
Ioex::ElemSet::ElemSet
ElemSet(const ElemSet &other)=default
Ioex::CommunicationMap::CommunicationMap
CommunicationMap(entity_id the_id, int64_t count, char the_type)
Definition: Ioex_Internals.h:315
Ioex::Mesh::assemblies
std::vector< Assembly > assemblies
Definition: Ioex_Internals.h:376
Ioex::NodeBlock::operator==
bool operator==(const NodeBlock &) const
Ioex::Internals::put_metadata
int put_metadata(const Mesh &mesh, const CommunicationMetaData &comm)
Definition: Ioex_Internals.C:1193
Ioex::EdgeSet::EdgeSet
EdgeSet(const EdgeSet &other)=default
Ioex::SideSet::SideSet
SideSet()=default
Ioex::Mesh::elemblocks
std::vector< ElemBlock > elemblocks
Definition: Ioex_Internals.h:382
Ioex::ElemBlock::operator!=
bool operator!=(const ElemBlock &other) const
Definition: Ioex_Internals.h:217
Ioex::FaceBlock::elType
char elType[MAX_STR_LENGTH+1]
Definition: Ioex_Internals.h:185
Ioex::NodeSet::operator==
bool operator==(const NodeSet &) const
Definition: Ioex_Internals.C:390
Ioex::FaceBlock::name
std::string name
Definition: Ioex_Internals.h:186
Ioex::EdgeSet::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:259
Ioex::Assembly::~Assembly
~Assembly()=default
Ioss::SideSet
A collection of element sides.
Definition: Ioss_SideSet.h:28
Ioex::FaceBlock::~FaceBlock
~FaceBlock()=default
Ioex::CommunicationMetaData::globalElements
int64_t globalElements
Definition: Ioex_Internals.h:336
Ioex::CommunicationMetaData::outputNemesis
bool outputNemesis
Definition: Ioex_Internals.h:345
Ioex::Mesh::nodeblocks
std::vector< NodeBlock > nodeblocks
Definition: Ioex_Internals.h:379
Ioex::FaceSet::name
std::string name
Definition: Ioex_Internals.h:272
Ioex::ElemBlock::ElemBlock
ElemBlock()
Definition: Ioex_Internals.h:199
Ioex::Blob::~Blob
~Blob()=default
Ioex::ElemSet::ElemSet
ElemSet()=default
Ioex::NodeBlock::~NodeBlock
~NodeBlock()=default
Ioex::Blob::Blob
Blob()=default
Ioex::NodeBlock::operator!=
bool operator!=(const NodeBlock &other) const
Definition: Ioex_Internals.h:80
Ioex::FaceSet::operator!=
bool operator!=(const FaceSet &other) const
Definition: Ioex_Internals.h:270
Ioex::NodeBlock::NodeBlock
NodeBlock(const NodeBlock &other)=default
Ioex::NodeSet
Definition: Ioex_Internals.h:232
Ioex::EdgeBlock::id
entity_id id
Definition: Ioex_Internals.h:155
Ioex::EdgeBlock::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:159
Ioex::Internals::Internals
Internals(int exoid, int maximum_name_length, const Ioss::ParallelUtils &util)
Definition: Ioex_Internals.C:517
Ioex::ElemBlock::operator=
ElemBlock & operator=(const ElemBlock &other)
Definition: Ioex_Internals.C:342