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
107 const std::string get_format() const override {return "Exodus";}
108
109 // Check capabilities of input/output database... Returns an
110 // unsigned int with the supported Ioss::EntityTypes or'ed
111 // together. If "return_value & Ioss::EntityType" is set, then the
112 // database supports that type (e.g. return_value & Ioss::FACESET)
113 unsigned entity_field_support() const override;
114
115 protected:
116 // Check to see if database state is ok...
117 // If 'write_message' true, then output a warning message indicating the problem.
118 // If 'error_message' non-null, then put the warning message into the string and return it.
119 // If 'bad_count' non-null, it counts the number of processors where the file does not exist.
120 // if ok returns false, but *bad_count==0, then the routine does not support this argument.
121 bool ok__(bool write_message = false, std::string *error_message = nullptr,
122 int *bad_count = nullptr) const override;
123
124 bool open_group__(const std::string &group_name) override;
125 bool create_subgroup__(const std::string &group_name) override;
126
127 bool begin__(Ioss::State state) override;
128 bool end__(Ioss::State state) override;
129
130 void open_state_file(int state);
131
132 bool begin_state__(int state, double time) override;
133 bool end_state__(int state, double time) override;
134 void get_step_times__() override = 0;
135
136 int maximum_symbol_length() const override { return maximumNameLength; }
137
138 // NOTE: If this is called after write_meta_data, it will have no affect.
139 // Also, it only affects output databases, not input.
140 void set_maximum_symbol_length(int requested_symbol_size) override
141 {
142 if (!is_input()) {
143 maximumNameLength = requested_symbol_size;
144 }
145 }
146
147 size_t handle_block_ids(const Ioss::EntityBlock *eb, ex_entity_type map_type,
148 Ioss::Map &entity_map, void *ids, size_t num_to_get,
149 size_t offset) const;
150
151 void compute_block_membership__(Ioss::SideBlock * efblock,
152 std::vector<std::string> &block_membership) const override;
153
154 int int_byte_size_db() const override;
155 void set_int_byte_size_api(Ioss::DataSize size) const override;
156
157 protected:
158 int64_t get_field_internal(const Ioss::Region *reg, const Ioss::Field &field, void *data,
159 size_t data_size) const override = 0;
160 int64_t get_field_internal(const Ioss::NodeBlock *nb, const Ioss::Field &field, void *data,
161 size_t data_size) const override = 0;
162 int64_t get_field_internal(const Ioss::EdgeBlock *nb, const Ioss::Field &field, void *data,
163 size_t data_size) const override = 0;
164 int64_t get_field_internal(const Ioss::FaceBlock *nb, const Ioss::Field &field, void *data,
165 size_t data_size) const override = 0;
166 int64_t get_field_internal(const Ioss::ElementBlock *eb, const Ioss::Field &field, void *data,
167 size_t data_size) const override = 0;
168 int64_t get_field_internal(const Ioss::StructuredBlock *sb, const Ioss::Field &field,
169 void *data, size_t data_size) const override = 0;
170 int64_t get_field_internal(const Ioss::SideBlock *fb, const Ioss::Field &field, void *data,
171 size_t data_size) const override = 0;
172 int64_t get_field_internal(const Ioss::NodeSet *ns, const Ioss::Field &field, void *data,
173 size_t data_size) const override = 0;
174 int64_t get_field_internal(const Ioss::EdgeSet *ns, const Ioss::Field &field, void *data,
175 size_t data_size) const override = 0;
176 int64_t get_field_internal(const Ioss::FaceSet *ns, const Ioss::Field &field, void *data,
177 size_t data_size) const override = 0;
178 int64_t get_field_internal(const Ioss::ElementSet *ns, const Ioss::Field &field, void *data,
179 size_t data_size) const override = 0;
180 int64_t get_field_internal(const Ioss::SideSet *fs, const Ioss::Field &field, void *data,
181 size_t data_size) const override = 0;
182 int64_t get_field_internal(const Ioss::CommSet *cs, const Ioss::Field &field, void *data,
183 size_t data_size) const override = 0;
184
185 int64_t put_field_internal(const Ioss::Region *reg, const Ioss::Field &field, void *data,
186 size_t data_size) const override = 0;
187 int64_t put_field_internal(const Ioss::NodeBlock *nb, const Ioss::Field &field, void *data,
188 size_t data_size) const override = 0;
189 int64_t put_field_internal(const Ioss::EdgeBlock *nb, const Ioss::Field &field, void *data,
190 size_t data_size) const override = 0;
191 int64_t put_field_internal(const Ioss::FaceBlock *nb, const Ioss::Field &field, void *data,
192 size_t data_size) const override = 0;
193 int64_t put_field_internal(const Ioss::ElementBlock *eb, const Ioss::Field &field, void *data,
194 size_t data_size) const override = 0;
195 int64_t put_field_internal(const Ioss::StructuredBlock *sb, const Ioss::Field &field,
196 void *data, size_t data_size) const override = 0;
197 int64_t put_field_internal(const Ioss::SideBlock *fb, const Ioss::Field &field, void *data,
198 size_t data_size) const override = 0;
199 int64_t put_field_internal(const Ioss::NodeSet *ns, const Ioss::Field &field, void *data,
200 size_t data_size) const override = 0;
201 int64_t put_field_internal(const Ioss::EdgeSet *ns, const Ioss::Field &field, void *data,
202 size_t data_size) const override = 0;
203 int64_t put_field_internal(const Ioss::FaceSet *ns, const Ioss::Field &field, void *data,
204 size_t data_size) const override = 0;
205 int64_t put_field_internal(const Ioss::ElementSet *ns, const Ioss::Field &field, void *data,
206 size_t data_size) const override = 0;
207 int64_t put_field_internal(const Ioss::SideSet *fs, const Ioss::Field &field, void *data,
208 size_t data_size) const override = 0;
209 int64_t put_field_internal(const Ioss::CommSet *cs, const Ioss::Field &field, void *data,
210 size_t data_size) const override = 0;
211
212 virtual void write_meta_data() = 0;
213 void write_results_metadata(bool gather_data = true);
214
215 void openDatabase__() const override { get_file_pointer(); }
216
217 void closeDatabase__() const override
218 {
219 free_file_pointer();
220 closeDW();
221 }
222
223 virtual int get_file_pointer() const override = 0; // Open file and set exodusFilePtr.
224
225 virtual int free_file_pointer() const; // Close file and set exodusFilePtr.
226
227 virtual bool open_input_file(bool write_message, std::string *error_msg, int *bad_count,
228 bool abort_if_error) const = 0;
229 virtual bool handle_output_file(bool write_message, std::string *error_msg, int *bad_count,
230 bool overwrite, bool abort_if_error) const = 0;
231 void finalize_file_open() const;
232
233 int get_current_state() const; // Get current state with error checks and usage message.
234 void put_qa();
235 void put_info();
236
237 template <typename T>
238 void internal_write_results_metadata(ex_entity_type type, std::vector<T *> entities,
239 int &glob_index);
240
241 void generate_sideset_truth_table();
242
243 void output_results_names(ex_entity_type type, VariableNameMap &variables) const;
244 int gather_names(ex_entity_type type, VariableNameMap &variables,
245 const Ioss::GroupingEntity *ge, int index, bool reduction);
246
247 void get_nodeblocks();
248
249 void add_attribute_fields(ex_entity_type entity_type, Ioss::GroupingEntity *block,
250 int attribute_count, const std::string &type);
251
252 void output_other_meta_data();
253
254 int64_t internal_add_results_fields(ex_entity_type type, Ioss::GroupingEntity *entity,
255 int64_t position, int64_t block_count,
256 Ioss::IntVector & truth_table,
257 Ioex::VariableNameMap &variables);
258 int64_t add_results_fields(ex_entity_type type, Ioss::GroupingEntity *entity,
259 int64_t position = 0);
260
261 void add_region_fields();
262 void store_reduction_field(ex_entity_type type, const Ioss::Field &field,
263 const Ioss::GroupingEntity *ge, void *variables) const;
264
265 void get_reduction_field(ex_entity_type type, const Ioss::Field &field,
266 const Ioss::GroupingEntity *ge, void *variables) const;
267 void write_reduction_fields() const;
268 void read_reduction_fields() const;
269
270 // Handle special output time requests -- primarily restart (cycle, keep, overwrite)
271 // Given the global region step, return the step on the database...
272 int get_database_step(int global_step) const;
273
274 void flush_database__() const override;
275 void finalize_write(int state, double sim_time);
276
277 // Private member data...
278 protected:
279 mutable int exodusFilePtr{-1};
280 mutable std::string m_groupName;
281
282 mutable EntityIdSet ids_;
283
284 mutable int exodusMode{EX_CLOBBER};
285 mutable int dbRealWordSize{8};
286
287 mutable int maximumNameLength{32};
288 int spatialDimension{0};
289
290 int64_t edgeCount{0};
291 int64_t faceCount{0};
292
293 mutable std::map<ex_entity_type, int> m_groupCount;
294
295 // Communication Set Data
296 Ioss::Int64Vector nodeCmapIds;
297 Ioss::Int64Vector nodeCmapNodeCnts;
298 Ioss::Int64Vector elemCmapIds;
299 Ioss::Int64Vector elemCmapElemCnts;
300 int64_t commsetNodeCount{0};
301 int64_t commsetElemCount{0};
302
303 // --- Nodal/Element/Attribute Variable Names -- Maps from sierra
304 // field names to index of nodal/element/attribute variable in
305 // exodusII. Note that the component suffix of the field is added on
306 // prior to searching the map for the index. For example, given the
307 // Sierra field 'displ' which is a VECTOR_3D, the names stored in
308 // 'elementMap' would be 'displ_x', 'displ_y' and 'displ_z'. All
309 // names are converted to lowercase.
310
311 mutable std::map<ex_entity_type, Ioss::IntVector> m_truthTable;
312 mutable std::map<ex_entity_type, VariableNameMap> m_variables;
313
314 mutable ValueContainer globalValues;
315
316 mutable std::vector<unsigned char> nodeConnectivityStatus;
317
318 // For a database with omitted blocks, this map contains the indices of the
319 // active nodes for each nodeset. If the nodeset is not reduced in size,
320 // the map's vector will be empty for that nodeset. If the vector is not
321 // empty, then some nodes on that nodeset are only connected to omitted elements.
322 mutable std::map<std::string, Ioss::Int64Vector> activeNodeSetNodesIndex;
323
324 time_t timeLastFlush{0};
325 int flushInterval{-1};
326
327 mutable bool fileExists{false}; // False if file has never been opened/created
328 mutable bool minimizeOpenFiles{false};
329
330 mutable bool blockAdjacenciesCalculated{false}; // True if the lazy creation of
331 // block adjacencies has been calculated.
332 mutable bool nodeConnectivityStatusCalculated{
333 false}; // True if the lazy creation of
334 // nodeConnectivityStatus has been calculated.
335 };
336 } // namespace Ioex
337 #endif
Ioex::DatabaseIO::generate_sideset_truth_table
void generate_sideset_truth_table()
Definition: Ioex_DatabaseIO.C:1458
Ioex::DatabaseIO::add_region_fields
void add_region_fields()
Definition: Ioex_DatabaseIO.C:1156
Ioex::DatabaseIO::fileExists
bool fileExists
Definition: Ioex_DatabaseIO.h:327
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:942
Ioss_DBUsage.h
Ioex::DatabaseIO::m_variables
std::map< ex_entity_type, VariableNameMap > m_variables
Definition: Ioex_DatabaseIO.h:312
Ioss::DatabaseIO::is_input
bool is_input() const
Determine whether the database is an input database.
Definition: Ioss_DatabaseIO.h:212
Ioex::DatabaseIO::ok__
bool ok__(bool write_message=false, std::string *error_message=nullptr, int *bad_count=nullptr) const override
Definition: Ioex_DatabaseIO.C:331
Ioex::DatabaseIO::compute_block_membership__
void compute_block_membership__(Ioss::SideBlock *efblock, std::vector< std::string > &block_membership) const override
Definition: Ioex_DatabaseIO.C:698
Ioex::DatabaseIO::open_state_file
void open_state_file(int state)
Definition: Ioex_DatabaseIO.C:1051
Ioss::Field
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:47
Ioex::DatabaseIO::put_info
void put_info()
Definition: Ioex_DatabaseIO.C:510
Ioex::DatabaseIO::globalValues
ValueContainer globalValues
Definition: Ioex_DatabaseIO.h:314
Ioss_Map.h
Ioex::DatabaseIO::flushInterval
int flushInterval
Definition: Ioex_DatabaseIO.h:325
Ioss::IntVector
std::vector< int > IntVector
Definition: Ioss_CodeTypes.h:51
Ioex::VariableNameMap
std::map< std::string, int, std::less< std::string > > VariableNameMap
Definition: Ioex_DatabaseIO.h:80
Ioex::DatabaseIO::write_results_metadata
void write_results_metadata(bool gather_data=true)
Definition: Ioex_DatabaseIO.C:1269
Ioex::DatabaseIO::spatialDimension
int spatialDimension
Definition: Ioex_DatabaseIO.h:288
Ioex::DatabaseIO::m_groupName
std::string m_groupName
Definition: Ioex_DatabaseIO.h:280
Ioex::DatabaseIO::nodeCmapIds
Ioss::Int64Vector nodeCmapIds
Definition: Ioex_DatabaseIO.h:296
Ioex::DatabaseIO::put_qa
void put_qa()
Definition: Ioex_DatabaseIO.C:445
Ioss::EdgeBlock
A collection of element edges with the same topology.
Definition: Ioss_EdgeBlock.h:53
Ioss::DatabaseUsage
DatabaseUsage
Specifies how an Ioss::DatabaseIO object will be used.
Definition: Ioss_DBUsage.h:40
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:66
Ioex::DatabaseIO
Definition: Ioex_DatabaseIO.h:96
Ioex::DatabaseIO::end__
bool end__(Ioss::State state) override
Definition: Ioex_DatabaseIO.C:1017
Ioss::State
State
Access states for a database.
Definition: Ioss_State.h:42
anonymous_namespace{Iovs_DatabaseIO.C}::entity_type
entity_type
Definition: Iovs_DatabaseIO.C:81
Ioex::DatabaseIO::output_results_names
void output_results_names(ex_entity_type type, VariableNameMap &variables) const
Definition: Ioex_DatabaseIO.C:1525
Ioss::Region
A grouping entity that contains other grouping entities.
Definition: Ioss_Region.h:98
Ioex::DatabaseIO::read_reduction_fields
void read_reduction_fields() const
Definition: Ioex_DatabaseIO.C:997
Ioex::DatabaseIO::flush_database__
void flush_database__() const override
Definition: Ioex_DatabaseIO.C:1603
Ioex::DatabaseIO::get_current_state
int get_current_state() const
Definition: Ioex_DatabaseIO.C:566
Ioex::DatabaseIO::ids_
EntityIdSet ids_
Definition: Ioex_DatabaseIO.h:282
Ioex::DatabaseIO::output_other_meta_data
void output_other_meta_data()
Definition: Ioex_DatabaseIO.C:1930
Ioss::NodeSet
A collection of nodes.
Definition: Ioss_NodeSet.h:53
Ioex::DatabaseIO::exodusFilePtr
int exodusFilePtr
Definition: Ioex_DatabaseIO.h:279
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:1367
Ioex::DatabaseIO::get_step_times__
void get_step_times__() override=0
Ioss::FaceSet
A collection of element faces.
Definition: Ioss_FaceSet.h:54
Ioss::StructuredBlock
A structured zone – i,j,k.
Definition: Ioss_StructuredBlock.h:103
Ioss::DatabaseIO::closeDW
void closeDW() const
Function which invokes stageout from BB to Disk, prior to completion of final close.
Definition: Ioss_DatabaseIO.C:353
Ioex::DatabaseIO::get_format
const std::string get_format() const override
Definition: Ioex_DatabaseIO.h:107
Ioss::PropertyManager
A collection of Ioss::Property objects.
Definition: Ioss_PropertyManager.h:49
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:140
Ioex::DatabaseIO::entity_field_support
unsigned entity_field_support() const override
Definition: Ioex_DatabaseIO.C:275
Ioss::EdgeSet
A collection of element edges.
Definition: Ioss_EdgeSet.h:54
Ioss::ElementSet
A collection of elements.
Definition: Ioss_ElementSet.h:54
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:1163
Ioss::CommSet
Definition: Ioss_CommSet.h:51
Ioex::DatabaseIO::finalize_file_open
void finalize_file_open() const
Definition: Ioex_DatabaseIO.C:368
Ioex::ValueContainer
std::vector< double > ValueContainer
Definition: Ioex_DatabaseIO.h:84
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::begin_state__
bool begin_state__(int state, double time) override
Definition: Ioex_DatabaseIO.C:1112
Ioex::DatabaseIO::nodeConnectivityStatus
std::vector< unsigned char > nodeConnectivityStatus
Definition: Ioex_DatabaseIO.h:316
Ioex::DatabaseIO::~DatabaseIO
~DatabaseIO() override
Definition: Ioex_DatabaseIO.C:265
Ioss::FaceBlock
A collection of element faces with the same topology.
Definition: Ioss_FaceBlock.h:53
Ioex::DatabaseIO::get_database_step
int get_database_step(int global_step) const
Definition: Ioex_DatabaseIO.C:1583
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:225
Ioss::DatabaseIO
An input or output Database.
Definition: Ioss_DatabaseIO.h:82
Ioss::DatabaseIO::DatabaseIO
DatabaseIO()=delete
Ioex::DatabaseIO::write_reduction_fields
void write_reduction_fields() const
Definition: Ioex_DatabaseIO.C:983
Ioex
A namespace for the exodus database format.
Definition: Ioex_IOFactory.C:62
Ioex::DatabaseIO::blockAdjacenciesCalculated
bool blockAdjacenciesCalculated
Definition: Ioex_DatabaseIO.h:330
Ioex::DatabaseIO::closeDatabase__
void closeDatabase__() const override
Definition: Ioex_DatabaseIO.h:217
Ioex::DatabaseIO::faceCount
int64_t faceCount
Definition: Ioex_DatabaseIO.h:291
Ioex::DatabaseIO::elemCmapIds
Ioss::Int64Vector elemCmapIds
Definition: Ioex_DatabaseIO.h:298
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:311
Ioss::Int64Vector
std::vector< int64_t > Int64Vector
Definition: Ioss_CodeTypes.h:52
Ioss_Utils.h
Ioss::SideBlock
A collection of element sides having the same topology.
Definition: Ioss_SideBlock.h:59
Ioss_Field.h
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:752
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:1171
Ioex::DatabaseIO::int_byte_size_db
int int_byte_size_db() const override
Definition: Ioex_DatabaseIO.C:253
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:875
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::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:1682
Ioex::DatabaseIO::free_file_pointer
virtual int free_file_pointer() const
Definition: Ioex_DatabaseIO.C:307
Ioex::DatabaseIO::create_subgroup__
bool create_subgroup__(const std::string &group_name) override
Definition: Ioex_DatabaseIO.C:412
Ioss::ElementBlock
A collection of elements having the same topology.
Definition: Ioss_ElementBlock.h:48
Ioex::DatabaseIO::nodeConnectivityStatusCalculated
bool nodeConnectivityStatusCalculated
Definition: Ioex_DatabaseIO.h:332
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:616
Ioex::DatabaseIO::m_groupCount
std::map< ex_entity_type, int > m_groupCount
Definition: Ioex_DatabaseIO.h:293
Ioex::DatabaseIO::exodusMode
int exodusMode
Definition: Ioex_DatabaseIO.h:284
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::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:780
Ioex::DatabaseIO::elemCmapElemCnts
Ioss::Int64Vector elemCmapElemCnts
Definition: Ioex_DatabaseIO.h:299
Ioss::Map
Definition: Ioss_Map.h:52
Ioex::DatabaseIO::commsetNodeCount
int64_t commsetNodeCount
Definition: Ioex_DatabaseIO.h:300
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:1380
anonymous_namespace{cth_pressure_map.C}::data
std::vector< char > data
Definition: cth_pressure_map.C:74
Ioex::DatabaseIO::get_file_pointer
virtual int get_file_pointer() const override=0
Definition: Ioex_DatabaseIO.C:283
Ioex::DatabaseIO::openDatabase__
void openDatabase__() const override
Definition: Ioex_DatabaseIO.h:215
Ioex::DatabaseIO::timeLastFlush
time_t timeLastFlush
Definition: Ioex_DatabaseIO.h:324
Ioss::NodeBlock
A collection of all nodes in the region.
Definition: Ioss_NodeBlock.h:53
Ioex::EntityIdSet
std::set< std::pair< int64_t, int64_t > > EntityIdSet
Definition: Ioex_DatabaseIO.h:94
Ioex::DatabaseIO::maximumNameLength
int maximumNameLength
Definition: Ioex_DatabaseIO.h:287
Ioex::DatabaseIO::edgeCount
int64_t edgeCount
Definition: Ioex_DatabaseIO.h:290
Ioex::VNMValuePair
VariableNameMap::value_type VNMValuePair
Definition: Ioex_DatabaseIO.h:81
Ioex::DatabaseIO::finalize_write
void finalize_write(int state, double sim_time)
Definition: Ioex_DatabaseIO.C:1612
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:136
Ioex::DatabaseIO::minimizeOpenFiles
bool minimizeOpenFiles
Definition: Ioex_DatabaseIO.h:328
MPI_Comm
int MPI_Comm
Definition: Ioss_CodeTypes.h:96
Ioss::DataSize
DataSize
The number of bytes used to store an integer type.
Definition: Ioss_DataSize.h:40
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
Ioss::SideSet
A collection of element sides.
Definition: Ioss_SideSet.h:53
Ioss::GroupingEntity
Base class for all 'grouping' entities. The following derived classes are typical:
Definition: Ioss_GroupingEntity.h:93
Ioex::DatabaseIO::get_nodeblocks
void get_nodeblocks()
Definition: Ioex_DatabaseIO.C:584
Ioex::DatabaseIO::end_state__
bool end_state__(int state, double time) override
Definition: Ioex_DatabaseIO.C:1140
Ioex::DatabaseIO::open_group__
bool open_group__(const std::string &group_name) override
Definition: Ioex_DatabaseIO.C:390
Ioex::DatabaseIO::begin__
bool begin__(Ioss::State state) override
Definition: Ioex_DatabaseIO.C:1010
Ioex::DatabaseIO::activeNodeSetNodesIndex
std::map< std::string, Ioss::Int64Vector > activeNodeSetNodesIndex
Definition: Ioex_DatabaseIO.h:322
Ioex::DatabaseIO::commsetElemCount
int64_t commsetElemCount
Definition: Ioex_DatabaseIO.h:301
Ioss_DatabaseIO.h
Ioex::DatabaseIO::dbRealWordSize
int dbRealWordSize
Definition: Ioex_DatabaseIO.h:285
Ioex::DatabaseIO::nodeCmapNodeCnts
Ioss::Int64Vector nodeCmapNodeCnts
Definition: Ioex_DatabaseIO.h:297