IOSS 2.0

Ioex_DatabaseIO.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2017 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 //
12 // * Redistributions in binary form must reproduce the above
13 // copyright notice, this list of conditions and the following
14 // disclaimer in the documentation and/or other materials provided
15 // with the distribution.
16 //
17 // * Neither the name of NTESS nor the names of its
18 // contributors may be used to endorse or promote products derived
19 // from this software without specific prior written permission.
20 //
21 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33 // -*- Mode: c++ -*-
34 #ifndef IOSS_Ioex_DatabaseIO_h
35 #define IOSS_Ioex_DatabaseIO_h
36
37 #include <Ioss_DBUsage.h>
38 #include <Ioss_DatabaseIO.h>
39 #include <Ioss_Field.h>
40 #include <Ioss_Map.h>
41 #include <Ioss_Utils.h>
42
43 #include <exodusII.h>
44
45 #include <algorithm>
46 #include <cstdint>
47 #include <ctime>
48 #include <map>
49 #include <set>
50 #include <sstream>
51 #include <string>
52 #include <vector>
53
54 namespace Ioss {
55 class GroupingEntity;
56 class Region;
57 class EntityBlock;
58 class NodeBlock;
59 class EdgeBlock;
60 class FaceBlock;
61 class ElementBlock;
62 class EntitySet;
63 class NodeSet;
64 class EdgeSet;
65 class FaceSet;
66 class ElementSet;
67 class SideBlock;
68 class SideSet;
69 class StructuredBlock;
70 class CommSet;
71 class ElementTopology;
72 } // namespace Ioss
73
74 /** \brief A namespace for the exodus database format.
75 */
76 namespace Ioex {
77 struct CommunicationMetaData;
78
79 // Used for variable name index mapping
80 using VariableNameMap = std::map<std::string, int, std::less<std::string>>;
81 using VNMValuePair = VariableNameMap::value_type;
82
83 // Used to store reduction variables
84 using ValueContainer = std::vector<double>;
85
86 // Used for persistent entity IDs
87 // The set contains a pair of <ex_entity_type, int>.
88 // The ex_entity_type is the exodus entity type defined in
89 // exodus's exodusII.h. A couple examples are:
90 // EX_ELEM_BLOCK element block and EX_NODE_SET nodeset.
91 //
92 // The 'int' is the entity id. The set is used for output databases
93 // to ensure that there are no id collisions.
94 using EntityIdSet = std::set<std::pair<int64_t, int64_t>>;
95
96 class DatabaseIO : public Ioss::DatabaseIO
97 {
98 public:
99 DatabaseIO(Ioss::Region *region, const std::string &filename, Ioss::DatabaseUsage db_usage,
100 MPI_Comm communicator, const Ioss::PropertyManager &props);
101 DatabaseIO(const DatabaseIO &from) = delete;
102 DatabaseIO &operator=(const DatabaseIO &from) = delete;
103
104 ~DatabaseIO() override;
105
106 // Check capabilities of input/output database... Returns an
107 // unsigned int with the supported Ioss::EntityTypes or'ed
108 // together. If "return_value & Ioss::EntityType" is set, then the
109 // database supports that type (e.g. return_value & Ioss::FACESET)
110 unsigned entity_field_support() const override;
111
112 protected:
113 // Check to see if database state is ok...
114 // If 'write_message' true, then output a warning message indicating the problem.
115 // If 'error_message' non-null, then put the warning message into the string and return it.
116 // If 'bad_count' non-null, it counts the number of processors where the file does not exist.
117 // if ok returns false, but *bad_count==0, then the routine does not support this argument.
118 bool ok__(bool write_message = false, std::string *error_message = nullptr,
119 int *bad_count = nullptr) const override;
120
121 bool open_group__(const std::string &group_name) override;
122 bool create_subgroup__(const std::string &group_name) override;
123
124 bool begin__(Ioss::State state) override;
125 bool end__(Ioss::State state) override;
126
127 void open_state_file(int state);
128
129 bool begin_state__(int state, double time) override;
130 bool end_state__(int state, double time) override;
131 void get_step_times__() override = 0;
132
133 int maximum_symbol_length() const override { return maximumNameLength; }
134
135 // NOTE: If this is called after write_meta_data, it will have no affect.
136 // Also, it only affects output databases, not input.
137 void set_maximum_symbol_length(int requested_symbol_size) override
138 {
139 if (!is_input()) {
140 maximumNameLength = requested_symbol_size;
141 }
142 }
143
144 size_t handle_block_ids(const Ioss::EntityBlock *eb, ex_entity_type map_type,
145 Ioss::Map &entity_map, void *ids, size_t num_to_get,
146 size_t offset) const;
147
148 void compute_block_membership__(Ioss::SideBlock * efblock,
149 std::vector<std::string> &block_membership) const override;
150
151 int int_byte_size_db() const override;
152 void set_int_byte_size_api(Ioss::DataSize size) const override;
153
154 protected:
155 int64_t get_field_internal(const Ioss::Region *reg, const Ioss::Field &field, void *data,
156 size_t data_size) const override = 0;
157 int64_t get_field_internal(const Ioss::NodeBlock *nb, const Ioss::Field &field, void *data,
158 size_t data_size) const override = 0;
159 int64_t get_field_internal(const Ioss::EdgeBlock *nb, const Ioss::Field &field, void *data,
160 size_t data_size) const override = 0;
161 int64_t get_field_internal(const Ioss::FaceBlock *nb, const Ioss::Field &field, void *data,
162 size_t data_size) const override = 0;
163 int64_t get_field_internal(const Ioss::ElementBlock *eb, const Ioss::Field &field, void *data,
164 size_t data_size) const override = 0;
165 int64_t get_field_internal(const Ioss::StructuredBlock *sb, const Ioss::Field &field,
166 void *data, size_t data_size) const override = 0;
167 int64_t get_field_internal(const Ioss::SideBlock *fb, const Ioss::Field &field, void *data,
168 size_t data_size) const override = 0;
169 int64_t get_field_internal(const Ioss::NodeSet *ns, const Ioss::Field &field, void *data,
170 size_t data_size) const override = 0;
171 int64_t get_field_internal(const Ioss::EdgeSet *ns, const Ioss::Field &field, void *data,
172 size_t data_size) const override = 0;
173 int64_t get_field_internal(const Ioss::FaceSet *ns, const Ioss::Field &field, void *data,
174 size_t data_size) const override = 0;
175 int64_t get_field_internal(const Ioss::ElementSet *ns, const Ioss::Field &field, void *data,
176 size_t data_size) const override = 0;
177 int64_t get_field_internal(const Ioss::SideSet *fs, const Ioss::Field &field, void *data,
178 size_t data_size) const override = 0;
179 int64_t get_field_internal(const Ioss::CommSet *cs, const Ioss::Field &field, void *data,
180 size_t data_size) const override = 0;
181
182 int64_t put_field_internal(const Ioss::Region *reg, const Ioss::Field &field, void *data,
183 size_t data_size) const override = 0;
184 int64_t put_field_internal(const Ioss::NodeBlock *nb, const Ioss::Field &field, void *data,
185 size_t data_size) const override = 0;
186 int64_t put_field_internal(const Ioss::EdgeBlock *nb, const Ioss::Field &field, void *data,
187 size_t data_size) const override = 0;
188 int64_t put_field_internal(const Ioss::FaceBlock *nb, const Ioss::Field &field, void *data,
189 size_t data_size) const override = 0;
190 int64_t put_field_internal(const Ioss::ElementBlock *eb, const Ioss::Field &field, void *data,
191 size_t data_size) const override = 0;
192 int64_t put_field_internal(const Ioss::StructuredBlock *sb, const Ioss::Field &field,
193 void *data, size_t data_size) const override = 0;
194 int64_t put_field_internal(const Ioss::SideBlock *fb, const Ioss::Field &field, void *data,
195 size_t data_size) const override = 0;
196 int64_t put_field_internal(const Ioss::NodeSet *ns, const Ioss::Field &field, void *data,
197 size_t data_size) const override = 0;
198 int64_t put_field_internal(const Ioss::EdgeSet *ns, const Ioss::Field &field, void *data,
199 size_t data_size) const override = 0;
200 int64_t put_field_internal(const Ioss::FaceSet *ns, const Ioss::Field &field, void *data,
201 size_t data_size) const override = 0;
202 int64_t put_field_internal(const Ioss::ElementSet *ns, const Ioss::Field &field, void *data,
203 size_t data_size) const override = 0;
204 int64_t put_field_internal(const Ioss::SideSet *fs, const Ioss::Field &field, void *data,
205 size_t data_size) const override = 0;
206 int64_t put_field_internal(const Ioss::CommSet *cs, const Ioss::Field &field, void *data,
207 size_t data_size) const override = 0;
208
209 virtual void write_meta_data() = 0;
210 void write_results_metadata(bool gather_data = true);
211
212 void openDatabase__() const override { get_file_pointer(); }
213
214 void closeDatabase__() const override
215 {
216 free_file_pointer();
217 closeDW();
218 }
219
220 virtual int get_file_pointer() const = 0; // Open file and set exodusFilePtr.
221
222 virtual int free_file_pointer() const; // Close file and set exodusFilePtr.
223
224 virtual bool open_input_file(bool write_message, std::string *error_msg, int *bad_count,
225 bool abort_if_error) const = 0;
226 virtual bool handle_output_file(bool write_message, std::string *error_msg, int *bad_count,
227 bool overwrite, bool abort_if_error) const = 0;
228 void finalize_file_open() const;
229
230 int get_current_state() const; // Get current state with error checks and usage message.
231 void put_qa();
232 void put_info();
233
234 template <typename T>
235 void internal_write_results_metadata(ex_entity_type type, std::vector<T *> entities,
236 int &glob_index);
237
238 void generate_sideset_truth_table();
239
240 void output_results_names(ex_entity_type type, VariableNameMap &variables) const;
241 int gather_names(ex_entity_type type, VariableNameMap &variables,
242 const Ioss::GroupingEntity *ge, int index, bool reduction);
243
244 void get_nodeblocks();
245
246 void add_attribute_fields(ex_entity_type entity_type, Ioss::GroupingEntity *block,
247 int attribute_count, const std::string &type);
248
249 void output_other_meta_data();
250
251 int64_t internal_add_results_fields(ex_entity_type type, Ioss::GroupingEntity *entity,
252 int64_t position, int64_t block_count,
253 Ioss::IntVector & truth_table,
254 Ioex::VariableNameMap &variables);
255 int64_t add_results_fields(ex_entity_type type, Ioss::GroupingEntity *entity,
256 int64_t position = 0);
257
258 void add_region_fields();
259 void store_reduction_field(ex_entity_type type, const Ioss::Field &field,
260 const Ioss::GroupingEntity *ge, void *variables) const;
261
262 void get_reduction_field(ex_entity_type type, const Ioss::Field &field,
263 const Ioss::GroupingEntity *ge, void *variables) const;
264 void write_reduction_fields() const;
265 void read_reduction_fields() const;
266
267 // Handle special output time requests -- primarily restart (cycle, keep, overwrite)
268 // Given the global region step, return the step on the database...
269 int get_database_step(int global_step) const;
270
271 void flush_database__() const override;
272 void finalize_write(int state, double sim_time);
273
274 // Private member data...
275 protected:
276 mutable int exodusFilePtr{-1};
277 mutable std::string m_groupName;
278
279 mutable EntityIdSet ids_;
280
281 mutable int exodusMode{EX_CLOBBER};
282 mutable int dbRealWordSize{8};
283
284 mutable int maximumNameLength{32};
285 int spatialDimension{0};
286
287 int64_t edgeCount{0};
288 int64_t faceCount{0};
289
290 mutable std::map<ex_entity_type, int> m_groupCount;
291
292 // Communication Set Data
293 Ioss::Int64Vector nodeCmapIds;
294 Ioss::Int64Vector nodeCmapNodeCnts;
295 Ioss::Int64Vector elemCmapIds;
296 Ioss::Int64Vector elemCmapElemCnts;
297 int64_t commsetNodeCount{0};
298 int64_t commsetElemCount{0};
299
300 // --- Nodal/Element/Attribute Variable Names -- Maps from sierra
301 // field names to index of nodal/element/attribute variable in
302 // exodusII. Note that the component suffix of the field is added on
303 // prior to searching the map for the index. For example, given the
304 // Sierra field 'displ' which is a VECTOR_3D, the names stored in
305 // 'elementMap' would be 'displ_x', 'displ_y' and 'displ_z'. All
306 // names are converted to lowercase.
307
308 mutable std::map<ex_entity_type, Ioss::IntVector> m_truthTable;
309 mutable std::map<ex_entity_type, VariableNameMap> m_variables;
310
311 mutable ValueContainer globalValues;
312
313 mutable std::vector<unsigned char> nodeConnectivityStatus;
314
315 // For a database with omitted blocks, this map contains the indices of the
316 // active nodes for each nodeset. If the nodeset is not reduced in size,
317 // the map's vector will be empty for that nodeset. If the vector is not
318 // empty, then some nodes on that nodeset are only connected to omitted elements.
319 mutable std::map<std::string, Ioss::Int64Vector> activeNodeSetNodesIndex;
320
321 time_t timeLastFlush{0};
322 int flushInterval{1};
323
324 mutable bool fileExists{false}; // False if file has never been opened/created
325 mutable bool minimizeOpenFiles{false};
326
327 mutable bool blockAdjacenciesCalculated{false}; // True if the lazy creation of
328 // block adjacencies has been calculated.
329 mutable bool nodeConnectivityStatusCalculated{
330 false}; // True if the lazy creation of
331 // nodeConnectivityStatus has been calculated.
332 };
333 } // namespace Ioex
334 #endif
Ioex::DatabaseIO::handle_output_file
virtual bool handle_output_file(bool write_message, std::string *error_msg, int *bad_count, bool overwrite, bool abort_if_error) const =0
Ioex::DatabaseIO::output_results_names
void output_results_names(ex_entity_type type, VariableNameMap &variables) const
Definition: Ioex_DatabaseIO.C:1526
Ioex::ValueContainer
std::vector< double > ValueContainer
Definition: Ioex_DatabaseIO.h:84
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:66
Ioss::DatabaseIO
An input or output Database.
Definition: Ioss_DatabaseIO.h:82
Ioss_DBUsage.h
Ioex::DatabaseIO::output_other_meta_data
void output_other_meta_data()
Definition: Ioex_DatabaseIO.C:1916
Ioss::DataSize
DataSize
The number of bytes used to store an integer type.
Definition: Ioss_DataSize.h:40
Ioex::DatabaseIO::fileExists
bool fileExists
Definition: Ioex_DatabaseIO.h:324
Ioss::NodeSet
A collection of nodes.
Definition: Ioss_NodeSet.h:53
Ioss::FaceBlock
A collection of element faces with the same topology.
Definition: Ioss_FaceBlock.h:53
Ioex::DatabaseIO::end_state__
bool end_state__(int state, double time) override
Definition: Ioex_DatabaseIO.C:1141
Ioss::FaceSet
A collection of element faces.
Definition: Ioss_FaceSet.h:54
Ioss::GroupingEntity
Base class for all 'grouping' entities. The following derived classes are typical:
Definition: Ioss_GroupingEntity.h:93
Ioex::DatabaseIO::begin_state__
bool begin_state__(int state, double time) override
Definition: Ioex_DatabaseIO.C:1113
Ioex::DatabaseIO::read_reduction_fields
void read_reduction_fields() const
Definition: Ioex_DatabaseIO.C:998
Ioex::DatabaseIO::end__
bool end__(Ioss::State state) override
Definition: Ioex_DatabaseIO.C:1018
Ioex::DatabaseIO::flushInterval
int flushInterval
Definition: Ioex_DatabaseIO.h:322
Ioss::DatabaseIO::is_input
bool is_input() const
Determine whether the database is an input database.
Definition: Ioss_DatabaseIO.h:207
Ioex::DatabaseIO::commsetNodeCount
int64_t commsetNodeCount
Definition: Ioex_DatabaseIO.h:297
Ioex::DatabaseIO::get_file_pointer
virtual int get_file_pointer() const =0
Definition: Ioex_DatabaseIO.C:284
Ioex::DatabaseIO::activeNodeSetNodesIndex
std::map< std::string, Ioss::Int64Vector > activeNodeSetNodesIndex
Definition: Ioex_DatabaseIO.h:319
Ioss::EdgeSet
A collection of element edges.
Definition: Ioss_EdgeSet.h:54
Ioex::DatabaseIO::dbRealWordSize
int dbRealWordSize
Definition: Ioex_DatabaseIO.h:282
Ioex::DatabaseIO::maximumNameLength
int maximumNameLength
Definition: Ioex_DatabaseIO.h:284
Ioss_Map.h
Ioex::DatabaseIO::blockAdjacenciesCalculated
bool blockAdjacenciesCalculated
Definition: Ioex_DatabaseIO.h:327
Ioss::SideBlock
A collection of element sides having the same topology.
Definition: Ioss_SideBlock.h:61
Ioex::DatabaseIO::flush_database__
void flush_database__() const override
Definition: Ioex_DatabaseIO.C:1604
Ioss::IntVector
std::vector< int > IntVector
Definition: Ioss_CodeTypes.h:43
Ioex::EntityIdSet
std::set< std::pair< int64_t, int64_t > > EntityIdSet
Definition: Ioex_DatabaseIO.h:94
Ioex::DatabaseIO::exodusFilePtr
int exodusFilePtr
Definition: Ioex_DatabaseIO.h:276
Ioex::DatabaseIO::elemCmapIds
Ioss::Int64Vector elemCmapIds
Definition: Ioex_DatabaseIO.h:295
Ioex::DatabaseIO::store_reduction_field
void store_reduction_field(ex_entity_type type, const Ioss::Field &field, const Ioss::GroupingEntity *ge, void *variables) const
Definition: Ioex_DatabaseIO.C:876
Ioss_DatabaseIO.h
Ioex::DatabaseIO::elemCmapElemCnts
Ioss::Int64Vector elemCmapElemCnts
Definition: Ioex_DatabaseIO.h:296
Ioex::DatabaseIO::int_byte_size_db
int int_byte_size_db() const override
Definition: Ioex_DatabaseIO.C:254
Ioss::DatabaseIO::closeDW
void closeDW() const
Function which invokes stageout from BB to Disk, prior to completion of final close.
Definition: Ioss_DatabaseIO.C:356
Ioss::State
State
Access states for a database.
Definition: Ioss_State.h:42
Ioex::DatabaseIO::get_field_internal
int64_t get_field_internal(const Ioss::Region *reg, const Ioss::Field &field, void *data, size_t data_size) const override=0
Definition: Ioex_DatabaseIO.C:753
Ioex::DatabaseIO::spatialDimension
int spatialDimension
Definition: Ioex_DatabaseIO.h:285
Ioss::DatabaseIO::DatabaseIO
DatabaseIO()=delete
Ioex::DatabaseIO::finalize_write
void finalize_write(int state, double sim_time)
Definition: Ioex_DatabaseIO.C:1613
Ioss::ElementBlock
A collection of elements having the same topology.
Definition: Ioss_ElementBlock.h:48
Ioex::DatabaseIO::begin__
bool begin__(Ioss::State state) override
Definition: Ioex_DatabaseIO.C:1011
Ioex::VariableNameMap
std::map< std::string, int, std::less< std::string > > VariableNameMap
Definition: Ioex_DatabaseIO.h:80
Ioex::DatabaseIO::get_nodeblocks
void get_nodeblocks()
Definition: Ioex_DatabaseIO.C:585
Ioex::DatabaseIO::put_qa
void put_qa()
Definition: Ioex_DatabaseIO.C:446
Ioss::StructuredBlock
A structured zone – i,j,k.
Definition: Ioss_StructuredBlock.h:103
Ioss::ElementSet
A collection of elements.
Definition: Ioss_ElementSet.h:54
Ioex::DatabaseIO::closeDatabase__
void closeDatabase__() const override
Definition: Ioex_DatabaseIO.h:214
Ioss::EntityBlock
Base class for all 'block'-type grouping entities, which means all members of the block are similar o...
Definition: Ioss_EntityBlock.h:61
Ioex::DatabaseIO::commsetElemCount
int64_t commsetElemCount
Definition: Ioex_DatabaseIO.h:298
Ioss::DatabaseUsage
DatabaseUsage
Specifies how an Ioss::DatabaseIO object will be used.
Definition: Ioss_DBUsage.h:40
Ioex::DatabaseIO::openDatabase__
void openDatabase__() const override
Definition: Ioex_DatabaseIO.h:212
Ioex::DatabaseIO::compute_block_membership__
void compute_block_membership__(Ioss::SideBlock *efblock, std::vector< std::string > &block_membership) const override
Definition: Ioex_DatabaseIO.C:699
Ioex::DatabaseIO::put_field_internal
int64_t put_field_internal(const Ioss::Region *reg, const Ioss::Field &field, void *data, size_t data_size) const override=0
Definition: Ioex_DatabaseIO.C:781
Ioss_Utils.h
Ioex::DatabaseIO::get_reduction_field
void get_reduction_field(ex_entity_type type, const Ioss::Field &field, const Ioss::GroupingEntity *ge, void *variables) const
Definition: Ioex_DatabaseIO.C:943
Ioex::DatabaseIO::faceCount
int64_t faceCount
Definition: Ioex_DatabaseIO.h:288
Ioex::DatabaseIO::get_step_times__
void get_step_times__() override=0
Ioex::DatabaseIO::ok__
bool ok__(bool write_message=false, std::string *error_message=nullptr, int *bad_count=nullptr) const override
Definition: Ioex_DatabaseIO.C:332
Ioex::DatabaseIO::operator=
DatabaseIO & operator=(const DatabaseIO &from)=delete
Ioex::DatabaseIO::set_maximum_symbol_length
void set_maximum_symbol_length(int requested_symbol_size) override
Definition: Ioex_DatabaseIO.h:137
Ioex
A namespace for the exodus database format.
Definition: Ioex_IOFactory.C:62
Ioex::DatabaseIO::handle_block_ids
size_t handle_block_ids(const Ioss::EntityBlock *eb, ex_entity_type map_type, Ioss::Map &entity_map, void *ids, size_t num_to_get, size_t offset) const
Definition: Ioex_DatabaseIO.C:617
Ioex::DatabaseIO::entity_field_support
unsigned entity_field_support() const override
Definition: Ioex_DatabaseIO.C:276
Ioex::DatabaseIO::ids_
EntityIdSet ids_
Definition: Ioex_DatabaseIO.h:279
Ioex::DatabaseIO::put_info
void put_info()
Definition: Ioex_DatabaseIO.C:511
Ioss::NodeBlock
A collection of all nodes in the region.
Definition: Ioss_NodeBlock.h:53
Ioex::DatabaseIO::~DatabaseIO
~DatabaseIO() override
Definition: Ioex_DatabaseIO.C:266
Ioex::DatabaseIO::m_variables
std::map< ex_entity_type, VariableNameMap > m_variables
Definition: Ioex_DatabaseIO.h:309
Ioex::DatabaseIO::add_region_fields
void add_region_fields()
Definition: Ioex_DatabaseIO.C:1157
Ioss::Int64Vector
std::vector< int64_t > Int64Vector
Definition: Ioss_CodeTypes.h:44
Ioex::DatabaseIO::internal_write_results_metadata
void internal_write_results_metadata(ex_entity_type type, std::vector< T * > entities, int &glob_index)
Definition: Ioex_DatabaseIO.C:1368
Ioex::DatabaseIO::get_database_step
int get_database_step(int global_step) const
Definition: Ioex_DatabaseIO.C:1584
Ioex::DatabaseIO::finalize_file_open
void finalize_file_open() const
Definition: Ioex_DatabaseIO.C:369
Ioex::DatabaseIO::add_results_fields
int64_t add_results_fields(ex_entity_type type, Ioss::GroupingEntity *entity, int64_t position=0)
Definition: Ioex_DatabaseIO.C:1164
Ioex::DatabaseIO::globalValues
ValueContainer globalValues
Definition: Ioex_DatabaseIO.h:311
Ioss::Map
Definition: Ioss_Map.h:52
Ioss::CommSet
Definition: Ioss_CommSet.h:51
Ioss_Field.h
Ioex::DatabaseIO::open_group__
bool open_group__(const std::string &group_name) override
Definition: Ioex_DatabaseIO.C:391
Ioex::DatabaseIO::free_file_pointer
virtual int free_file_pointer() const
Definition: Ioex_DatabaseIO.C:308
anonymous_namespace{cth_pressure_map.C}::data
std::vector< char > data
Definition: cth_pressure_map.C:73
Ioex::VNMValuePair
VariableNameMap::value_type VNMValuePair
Definition: Ioex_DatabaseIO.h:81
Ioss::Region
A grouping entity that contains other grouping entities.
Definition: Ioss_Region.h:98
Ioex::DatabaseIO::minimizeOpenFiles
bool minimizeOpenFiles
Definition: Ioex_DatabaseIO.h:325
Ioex::DatabaseIO::get_current_state
int get_current_state() const
Definition: Ioex_DatabaseIO.C:567
Ioex::DatabaseIO::nodeCmapIds
Ioss::Int64Vector nodeCmapIds
Definition: Ioex_DatabaseIO.h:293
Ioss::SideSet
A collection of element sides.
Definition: Ioss_SideSet.h:59
Ioex::DatabaseIO::nodeConnectivityStatusCalculated
bool nodeConnectivityStatusCalculated
Definition: Ioex_DatabaseIO.h:329
Ioex::DatabaseIO::generate_sideset_truth_table
void generate_sideset_truth_table()
Definition: Ioex_DatabaseIO.C:1459
Ioss::Field
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:47
Ioex::DatabaseIO::add_attribute_fields
void add_attribute_fields(ex_entity_type entity_type, Ioss::GroupingEntity *block, int attribute_count, const std::string &type)
Definition: Ioex_DatabaseIO.C:1668
Ioex::DatabaseIO::open_input_file
virtual bool open_input_file(bool write_message, std::string *error_msg, int *bad_count, bool abort_if_error) const =0
Ioex::DatabaseIO::write_meta_data
virtual void write_meta_data()=0
Ioex::DatabaseIO::m_truthTable
std::map< ex_entity_type, Ioss::IntVector > m_truthTable
Definition: Ioex_DatabaseIO.h:308
MPI_Comm
int MPI_Comm
Definition: Ioss_CodeTypes.h:88
Ioex::DatabaseIO::gather_names
int gather_names(ex_entity_type type, VariableNameMap &variables, const Ioss::GroupingEntity *ge, int index, bool reduction)
Definition: Ioex_DatabaseIO.C:1381
Ioex::DatabaseIO::nodeCmapNodeCnts
Ioss::Int64Vector nodeCmapNodeCnts
Definition: Ioex_DatabaseIO.h:294
Ioex::DatabaseIO::internal_add_results_fields
int64_t internal_add_results_fields(ex_entity_type type, Ioss::GroupingEntity *entity, int64_t position, int64_t block_count, Ioss::IntVector &truth_table, Ioex::VariableNameMap &variables)
Definition: Ioex_DatabaseIO.C:1172
Ioex::DatabaseIO::edgeCount
int64_t edgeCount
Definition: Ioex_DatabaseIO.h:287
Ioex::DatabaseIO::set_int_byte_size_api
void set_int_byte_size_api(Ioss::DataSize size) const override
Returns 4 or 8.
Definition: Ioex_DatabaseIO.C:226
Ioex::DatabaseIO::m_groupName
std::string m_groupName
Definition: Ioex_DatabaseIO.h:277
Ioex::DatabaseIO
Definition: Ioex_DatabaseIO.h:96
Ioex::DatabaseIO::maximum_symbol_length
int maximum_symbol_length() const override
Get the length of the longest name in the database file.
Definition: Ioex_DatabaseIO.h:133
Ioex::DatabaseIO::nodeConnectivityStatus
std::vector< unsigned char > nodeConnectivityStatus
Definition: Ioex_DatabaseIO.h:313
Ioex::DatabaseIO::exodusMode
int exodusMode
Definition: Ioex_DatabaseIO.h:281
Ioss::PropertyManager
A collection of Ioss::Property objects.
Definition: Ioss_PropertyManager.h:49
Ioex::DatabaseIO::write_results_metadata
void write_results_metadata(bool gather_data=true)
Definition: Ioex_DatabaseIO.C:1270
Ioex::DatabaseIO::create_subgroup__
bool create_subgroup__(const std::string &group_name) override
Definition: Ioex_DatabaseIO.C:413
anonymous_namespace{Iovs_DatabaseIO.C}::entity_type
entity_type
Definition: Iovs_DatabaseIO.C:81
Ioss::EdgeBlock
A collection of element edges with the same topology.
Definition: Ioss_EdgeBlock.h:53
Ioex::DatabaseIO::m_groupCount
std::map< ex_entity_type, int > m_groupCount
Definition: Ioex_DatabaseIO.h:290
anonymous_namespace{Ioss_Field.C}::error_message
void error_message(const Ioss::Field &field, Ioss::Field::BasicType requested_type)
Definition: Ioss_Field.C:64
Ioex::DatabaseIO::write_reduction_fields
void write_reduction_fields() const
Definition: Ioex_DatabaseIO.C:984
Ioex::DatabaseIO::timeLastFlush
time_t timeLastFlush
Definition: Ioex_DatabaseIO.h:321
Ioex::DatabaseIO::open_state_file
void open_state_file(int state)
Definition: Ioex_DatabaseIO.C:1052