IOSS 2.0

Ioad_DatabaseIO.h
Go to the documentation of this file.
1 // Copyright(C) 1999-2010 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 #ifndef IOSS_Ioad_DatabaseIO_h
34 #define IOSS_Ioad_DatabaseIO_h
35
36 #include "Ioss_EntitySet.h"
37 #include "Ioss_Region.h" // for Region, SideSetContainer, etc
38 #include "Ioss_SideSet.h" // for SideBlockContainer, SideSet
39 #include <Ioss_DBUsage.h>
40 #include <Ioss_DatabaseIO.h>
41
42 #include "Ioss_Field.h" // for Field, etc
43 #include <AdiosWrapper.h>
44
45 namespace Ioss {
46 class GroupingEntity;
47 class Region;
48 class EntityBlock;
49 class NodeBlock;
50 class SideBlock;
51 class ElementBlock;
52 class NodeSet;
53 class SideSet;
54 class CommSet;
55 } // namespace Ioss
56
57 /** \brief A namespace for the adios database format.
58 */
59 namespace Ioad {
60
61 class DatabaseIO : public Ioss::DatabaseIO
62 {
63 public:
64 DatabaseIO(Ioss::Region *region, const std::string &filename, Ioss::DatabaseUsage db_usage,
65 MPI_Comm communicator, const Ioss::PropertyManager &props);
66 ~DatabaseIO();
67 DatabaseIO(const DatabaseIO &from) = delete;
68 DatabaseIO &operator=(const DatabaseIO &from) = delete;
69
70 bool begin__(Ioss::State state) override;
71 bool end__(Ioss::State state) override;
72
73 unsigned entity_field_support() const override;
74 int int_byte_size_db() const override;
75
76 private:
77 int64_t get_field_internal(const Ioss::Region *reg, const Ioss::Field &field, void *data,
78 size_t data_size) const override;
79 int64_t get_field_internal(const Ioss::NodeBlock *nb, const Ioss::Field &field, void *data,
80 size_t data_size) const override;
81 int64_t get_field_internal(const Ioss::EdgeBlock *eb, const Ioss::Field &field, void *data,
82 size_t data_size) const override;
83 int64_t get_field_internal(const Ioss::FaceBlock *fb, const Ioss::Field &field, void *data,
84 size_t data_size) const override;
85 int64_t get_field_internal(const Ioss::ElementBlock *eb, const Ioss::Field &field, void *data,
86 size_t data_size) const override;
87 int64_t get_field_internal(const Ioss::StructuredBlock *sb, const Ioss::Field &field,
88 void *data, size_t data_size) const override
89 {
90 return -1;
91 }
92 int64_t get_field_internal(const Ioss::SideBlock *sb, const Ioss::Field &field, void *data,
93 size_t data_size) const override;
94 int64_t get_field_internal(const Ioss::NodeSet *ns, const Ioss::Field &field, void *data,
95 size_t data_size) const override;
96 int64_t get_field_internal(const Ioss::EdgeSet *es, const Ioss::Field &field, void *data,
97 size_t data_size) const override;
98 int64_t get_field_internal(const Ioss::FaceSet *fs, const Ioss::Field &field, void *data,
99 size_t data_size) const override;
100 int64_t get_field_internal(const Ioss::ElementSet *es, const Ioss::Field &field, void *data,
101 size_t data_size) const override;
102 int64_t get_field_internal(const Ioss::SideSet *ss, const Ioss::Field &field, void *data,
103 size_t data_size) const override;
104 int64_t get_field_internal(const Ioss::CommSet *cs, const Ioss::Field &field, void *data,
105 size_t data_size) const override;
106
107 int64_t get_field_internal_t(const Ioss::GroupingEntity *entity, const Ioss::Field &field,
108 void *data, size_t data_size) const;
109 template <typename T>
110 void get_data(void *data, const std::string &encoded_name,
111 bool use_step_selection = false) const;
112
113 int64_t put_field_internal(const Ioss::Region *reg, const Ioss::Field &field, void *data,
114 size_t data_size) const override;
115 int64_t put_field_internal(const Ioss::NodeBlock *nb, const Ioss::Field &field, void *data,
116 size_t data_size) const override;
117 int64_t put_field_internal(const Ioss::EdgeBlock *eb, const Ioss::Field &field, void *data,
118 size_t data_size) const override;
119 int64_t put_field_internal(const Ioss::FaceBlock *fb, const Ioss::Field &field, void *data,
120 size_t data_size) const override;
121 int64_t put_field_internal(const Ioss::ElementBlock *eb, const Ioss::Field &field, void *data,
122 size_t data_size) const override;
123 int64_t put_field_internal(const Ioss::SideBlock *sb, const Ioss::Field &field, void *data,
124 size_t data_size) const override;
125 int64_t put_field_internal(const Ioss::NodeSet *ns, const Ioss::Field &field, void *data,
126 size_t data_size) const override;
127 int64_t put_field_internal(const Ioss::EdgeSet *es, const Ioss::Field &field, void *data,
128 size_t data_size) const override;
129 int64_t put_field_internal(const Ioss::FaceSet *fs, const Ioss::Field &field, void *data,
130 size_t data_size) const override;
131 int64_t put_field_internal(const Ioss::ElementSet *es, const Ioss::Field &field, void *data,
132 size_t data_size) const override;
133 int64_t put_field_internal(const Ioss::SideSet *ss, const Ioss::Field &field, void *data,
134 size_t data_size) const override;
135 int64_t put_field_internal(const Ioss::CommSet *cs, const Ioss::Field &field, void *data,
136 size_t data_size) const override;
137 int64_t put_field_internal(const Ioss::StructuredBlock *sb, const Ioss::Field &field,
138 void *data, size_t data_size) const override
139 {
140 return -1;
141 }
142 template <typename T>
143 int64_t put_field_internal_t(T entity, const Ioss::Field &field, void *data,
144 size_t data_size) const;
145 void define_model(Ioss::Field::RoleType *role = nullptr);
146 // Model definition that should not be re-defined when defining transient variables.
147 void define_global_variables();
148 template <typename T> T get_attribute(const std::string &attribute_name);
149
150 template <typename T> void put_data(void *data, const std::string &encoded_name) const;
151 template <typename T, typename = typename std::enable_if<
152 !std::is_base_of<Ioss::EntitySet, T>::value, T>::type>
153 void put_var_type(const Ioss::Field &field, const std::string &encoded_name,
154 bool transformed_field) const;
155 template <typename T>
156 void define_model_internal(const Ioss::Field &field, const std::string &encoded_name,
157 const std::string &entity_type, const std::string &field_name);
158 template <typename T>
159 void define_entity_internal(const T &entity_blocks, Ioss::Field::RoleType *role);
160
161 int get_current_state() const;
162
163 struct BlockInfoType
164 {
165 std::vector<size_t> steps;
166 adios2::Dims Count;
167 size_t global_size{0};
168 };
169
170 struct FieldInfoType
171 {
172 // Information contained in block infos.
173 std::vector<size_t> steps;
174 size_t node_boundaries_size = 0;
175 size_t component_count = 0;
176 // Contained in metavariables
177 Ioss::Field::RoleType role;
178 std::string variable_type;
179 Ioss::Field::BasicType basic_type;
180 std::string topology;
181 std::string parent_topology;
182 };
183
184 template <typename T> BlockInfoType get_block_infos(const adios2::Variable<T> &var) const;
185
186 template <typename T> FieldInfoType get_variable_infos(const std::string &var_name) const;
187 using GlobalMapType = std::map<std::string, std::pair<std::string, std::string>>;
188 using EntityMapType = std::map<std::string, GlobalMapType>;
189 using FieldsMapType = std::map<std::string, EntityMapType>;
190
191 template <typename T>
192 std::string get_property_value(const FieldsMapType &properties_map,
193 const std::string &entity_type, const std::string &entity_name,
194 const std::string &property_name) const;
195
196 template <typename T>
197 FieldInfoType get_expected_variable_infos_from_map(const EntityMapType &fields_map,
198 const std::string & entity_type,
199 const std::string & entity_name,
200 const std::string & var_name) const;
201 FieldInfoType get_variable_infos_from_map(const EntityMapType &fields_map,
202 const std::string & entity_type,
203 const std::string & entity_name,
204 const std::string & var_name) const;
205
206 template <typename T>
207 using IsIossEntityBlock =
208 typename std::enable_if<std::is_base_of<Ioss::EntityBlock, T>::value>::type;
209 template <typename T>
210 using IsNotIossEntityBlock =
211 typename std::enable_if<!std::is_base_of<Ioss::EntityBlock, T>::value>::type;
212
213 template <typename T, typename = IsIossEntityBlock<T>>
214 void define_entity_meta_variables(const std::string &encoded_name);
215
216 template <typename T, typename = IsNotIossEntityBlock<T>, typename = void>
217 void define_entity_meta_variables(const std::string &encoded_name);
218
219 void define_field_meta_variables(const std::string &);
220 void define_coordinate_frames_internal(const Ioss::CoordinateFrameContainer &coordinate_frames);
221 std::string encoded_coordinate_frame_name(Ioss::CoordinateFrame coordinate_frame);
222
223 void put_meta_variables(const std::string &encoded_name, const Ioss::Field &field,
224 const std::string &entity_type, const std::string &field_name) const;
225 void write_meta_data();
226
227 template <typename T>
228 void add_entity_property(Ioss::GroupingEntity *ge, const std::string &encoded_name,
229 const std::string &var_name);
230 void add_entity_properties(Ioss::GroupingEntity *ge, const FieldsMapType &properties_map,
231 std::string name = "");
232
233 void write_properties(const Ioss::GroupingEntity *const entity,
234 const std::string & encoded_name);
235
236 template <typename T> int64_t write_meta_data_container(const T &entity_blocks);
237 std::pair<int64_t, int64_t>
238 write_meta_data_sideblockcontainer(const Ioss::SideBlockContainer &entity_blocks);
239
240 template <typename T>
241 int64_t get_entities(const FieldsMapType &fields_map, const FieldsMapType &properties_map);
242 std::string get_optional_string_variable(const std::string &field_name,
243 const std::string &string_variable) const;
244
245 void get_globals(const GlobalMapType &globals_map, const FieldsMapType &properties_map);
246 void compute_block_membership__(Ioss::SideBlock * efblock,
247 std::vector<std::string> &block_membership) const override;
248 void define_properties(const Ioss::GroupingEntity *entity_block,
249 const std::string & encoded_entity_name);
250
251 void read_meta_data__() override;
252 void read_communication_metadata();
253 void read_region(const FieldsMapType &fields_map);
254 void check_processor_info();
255 void check_model();
256
257 int RankInit();
258 bool begin_state__(int state, double time) override;
259 bool end_state__(int state, double time) override;
260 unsigned long rank; // rank needs to be declared first to be initialized before adios_wrapper.
261 mutable AdiosWrapper adios_wrapper; // adios_wrapper needs to be declared before bpio
262 // and bp_engine to be initialized first.
263 int spatialDimension{0};
264 int64_t edgeCount{0};
265 int64_t faceCount{0};
266 unsigned long number_proc;
267 bool is_streaming;
268 double previous_time_streaming;
269 };
270 } // namespace Ioad
271 #endif
Ioad::DatabaseIO::read_meta_data__
void read_meta_data__() override
Definition: Ioad_DatabaseIO.C:1253
Ioad::DatabaseIO::rank
unsigned long rank
Definition: Ioad_DatabaseIO.h:260
Ioad::DatabaseIO::get_property_value
std::string get_property_value(const FieldsMapType &properties_map, const std::string &entity_type, const std::string &entity_name, const std::string &property_name) const
Definition: Ioad_DatabaseIO.C:878
Ioad::DatabaseIO::define_entity_meta_variables
void define_entity_meta_variables(const std::string &encoded_name)
Definition: Ioad_DatabaseIO.C:374
Ioad::DatabaseIO::GlobalMapType
std::map< std::string, std::pair< std::string, std::string > > GlobalMapType
Definition: Ioad_DatabaseIO.h:187
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:66
Ioss::CoordinateFrameContainer
std::vector< CoordinateFrame > CoordinateFrameContainer
Definition: Ioex_Utils.h:52
Ioss::DatabaseIO
An input or output Database.
Definition: Ioss_DatabaseIO.h:82
Ioss_DBUsage.h
Ioad::DatabaseIO::adios_wrapper
AdiosWrapper adios_wrapper
Definition: Ioad_DatabaseIO.h:261
Ioad::DatabaseIO::FieldInfoType::topology
std::string topology
Definition: Ioad_DatabaseIO.h:180
Ioad::DatabaseIO::number_proc
unsigned long number_proc
Definition: Ioad_DatabaseIO.h:266
Ioad::DatabaseIO::FieldInfoType::basic_type
Ioss::Field::BasicType basic_type
Definition: Ioad_DatabaseIO.h:179
Ioad::DatabaseIO::IsIossEntityBlock
typename std::enable_if< std::is_base_of< Ioss::EntityBlock, T >::value >::type IsIossEntityBlock
Definition: Ioad_DatabaseIO.h:208
AdiosWrapper.h
Ioad::DatabaseIO::define_properties
void define_properties(const Ioss::GroupingEntity *entity_block, const std::string &encoded_entity_name)
Definition: Ioad_DatabaseIO.C:412
Ioad::DatabaseIO::~DatabaseIO
~DatabaseIO()
Definition: Ioad_DatabaseIO.C:94
Ioss::NodeSet
A collection of nodes.
Definition: Ioss_NodeSet.h:53
Ioad::DatabaseIO::put_field_internal
int64_t put_field_internal(const Ioss::StructuredBlock *sb, const Ioss::Field &field, void *data, size_t data_size) const override
Definition: Ioad_DatabaseIO.h:137
Ioad::DatabaseIO::is_streaming
bool is_streaming
Definition: Ioad_DatabaseIO.h:267
Ioss::FaceBlock
A collection of element faces with the same topology.
Definition: Ioss_FaceBlock.h:53
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
Ioss::Field::RoleType
RoleType
Definition: Ioss_Field.h:75
Ioad::DatabaseIO::faceCount
int64_t faceCount
Definition: Ioad_DatabaseIO.h:265
Ioad::DatabaseIO::put_field_internal_t
int64_t put_field_internal_t(T entity, const Ioss::Field &field, void *data, size_t data_size) const
Definition: Ioad_DatabaseIO.C:623
Ioss::EdgeSet
A collection of element edges.
Definition: Ioss_EdgeSet.h:54
Ioad::DatabaseIO::RankInit
int RankInit()
Definition: Ioad_DatabaseIO.C:87
Ioad::DatabaseIO::EntityMapType
std::map< std::string, GlobalMapType > EntityMapType
Definition: Ioad_DatabaseIO.h:188
Ioad::AdiosWrapper
Definition: AdiosWrapper.h:42
Ioad::DatabaseIO::encoded_coordinate_frame_name
std::string encoded_coordinate_frame_name(Ioss::CoordinateFrame coordinate_frame)
Definition: Ioad_DatabaseIO.C:221
Ioad::DatabaseIO::BlockInfoType::global_size
size_t global_size
Definition: Ioad_DatabaseIO.h:167
Ioad::DatabaseIO::add_entity_property
void add_entity_property(Ioss::GroupingEntity *ge, const std::string &encoded_name, const std::string &var_name)
Definition: Ioad_DatabaseIO.C:818
Ioad::DatabaseIO::FieldInfoType::node_boundaries_size
size_t node_boundaries_size
Definition: Ioad_DatabaseIO.h:174
Ioad::DatabaseIO::define_global_variables
void define_global_variables()
Definition: Ioad_DatabaseIO.C:575
Ioss::SideBlock
A collection of element sides having the same topology.
Definition: Ioss_SideBlock.h:61
Ioad::DatabaseIO::BlockInfoType::steps
std::vector< size_t > steps
Definition: Ioad_DatabaseIO.h:165
Ioad::DatabaseIO::FieldInfoType::parent_topology
std::string parent_topology
Definition: Ioad_DatabaseIO.h:181
Ioad::DatabaseIO::get_expected_variable_infos_from_map
FieldInfoType get_expected_variable_infos_from_map(const EntityMapType &fields_map, const std::string &entity_type, const std::string &entity_name, const std::string &var_name) const
Definition: Ioad_DatabaseIO.C:719
Ioad::DatabaseIO::get_entities
int64_t get_entities(const FieldsMapType &fields_map, const FieldsMapType &properties_map)
Definition: Ioad_DatabaseIO.C:1012
Ioss_DatabaseIO.h
Ioad::DatabaseIO::IsNotIossEntityBlock
typename std::enable_if<!std::is_base_of< Ioss::EntityBlock, T >::value >::type IsNotIossEntityBlock
Definition: Ioad_DatabaseIO.h:211
Ioad::DatabaseIO::get_field_internal_t
int64_t get_field_internal_t(const Ioss::GroupingEntity *entity, const Ioss::Field &field, void *data, size_t data_size) const
Definition: Ioad_DatabaseIO.C:1537
Ioss::State
State
Access states for a database.
Definition: Ioss_State.h:42
Ioad::DatabaseIO::end_state__
bool end_state__(int state, double time) override
Definition: Ioad_DatabaseIO.C:350
Ioad::DatabaseIO::FieldInfoType
Definition: Ioad_DatabaseIO.h:170
Ioss_Region.h
Ioss::SideBlockContainer
std::vector< SideBlock * > SideBlockContainer
Definition: Ioss_SideSet.h:55
Ioad::DatabaseIO::define_model_internal
void define_model_internal(const Ioss::Field &field, const std::string &encoded_name, const std::string &entity_type, const std::string &field_name)
Definition: Ioad_DatabaseIO.C:393
Ioss::DatabaseIO::DatabaseIO
DatabaseIO()=delete
Ioad::DatabaseIO::begin__
bool begin__(Ioss::State state) override
Definition: Ioad_DatabaseIO.C:96
Ioss::ElementBlock
A collection of elements having the same topology.
Definition: Ioss_ElementBlock.h:48
Ioad::DatabaseIO::get_optional_string_variable
std::string get_optional_string_variable(const std::string &field_name, const std::string &string_variable) const
Definition: Ioad_DatabaseIO.C:1108
Ioad::DatabaseIO::begin_state__
bool begin_state__(int state, double time) override
Definition: Ioad_DatabaseIO.C:323
Ioad::DatabaseIO::check_model
void check_model()
Definition: Ioad_DatabaseIO.C:277
Ioss::StructuredBlock
A structured zone – i,j,k.
Definition: Ioss_StructuredBlock.h:103
Ioss::ElementSet
A collection of elements.
Definition: Ioss_ElementSet.h:54
Ioss::DatabaseUsage
DatabaseUsage
Specifies how an Ioss::DatabaseIO object will be used.
Definition: Ioss_DBUsage.h:40
Ioad::DatabaseIO::define_model
void define_model(Ioss::Field::RoleType *role=nullptr)
Definition: Ioad_DatabaseIO.C:518
Ioad::DatabaseIO::get_field_internal
int64_t get_field_internal(const Ioss::StructuredBlock *sb, const Ioss::Field &field, void *data, size_t data_size) const override
Definition: Ioad_DatabaseIO.h:87
Ioad::DatabaseIO::entity_field_support
unsigned entity_field_support() const override
Definition: Ioad_DatabaseIO.C:592
Ioad::DatabaseIO::define_entity_internal
void define_entity_internal(const T &entity_blocks, Ioss::Field::RoleType *role)
Definition: Ioad_DatabaseIO.C:439
Ioad::DatabaseIO::put_data
void put_data(void *data, const std::string &encoded_name) const
Definition: Ioad_DatabaseIO.C:605
Ioss_SideSet.h
Ioad::DatabaseIO::get_attribute
T get_attribute(const std::string &attribute_name)
Ioad::DatabaseIO::get_data
void get_data(void *data, const std::string &encoded_name, bool use_step_selection=false) const
Definition: Ioad_DatabaseIO.C:1592
Ioad::DatabaseIO::add_entity_properties
void add_entity_properties(Ioss::GroupingEntity *ge, const FieldsMapType &properties_map, std::string name="")
Definition: Ioad_DatabaseIO.C:830
Ioad::DatabaseIO::write_meta_data_container
int64_t write_meta_data_container(const T &entity_blocks)
Definition: Ioad_DatabaseIO.C:143
Ioad::DatabaseIO::check_processor_info
void check_processor_info()
Definition: Ioad_DatabaseIO.C:1415
Ioad
A namespace for the adios database format.
Definition: AdiosWrapper.C:37
Ioss::NodeBlock
A collection of all nodes in the region.
Definition: Ioss_NodeBlock.h:53
Ioad::DatabaseIO::write_meta_data
void write_meta_data()
Definition: Ioad_DatabaseIO.C:243
Ioad::DatabaseIO::operator=
DatabaseIO & operator=(const DatabaseIO &from)=delete
Ioad::DatabaseIO::FieldInfoType::steps
std::vector< size_t > steps
Definition: Ioad_DatabaseIO.h:173
Ioad::DatabaseIO::get_variable_infos
FieldInfoType get_variable_infos(const std::string &var_name) const
Definition: Ioad_DatabaseIO.C:1168
Ioad::DatabaseIO::define_field_meta_variables
void define_field_meta_variables(const std::string &)
Definition: Ioad_DatabaseIO.C:367
Ioad::DatabaseIO::put_var_type
void put_var_type(const Ioss::Field &field, const std::string &encoded_name, bool transformed_field) const
Ioss::CommSet
Definition: Ioss_CommSet.h:51
Ioad::DatabaseIO::read_region
void read_region(const FieldsMapType &fields_map)
Definition: Ioad_DatabaseIO.C:1324
Ioad::DatabaseIO::FieldInfoType::component_count
size_t component_count
Definition: Ioad_DatabaseIO.h:175
Ioss_Field.h
anonymous_namespace{cth_pressure_map.C}::data
std::vector< char > data
Definition: cth_pressure_map.C:73
Ioad::DatabaseIO::get_block_infos
BlockInfoType get_block_infos(const adios2::Variable< T > &var) const
Definition: Ioad_DatabaseIO.C:1124
Ioss::Region
A grouping entity that contains other grouping entities.
Definition: Ioss_Region.h:98
Ioad::DatabaseIO::get_current_state
int get_current_state() const
Definition: Ioad_DatabaseIO.C:1673
Ioad::DatabaseIO::write_meta_data_sideblockcontainer
std::pair< int64_t, int64_t > write_meta_data_sideblockcontainer(const Ioss::SideBlockContainer &entity_blocks)
Definition: Ioad_DatabaseIO.C:172
Ioad::DatabaseIO::previous_time_streaming
double previous_time_streaming
Definition: Ioad_DatabaseIO.h:268
Ioad::DatabaseIO::FieldInfoType::role
Ioss::Field::RoleType role
Definition: Ioad_DatabaseIO.h:177
Ioad::DatabaseIO::end__
bool end__(Ioss::State state) override
Definition: Ioad_DatabaseIO.C:288
Ioss::Field::BasicType
BasicType
The basic data type held in the field.
Definition: Ioss_Field.h:52
anonymous_namespace{io_info.C}::name
std::string name(Ioss::GroupingEntity *entity)
Definition: io_info.C:89
Ioss::SideSet
A collection of element sides.
Definition: Ioss_SideSet.h:59
Ioad::DatabaseIO::compute_block_membership__
void compute_block_membership__(Ioss::SideBlock *efblock, std::vector< std::string > &block_membership) const override
Definition: Ioad_DatabaseIO.C:1628
Ioad::DatabaseIO::define_coordinate_frames_internal
void define_coordinate_frames_internal(const Ioss::CoordinateFrameContainer &coordinate_frames)
Definition: Ioad_DatabaseIO.C:506
Ioss::Field
Holds metadata for bulk data associated with a GroupingEntity.
Definition: Ioss_Field.h:47
Ioad::DatabaseIO::edgeCount
int64_t edgeCount
Definition: Ioad_DatabaseIO.h:264
Ioss_EntitySet.h
MPI_Comm
int MPI_Comm
Definition: Ioss_CodeTypes.h:88
Ioad::DatabaseIO::get_globals
void get_globals(const GlobalMapType &globals_map, const FieldsMapType &properties_map)
Definition: Ioad_DatabaseIO.C:1213
Ioad::DatabaseIO::get_variable_infos_from_map
FieldInfoType get_variable_infos_from_map(const EntityMapType &fields_map, const std::string &entity_type, const std::string &entity_name, const std::string &var_name) const
Definition: Ioad_DatabaseIO.C:744
Ioad::DatabaseIO::write_properties
void write_properties(const Ioss::GroupingEntity *const entity, const std::string &encoded_name)
Definition: Ioad_DatabaseIO.C:113
Ioad::DatabaseIO::FieldsMapType
std::map< std::string, EntityMapType > FieldsMapType
Definition: Ioad_DatabaseIO.h:189
Ioss::CoordinateFrame
Definition: Ioss_CoordinateFrame.h:42
Ioad::DatabaseIO::FieldInfoType::variable_type
std::string variable_type
Definition: Ioad_DatabaseIO.h:178
Ioss::PropertyManager
A collection of Ioss::Property objects.
Definition: Ioss_PropertyManager.h:49
Ioad::DatabaseIO::BlockInfoType
Definition: Ioad_DatabaseIO.h:163
Ioad::DatabaseIO::put_meta_variables
void put_meta_variables(const std::string &encoded_name, const Ioss::Field &field, const std::string &entity_type, const std::string &field_name) const
Definition: Ioad_DatabaseIO.C:611
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
Ioad::DatabaseIO::read_communication_metadata
void read_communication_metadata()
Definition: Ioad_DatabaseIO.C:1370
Ioad::DatabaseIO
Definition: Ioad_DatabaseIO.h:61
Ioad::DatabaseIO::int_byte_size_db
int int_byte_size_db() const override
Definition: Ioad_DatabaseIO.C:590
Ioad::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
Definition: Ioad_DatabaseIO.C:583
Ioad::DatabaseIO::spatialDimension
int spatialDimension
Definition: Ioad_DatabaseIO.h:263
Ioad::DatabaseIO::BlockInfoType::Count
adios2::Dims Count
Definition: Ioad_DatabaseIO.h:166
Ioad::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
Definition: Ioad_DatabaseIO.C:1446