IOSS 2.0

Ioex_Internals.h
Go to the documentation of this file.
1 /*
2 * Copyright(C) 1999-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 #ifndef IOSS_Ioex_Internals_h
36 #define IOSS_Ioex_Internals_h
37
38 #include "Ioss_ParallelUtils.h" // for ParallelUtils
39 #include <cstdint> // for int64_t
40 #include <exodusII.h> // for MAX_LINE_LENGTH, etc
41 #include <string> // for string
42 #include <vector> // for vector
43 namespace Ioss {
44 class EdgeBlock;
45 } // namespace Ioss
46 namespace Ioss {
47 class EdgeSet;
48 } // namespace Ioss
49 namespace Ioss {
50 class ElementBlock;
51 } // namespace Ioss
52 namespace Ioss {
53 class ElementSet;
54 } // namespace Ioss
55 namespace Ioss {
56 class FaceBlock;
57 } // namespace Ioss
58 namespace Ioss {
59 class FaceSet;
60 } // namespace Ioss
61 namespace Ioss {
62 class NodeBlock;
63 } // namespace Ioss
64 namespace Ioss {
65 class NodeSet;
66 } // namespace Ioss
67 namespace Ioss {
68 class SideBlock;
69 } // namespace Ioss
70 namespace Ioss {
71 class SideSet;
72 } // namespace Ioss
73
74 using entity_id = int64_t;
75
76 namespace Ioss {
77 } // namespace Ioss
78 /*!
79 * This set of classes provides a thin wrapper around the exodusII
80 * internals. It supplants several of the exodusII API calls in
81 * order to avoid ncredef calls which totally rewrite the existing
82 * database and can be very expensive. These routines provide all
83 * required variable, dimension, and attribute definitions to the
84 * underlying netcdf file with only a single ncredef call.
85 *
86 * To use the application must create an Internals instance
87 * and call the Internals::write_meta_data() function. This
88 * function requires several classes as arguments including:
89 * <ul>
90 * <li> Mesh -- defines mesh global metadata
91 * <li> Block -- defines metadata for each block
92 * <li> NodeSet -- defines metadata for each nodeset
93 * <li> SideSet -- defines metadata for each sideset
94 * <li> CommunicationMetaData -- global metadata relating to
95 * parallel info.
96 * </ul>
97 *
98 * Calling Internals::write_meta_data(), replaces the
99 * following exodusII and nemesis API calls:
100 * <ul>
101 * <li> ex_put_init(),
102 * <li> ex_put_elem_block(),
103 * <li> ex_put_node_set_param(),
104 * <li> ex_put_side_set_param(),
105 * <li> ne_put_init_info(),
106 * <li> ne_put_loadbal_param(),
107 * <li> ne_put_cmap_params(),
108 * </ul>
109 */
110 namespace Ioex {
111 struct NodeBlock
112 {
113 NodeBlock() = default;
114 NodeBlock(const NodeBlock &other) = default;
115 explicit NodeBlock(const Ioss::NodeBlock &other);
116
117 NodeBlock &operator=(const NodeBlock &other);
118
119 ~NodeBlock() = default;
120
121 bool operator==(const NodeBlock &) const;
122 bool operator!=(const NodeBlock &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 private:
132 };
133
134 struct EdgeBlock
135 {
136 EdgeBlock() { Ioss::Utils::copy_string(elType, ""); }
137
138 EdgeBlock(const EdgeBlock &other)
139 : name(other.name), id(other.id), entityCount(other.entityCount),
140 nodesPerEntity(other.nodesPerEntity), attributeCount(other.attributeCount),
141 procOffset(other.procOffset)
142 {
143 Ioss::Utils::copy_string(elType, other.elType);
144 }
145
146 explicit EdgeBlock(const Ioss::EdgeBlock &other);
147
148 EdgeBlock &operator=(const EdgeBlock &other);
149
150 ~EdgeBlock() = default;
151
152 bool operator==(const EdgeBlock & /*other*/) const;
153 bool operator!=(const EdgeBlock &other) const { return !(*this == other); }
154
155 char elType[MAX_STR_LENGTH + 1]{};
156 std::string name{};
157 entity_id id{0};
158 int64_t entityCount{0};
159 int64_t nodesPerEntity{0};
160 int64_t attributeCount{0};
161 int64_t procOffset{0};
162
163 private:
164 };
165
166 struct FaceBlock
167 {
168 FaceBlock()
169 : name(""), id(0), entityCount(0), nodesPerEntity(0), edgesPerEntity(0), attributeCount(0),
170 procOffset(0)
171 {
172 Ioss::Utils::copy_string(elType, "");
173 }
174
175 FaceBlock(const FaceBlock &other)
176 : name(other.name), id(other.id), entityCount(other.entityCount),
177 nodesPerEntity(other.nodesPerEntity), edgesPerEntity(other.edgesPerEntity),
178 attributeCount(other.attributeCount), procOffset(other.procOffset)
179 {
180 Ioss::Utils::copy_string(elType, other.elType);
181 }
182
183 explicit FaceBlock(const Ioss::FaceBlock &other);
184
185 FaceBlock &operator=(const FaceBlock &other);
186
187 ~FaceBlock() = default;
188
189 bool operator==(const FaceBlock & /*other*/) const;
190 bool operator!=(const FaceBlock &other) const { return !(*this == other); }
191
192 char elType[MAX_STR_LENGTH + 1]{};
193 std::string name;
194 entity_id id;
195 int64_t entityCount;
196 int64_t nodesPerEntity;
197 int64_t edgesPerEntity;
198 int64_t attributeCount;
199 int64_t procOffset;
200
201 private:
202 };
203
204 struct ElemBlock
205 {
206 ElemBlock()
207 : name(""), id(0), entityCount(0), nodesPerEntity(0), edgesPerEntity(0), facesPerEntity(0),
208 attributeCount(0), offset_(-1), procOffset(0)
209 {
210 Ioss::Utils::copy_string(elType, "");
211 }
212
213 ElemBlock(const ElemBlock &other)
214 : name(other.name), id(other.id), entityCount(other.entityCount),
215 nodesPerEntity(other.nodesPerEntity), edgesPerEntity(other.edgesPerEntity),
216 facesPerEntity(other.facesPerEntity), attributeCount(other.attributeCount),
217 offset_(other.offset_), procOffset(other.procOffset)
218 {
219 Ioss::Utils::copy_string(elType, other.elType);
220 }
221
222 explicit ElemBlock(const Ioss::ElementBlock &other);
223
224 ElemBlock &operator=(const ElemBlock &other);
225
226 ~ElemBlock() = default;
227
228 bool operator==(const ElemBlock & /*other*/) const;
229 bool operator!=(const ElemBlock &other) const { return !(*this == other); }
230
231 char elType[MAX_STR_LENGTH + 1]{};
232 std::string name;
233 entity_id id;
234 int64_t entityCount;
235 int64_t nodesPerEntity;
236 int64_t edgesPerEntity;
237 int64_t facesPerEntity;
238 int64_t attributeCount;
239 int64_t offset_;
240 int64_t procOffset;
241 };
242
243 struct NodeSet
244 {
245 NodeSet() = default;
246 NodeSet(const NodeSet &other) = default;
247 explicit NodeSet(const Ioss::NodeSet &other);
248 bool operator==(const NodeSet & /*other*/) const;
249 bool operator!=(const NodeSet &other) const { return !(*this == other); }
250
251 std::string name{};
252 entity_id id{0};
253 int64_t entityCount{0};
254 int64_t localOwnedCount{0};
255 int64_t attributeCount{0};
256 int64_t dfCount{0};
257 int64_t procOffset{0};
258 };
259
260 struct EdgeSet
261 {
262 EdgeSet() = default;
263 EdgeSet(const EdgeSet &other) = default;
264 explicit EdgeSet(const Ioss::EdgeSet &other);
265 bool operator==(const EdgeSet & /*other*/) const;
266 bool operator!=(const EdgeSet &other) const { return !(*this == other); }
267
268 std::string name{};
269 entity_id id{0};
270 int64_t entityCount{0};
271 int64_t attributeCount{0};
272 int64_t dfCount{0};
273 int64_t procOffset{0};
274 };
275
276 struct FaceSet
277 {
278 FaceSet() = default;
279 FaceSet(const FaceSet &other) = default;
280 explicit FaceSet(const Ioss::FaceSet &other);
281 bool operator==(const FaceSet & /*other*/) const;
282 bool operator!=(const FaceSet &other) const { return !(*this == other); }
283
284 std::string name{};
285 entity_id id{0};
286 int64_t entityCount{0};
287 int64_t attributeCount{0};
288 int64_t dfCount{0};
289 int64_t procOffset{0};
290 };
291
292 struct ElemSet
293 {
294 ElemSet() = default;
295 ElemSet(const ElemSet &other) = default;
296 explicit ElemSet(const Ioss::ElementSet &other);
297 bool operator==(const ElemSet & /*other*/) const;
298 bool operator!=(const ElemSet &other) const { return !(*this == other); }
299
300 std::string name{};
301 entity_id id{0};
302 int64_t entityCount{0};
303 int64_t attributeCount{0};
304 int64_t dfCount{0};
305 int64_t procOffset{0};
306 };
307
308 struct SideSet
309 {
310 SideSet() = default;
311 explicit SideSet(const Ioss::SideBlock &other);
312 explicit SideSet(const Ioss::SideSet &other);
313 bool operator==(const SideSet & /*other*/) const;
314 bool operator!=(const SideSet &other) const { return !(*this == other); }
315
316 std::string name{};
317 entity_id id{0};
318 int64_t entityCount{0};
319 int64_t dfCount{0};
320 int64_t procOffset{0};
321 int64_t dfProcOffset{0};
322 };
323
324 struct CommunicationMap
325 {
326 CommunicationMap() = default;
327 CommunicationMap(entity_id the_id, int64_t count, char the_type)
328 : id(the_id), entityCount(count), type(the_type)
329 {
330 }
331 bool operator==(const CommunicationMap & /*other*/) const;
332 bool operator!=(const CommunicationMap &other) const { return !(*this == other); }
333 entity_id id{0};
334 int64_t entityCount{0};
335 char type{'U'}; // 'n' for node, 'e' for element
336 };
337
338 struct CommunicationMetaData
339 {
340 CommunicationMetaData()
341 : processorId(0), processorCount(0), globalNodes(0), globalElements(0),
342 globalElementBlocks(0), globalNodeSets(0), globalSideSets(0), nodesInternal(0),
343 nodesBorder(0), nodesExternal(0), elementsInternal(0), elementsBorder(0),
344 outputNemesis(false)
345 {
346 }
347
348 std::vector<CommunicationMap> nodeMap;
349 std::vector<CommunicationMap> elementMap;
350 int processorId;
351 int processorCount;
352 int64_t globalNodes;
353 int64_t globalElements;
354 int64_t globalElementBlocks;
355 int64_t globalNodeSets;
356 int64_t globalSideSets;
357 int64_t nodesInternal;
358 int64_t nodesBorder;
359 int64_t nodesExternal;
360 int64_t elementsInternal;
361 int64_t elementsBorder;
362 bool outputNemesis;
363
364 private:
365 CommunicationMetaData(const CommunicationMetaData &);
366 };
367
368 class Redefine
369 {
370 public:
371 explicit Redefine(int exoid);
372 Redefine(const Redefine &from) = delete;
373 Redefine &operator=(const Redefine &from) = delete;
374 ~Redefine();
375
376 private:
377 int exodusFilePtr;
378 };
379
380 class Mesh
381 {
382 public:
383 Mesh() : title(), dimensionality(0), file_per_processor(true) {}
384
385 Mesh(int dim, char *the_title, bool file_pp) : dimensionality(dim), file_per_processor(file_pp)
386 {
387 Ioss::Utils::copy_string(title, the_title);
388 }
389
390 void populate(Ioss::Region *region);
391
392 char title[MAX_LINE_LENGTH + 1]{};
393 int dimensionality;
394 bool file_per_processor;
395
396 std::vector<NodeBlock> nodeblocks;
397 std::vector<EdgeBlock> edgeblocks;
398 std::vector<FaceBlock> faceblocks;
399 std::vector<ElemBlock> elemblocks;
400 std::vector<NodeSet> nodesets;
401 std::vector<EdgeSet> edgesets;
402 std::vector<FaceSet> facesets;
403 std::vector<ElemSet> elemsets;
404 std::vector<SideSet> sidesets;
405 CommunicationMetaData comm;
406 };
407
408 class Internals
409 {
410 public:
411 Internals(int exoid, int maximum_name_length, const Ioss::ParallelUtils &util);
412 Internals(const Internals &from) = delete;
413 Internals &operator=(const Internals &from) = delete;
414
415 int initialize_state_file(Mesh &mesh, const ex_var_params &var_params,
416 const std::string &base_file_name);
417
418 int write_meta_data(Mesh &mesh);
419
420 /*! A restart file may contain an attribute which contains
421 * information about the processor count and current processor id
422 * * when the file was written. This code checks whether that
423 * information matches the current processor count and id. If it
424 * * exists, but doesn't match, a warning message is printed.
425 * Eventually, this will be used to determine whether certain
426 * decomposition-related data in the file is valid or has been
427 * invalidated by a join/re-spread to a different number of
428 * processors.
429 */
430
431 private:
432 void get_global_counts(Mesh &mesh);
433
434 int put_metadata(const Mesh &mesh, const CommunicationMetaData &comm);
435 int put_metadata(const std::vector<NodeBlock> &nodeblocks, bool count_only = false);
436 int put_metadata(const std::vector<EdgeBlock> &blocks, bool count_only = false);
437 int put_metadata(const std::vector<FaceBlock> &blocks, bool count_only = false);
438 int put_metadata(const std::vector<ElemBlock> &blocks, bool count_only = false);
439
440 int put_metadata(const std::vector<NodeSet> &nodesets, bool count_only = false);
441 int put_metadata(const std::vector<EdgeSet> &edgesets, bool count_only = false);
442 int put_metadata(const std::vector<FaceSet> &facesets, bool count_only = false);
443 int put_metadata(const std::vector<ElemSet> &elemsets, bool count_only = false);
444
445 int put_metadata(const std::vector<SideSet> &sidesets, bool count_only = false);
446
447 int put_non_define_data(const CommunicationMetaData &comm);
448 int put_non_define_data(const std::vector<NodeBlock> &nodeblocks);
449 int put_non_define_data(const std::vector<EdgeBlock> &blocks);
450 int put_non_define_data(const std::vector<FaceBlock> &blocks);
451 int put_non_define_data(const std::vector<ElemBlock> &blocks);
452
453 int put_non_define_data(const std::vector<NodeSet> &nodesets);
454 int put_non_define_data(const std::vector<EdgeSet> &edgesets);
455 int put_non_define_data(const std::vector<FaceSet> &facesets);
456 int put_non_define_data(const std::vector<ElemSet> &elemsets);
457
458 int put_non_define_data(const std::vector<SideSet> &sidesets);
459
460 int max_name_length() const { return maximumNameLength; }
461
462 int exodusFilePtr;
463 int nodeMapVarID[3];
464 int elementMapVarID[2];
465 int commIndexVar{0};
466 int elemCommIndexVar{0};
467 int maximumNameLength{32};
468 Ioss::ParallelUtils parallelUtil;
469 };
470 } // namespace Ioex
471 #endif /* IOSS_Ioex_Internals_h */
Ioex::SideSet::operator==
bool operator==(const SideSet &) const
Definition: Ioex_Internals.C:462
Ioex::CommunicationMetaData::globalNodes
int64_t globalNodes
Definition: Ioex_Internals.h:352
Ioex::NodeBlock::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:128
Ioex::NodeBlock::name
std::string name
Definition: Ioex_Internals.h:124
Ioex::Redefine::~Redefine
~Redefine()
Definition: Ioex_Internals.C:107
Ioex::FaceBlock::FaceBlock
FaceBlock(const FaceBlock &other)
Definition: Ioex_Internals.h:175
Ioex::EdgeSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:273
Ioex::FaceBlock::edgesPerEntity
int64_t edgesPerEntity
Definition: Ioex_Internals.h:197
Ioex::NodeSet::operator!=
bool operator!=(const NodeSet &other) const
Definition: Ioex_Internals.h:249
Ioex::NodeBlock::NodeBlock
NodeBlock()=default
Ioex::NodeSet::NodeSet
NodeSet()=default
Ioex::EdgeBlock::~EdgeBlock
~EdgeBlock()=default
Ioex::Redefine
Definition: Ioex_Internals.h:368
Ioex::Internals::maximumNameLength
int maximumNameLength
Definition: Ioex_Internals.h:467
Ioex::ElemBlock::nodesPerEntity
int64_t nodesPerEntity
Definition: Ioex_Internals.h:235
Ioex::ElemBlock::offset_
int64_t offset_
Definition: Ioex_Internals.h:239
Ioex::Mesh::dimensionality
int dimensionality
Definition: Ioex_Internals.h:393
Ioex::Mesh::comm
CommunicationMetaData comm
Definition: Ioex_Internals.h:405
Ioex::FaceSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:288
Ioex::EdgeBlock::id
entity_id id
Definition: Ioex_Internals.h:157
Ioex::EdgeBlock::elType
char elType[MAX_STR_LENGTH+1]
Definition: Ioex_Internals.h:155
Ioex::Mesh
Definition: Ioex_Internals.h:380
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:66
Ioex::Internals::commIndexVar
int commIndexVar
Definition: Ioex_Internals.h:465
Ioex::EdgeBlock::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:161
Ioex::FaceBlock::elType
char elType[MAX_STR_LENGTH+1]
Definition: Ioex_Internals.h:192
Ioex::EdgeSet::EdgeSet
EdgeSet()=default
Ioex::FaceBlock::operator!=
bool operator!=(const FaceBlock &other) const
Definition: Ioex_Internals.h:190
Ioex::ElemBlock::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:234
Ioex::ElemBlock::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:238
Ioex::FaceBlock::name
std::string name
Definition: Ioex_Internals.h:193
Ioex::EdgeBlock::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:160
Ioex::ElemBlock::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:240
Ioex::FaceBlock::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:199
Ioex::NodeSet::localOwnedCount
int64_t localOwnedCount
Definition: Ioex_Internals.h:254
Ioss::NodeSet
A collection of nodes.
Definition: Ioss_NodeSet.h:53
Ioex::NodeBlock::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:129
Ioss::FaceBlock
A collection of element faces with the same topology.
Definition: Ioss_FaceBlock.h:53
Ioex::CommunicationMetaData::elementsInternal
int64_t elementsInternal
Definition: Ioex_Internals.h:360
Ioss::FaceSet
A collection of element faces.
Definition: Ioss_FaceSet.h:54
Ioex::NodeBlock
Definition: Ioex_Internals.h:111
Ioex::FaceBlock::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:198
Ioex::FaceBlock
Definition: Ioex_Internals.h:166
Ioex::NodeBlock::localOwnedCount
int64_t localOwnedCount
Definition: Ioex_Internals.h:127
Ioex::FaceSet::FaceSet
FaceSet()=default
Ioex::CommunicationMetaData::nodeMap
std::vector< CommunicationMap > nodeMap
Definition: Ioex_Internals.h:348
Ioss::EdgeSet
A collection of element edges.
Definition: Ioss_EdgeSet.h:54
Ioex::NodeBlock::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:126
Ioex::CommunicationMap::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:334
Ioex::FaceBlock::operator==
bool operator==(const FaceBlock &) const
Definition: Ioex_Internals.C:244
Ioex::FaceBlock::id
entity_id id
Definition: Ioex_Internals.h:194
Ioex::CommunicationMetaData::processorId
int processorId
Definition: Ioex_Internals.h:350
Ioex::CommunicationMap::operator!=
bool operator!=(const CommunicationMap &other) const
Definition: Ioex_Internals.h:332
Ioss::SideBlock
A collection of element sides having the same topology.
Definition: Ioss_SideBlock.h:61
Ioex::ElemBlock::ElemBlock
ElemBlock()
Definition: Ioex_Internals.h:206
Ioex::FaceSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:289
Ioex::ElemSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:302
Ioex::EdgeSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:272
Ioex::ElemSet::operator!=
bool operator!=(const ElemSet &other) const
Definition: Ioex_Internals.h:298
Ioex::CommunicationMetaData::outputNemesis
bool outputNemesis
Definition: Ioex_Internals.h:362
Ioex::CommunicationMap::CommunicationMap
CommunicationMap()=default
Ioex::CommunicationMap::id
entity_id id
Definition: Ioex_Internals.h:333
Ioex::FaceSet::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:287
Ioss::ParallelUtils
Definition: Ioss_ParallelUtils.h:49
Ioex::Mesh::facesets
std::vector< FaceSet > facesets
Definition: Ioex_Internals.h:402
Ioex::EdgeSet::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:271
Ioex::NodeSet::operator==
bool operator==(const NodeSet &) const
Definition: Ioex_Internals.C:346
Ioex::SideSet::SideSet
SideSet()=default
Ioex::FaceSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:286
Ioex::ElemBlock::ElemBlock
ElemBlock(const ElemBlock &other)
Definition: Ioex_Internals.h:213
Ioex::ElemBlock::operator==
bool operator==(const ElemBlock &) const
Definition: Ioex_Internals.C:313
Ioex::NodeSet::name
std::string name
Definition: Ioex_Internals.h:251
Ioex::FaceSet
Definition: Ioex_Internals.h:276
Ioex::Mesh::edgesets
std::vector< EdgeSet > edgesets
Definition: Ioex_Internals.h:401
Ioss::ElementBlock
A collection of elements having the same topology.
Definition: Ioss_ElementBlock.h:48
Ioex::FaceBlock::nodesPerEntity
int64_t nodesPerEntity
Definition: Ioex_Internals.h:196
Ioex::Internals::parallelUtil
Ioss::ParallelUtils parallelUtil
Definition: Ioex_Internals.h:468
Ioex::CommunicationMap
Definition: Ioex_Internals.h:324
Ioex::ElemBlock::name
std::string name
Definition: Ioex_Internals.h:232
Ioex::ElemSet::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:303
Ioex::CommunicationMetaData::globalElementBlocks
int64_t globalElementBlocks
Definition: Ioex_Internals.h:354
Ioss::ElementSet
A collection of elements.
Definition: Ioss_ElementSet.h:54
Ioex::FaceBlock::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:195
Ioex::SideSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:320
Ioex::EdgeSet::operator!=
bool operator!=(const EdgeSet &other) const
Definition: Ioex_Internals.h:266
Ioex::Internals::put_non_define_data
int put_non_define_data(const CommunicationMetaData &comm)
Definition: Ioex_Internals.C:2252
Ioex::EdgeSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:270
Ioex::Mesh::Mesh
Mesh(int dim, char *the_title, bool file_pp)
Definition: Ioex_Internals.h:385
Ioex::NodeSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:257
Ioex::CommunicationMetaData::globalNodeSets
int64_t globalNodeSets
Definition: Ioex_Internals.h:355
Ioex::Internals::write_meta_data
int write_meta_data(Mesh &mesh)
Definition: Ioex_Internals.C:852
Ioex::ElemBlock::operator=
ElemBlock & operator=(const ElemBlock &other)
Definition: Ioex_Internals.C:298
Ioex::NodeBlock::~NodeBlock
~NodeBlock()=default
Ioex::ElemSet::name
std::string name
Definition: Ioex_Internals.h:300
Ioex::EdgeBlock::name
std::string name
Definition: Ioex_Internals.h:156
Ioex::SideSet::operator!=
bool operator!=(const SideSet &other) const
Definition: Ioex_Internals.h:314
Ioex::ElemSet::ElemSet
ElemSet()=default
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:479
Ioex::NodeSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:253
Ioex::FaceSet::operator!=
bool operator!=(const FaceSet &other) const
Definition: Ioex_Internals.h:282
entity_id
int64_t entity_id
Definition: Ioex_Internals.h:74
Ioex::Internals
Definition: Ioex_Internals.h:408
Ioex
A namespace for the exodus database format.
Definition: Ioex_IOFactory.C:62
Ioex::Internals::exodusFilePtr
int exodusFilePtr
Definition: Ioex_Internals.h:462
Ioex::NodeBlock::operator!=
bool operator!=(const NodeBlock &other) const
Definition: Ioex_Internals.h:122
Ioex::EdgeBlock::operator!=
bool operator!=(const EdgeBlock &other) const
Definition: Ioex_Internals.h:153
Ioss::NodeBlock
A collection of all nodes in the region.
Definition: Ioss_NodeBlock.h:53
Ioex::CommunicationMap::CommunicationMap
CommunicationMap(entity_id the_id, int64_t count, char the_type)
Definition: Ioex_Internals.h:327
Ioex::ElemBlock::~ElemBlock
~ElemBlock()=default
Ioex::Internals::elementMapVarID
int elementMapVarID[2]
Definition: Ioex_Internals.h:464
Ioex::Internals::max_name_length
int max_name_length() const
Definition: Ioex_Internals.h:460
Ioex::EdgeSet::operator==
bool operator==(const EdgeSet &) const
Definition: Ioex_Internals.C:368
Ioex::ElemBlock
Definition: Ioex_Internals.h:204
Ioex::FaceSet::name
std::string name
Definition: Ioex_Internals.h:284
Ioex::FaceBlock::FaceBlock
FaceBlock()
Definition: Ioex_Internals.h:168
Ioex::Mesh::nodeblocks
std::vector< NodeBlock > nodeblocks
Definition: Ioex_Internals.h:396
Ioex::EdgeBlock
Definition: Ioex_Internals.h:134
Ioex::Mesh::file_per_processor
bool file_per_processor
Definition: Ioex_Internals.h:394
Ioex::CommunicationMap::operator==
bool operator==(const CommunicationMap &) const
Definition: Ioex_Internals.C:468
Ioex::CommunicationMetaData::nodesExternal
int64_t nodesExternal
Definition: Ioex_Internals.h:359
Ioex::EdgeBlock::operator=
EdgeBlock & operator=(const EdgeBlock &other)
Definition: Ioex_Internals.C:183
Ioex::EdgeBlock::nodesPerEntity
int64_t nodesPerEntity
Definition: Ioex_Internals.h:159
Ioex::SideSet::name
std::string name
Definition: Ioex_Internals.h:316
Ioex::Internals::put_metadata
int put_metadata(const Mesh &mesh, const CommunicationMetaData &comm)
Definition: Ioex_Internals.C:1081
Ioex::NodeSet::attributeCount
int64_t attributeCount
Definition: Ioex_Internals.h:255
Ioex::SideSet
Definition: Ioex_Internals.h:308
Ioex::Internals::elemCommIndexVar
int elemCommIndexVar
Definition: Ioex_Internals.h:466
Ioex::ElemBlock::id
entity_id id
Definition: Ioex_Internals.h:233
Ioss::Utils::copy_string
static void copy_string(char *dest, char const *source, size_t elements)
Definition: Ioss_Utils.C:1493
Ioex::CommunicationMetaData::nodesInternal
int64_t nodesInternal
Definition: Ioex_Internals.h:357
Ioex::SideSet::dfProcOffset
int64_t dfProcOffset
Definition: Ioex_Internals.h:321
Ioss_ParallelUtils.h
Ioex::ElemBlock::edgesPerEntity
int64_t edgesPerEntity
Definition: Ioex_Internals.h:236
Ioex::CommunicationMetaData::CommunicationMetaData
CommunicationMetaData()
Definition: Ioex_Internals.h:340
Ioex::Mesh::title
char title[MAX_LINE_LENGTH+1]
Definition: Ioex_Internals.h:392
Ioex::EdgeBlock::EdgeBlock
EdgeBlock()
Definition: Ioex_Internals.h:136
Ioex::CommunicationMetaData::processorCount
int processorCount
Definition: Ioex_Internals.h:351
Ioex::Mesh::faceblocks
std::vector< FaceBlock > faceblocks
Definition: Ioex_Internals.h:398
Ioex::Redefine::operator=
Redefine & operator=(const Redefine &from)=delete
Ioex::Internals::nodeMapVarID
int nodeMapVarID[3]
Definition: Ioex_Internals.h:463
Ioex::Mesh::sidesets
std::vector< SideSet > sidesets
Definition: Ioex_Internals.h:404
Ioss::Region
A grouping entity that contains other grouping entities.
Definition: Ioss_Region.h:98
Ioex::EdgeBlock::EdgeBlock
EdgeBlock(const EdgeBlock &other)
Definition: Ioex_Internals.h:138
Ioex::SideSet::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:318
Ioex::ElemBlock::operator!=
bool operator!=(const ElemBlock &other) const
Definition: Ioex_Internals.h:229
Ioex::CommunicationMetaData
Definition: Ioex_Internals.h:338
Ioex::NodeSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:256
Ioss::SideSet
A collection of element sides.
Definition: Ioss_SideSet.h:59
Ioex::EdgeSet::name
std::string name
Definition: Ioex_Internals.h:268
Ioex::Redefine::exodusFilePtr
int exodusFilePtr
Definition: Ioex_Internals.h:377
Ioex::CommunicationMetaData::globalSideSets
int64_t globalSideSets
Definition: Ioex_Internals.h:356
Ioex::FaceBlock::operator=
FaceBlock & operator=(const FaceBlock &other)
Definition: Ioex_Internals.C:231
Ioex::ElemBlock::facesPerEntity
int64_t facesPerEntity
Definition: Ioex_Internals.h:237
Ioex::CommunicationMetaData::elementMap
std::vector< CommunicationMap > elementMap
Definition: Ioex_Internals.h:349
Ioex::Internals::Internals
Internals(int exoid, int maximum_name_length, const Ioss::ParallelUtils &util)
Definition: Ioex_Internals.C:473
Ioex::Redefine::Redefine
Redefine(int exoid)
Definition: Ioex_Internals.C:94
Ioex::Mesh::nodesets
std::vector< NodeSet > nodesets
Definition: Ioex_Internals.h:400
Ioex::CommunicationMetaData::nodesBorder
int64_t nodesBorder
Definition: Ioex_Internals.h:358
Ioex::CommunicationMetaData::elementsBorder
int64_t elementsBorder
Definition: Ioex_Internals.h:361
Ioex::Mesh::elemblocks
std::vector< ElemBlock > elemblocks
Definition: Ioex_Internals.h:399
Ioex::Mesh::populate
void populate(Ioss::Region *region)
Definition: Ioex_Internals.C:770
Ioex::NodeSet
Definition: Ioex_Internals.h:243
Ioex::Internals::operator=
Internals & operator=(const Internals &from)=delete
Ioex::CommunicationMap::type
char type
Definition: Ioex_Internals.h:335
Ioex::CommunicationMetaData::globalElements
int64_t globalElements
Definition: Ioex_Internals.h:353
Ioex::EdgeSet
Definition: Ioex_Internals.h:260
Ioex::FaceSet::operator==
bool operator==(const FaceSet &) const
Definition: Ioex_Internals.C:390
Ioex::Mesh::edgeblocks
std::vector< EdgeBlock > edgeblocks
Definition: Ioex_Internals.h:397
Ioex::Mesh::Mesh
Mesh()
Definition: Ioex_Internals.h:383
Ioex::Mesh::elemsets
std::vector< ElemSet > elemsets
Definition: Ioex_Internals.h:403
Ioex::ElemSet
Definition: Ioex_Internals.h:292
Ioex::ElemBlock::elType
char elType[MAX_STR_LENGTH+1]
Definition: Ioex_Internals.h:231
Ioex::EdgeBlock::entityCount
int64_t entityCount
Definition: Ioex_Internals.h:158
Ioss::EdgeBlock
A collection of element edges with the same topology.
Definition: Ioss_EdgeBlock.h:53
Ioex::FaceBlock::~FaceBlock
~FaceBlock()=default
Ioex::ElemSet::operator==
bool operator==(const ElemSet &) const
Definition: Ioex_Internals.C:412
Ioex::SideSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:319
Ioex::NodeBlock::operator=
NodeBlock & operator=(const NodeBlock &other)
Definition: Ioex_Internals.C:150
Ioex::EdgeBlock::operator==
bool operator==(const EdgeBlock &) const
Definition: Ioex_Internals.C:195
Ioex::ElemSet::procOffset
int64_t procOffset
Definition: Ioex_Internals.h:305
Ioex::ElemSet::dfCount
int64_t dfCount
Definition: Ioex_Internals.h:304
Ioex::Internals::get_global_counts
void get_global_counts(Mesh &mesh)
Definition: Ioex_Internals.C:968
Ioex::NodeBlock::operator==
bool operator==(const NodeBlock &) const