12#include "ioex_export.h"
13#if defined PARALLEL_AWARE_EXODUS
31 class DecompositionDataBase;
32 struct BlockFieldData;
35 template <
typename INT>
class DecompositionData;
42 class ElementTopology;
55 class PropertyManager;
59 class StructuredBlock;
69 ParallelDatabaseIO(
Ioss::Region *region,
const std::string &filename,
72 ~ParallelDatabaseIO();
75 IOSS_NODISCARD bool needs_shared_node_information()
const override {
return true; }
77 std::vector<size_t> get_entity_field_data(
const std::string &field_name,
78 const std::vector<Ioss::ElementBlock *> &elem_blocks,
79 void *data,
size_t data_size)
const override;
82 void compute_node_status()
const;
84 void release_memory_nl()
override;
86 void get_step_times_nl()
override;
88 std::vector<double> get_db_step_times_nl()
override;
90 std::vector<double> internal_get_step_times_nl(
bool setRegionTimeSteps);
92 bool open_input_file(
bool write_message, std::string *error_msg,
int *bad_count,
93 bool abort_if_error)
const override;
94 bool handle_output_file(
bool write_message, std::string *error_msg,
int *bad_count,
95 bool overwrite,
bool abort_if_error)
const override;
96 bool check_valid_file_ptr(
bool write_message, std::string *error_msg,
int *bad_count,
97 bool abort_if_error)
const;
100 size_t data_size)
const override;
102 size_t data_size)
const override;
104 size_t data_size)
const override;
106 size_t data_size)
const override;
108 size_t data_size)
const override;
111 size_t )
const override
116 size_t data_size)
const override;
118 size_t data_size)
const override;
120 size_t data_size)
const override;
122 size_t data_size)
const override;
124 size_t data_size)
const override;
126 size_t data_size)
const override;
128 size_t data_size)
const override;
130 size_t data_size)
const override;
132 size_t data_size)
const override;
134 size_t data_size)
const override;
136 size_t data_size)
const override;
138 size_t data_size)
const override;
140 size_t data_size)
const override;
142 size_t data_size)
const override;
144 size_t data_size)
const override;
146 size_t data_size)
const override;
148 size_t data_size)
const override;
150 size_t data_size)
const override;
152 size_t data_size)
const override;
154 size_t data_size)
const override;
156 size_t data_size)
const override;
158 size_t data_size)
const override;
160 size_t data_size)
const override;
163 size_t )
const override
169 size_t data_size)
const;
171 size_t data_size)
const;
173 int free_file_pointer()
const override;
175 int64_t read_nodal_coordinates();
178 void create_implicit_global_map()
const;
179 void output_node_map()
const;
182 void read_meta_data_nl()
override;
194 int64_t read_ss_transient_field(
const Ioss::Field &field, int64_t
id,
void *variables,
195 std::vector<int> &is_valid_side)
const;
199 int64_t count,
void *variables)
const;
202 int64_t count,
void *variables)
const;
204 template <
typename INT>
void output_processor_id_map(
Ioss::Region *region);
208 void get_edgeblocks();
209 void get_faceblocks();
210 void get_elemblocks();
211 void get_blocks(ex_entity_type entity_type,
int rank_offset,
const std::string &basename);
215 template <
typename T>
216 void get_sets(ex_entity_type type, int64_t count,
const std::string &base,
const T *);
224 void check_valid_values()
const;
229 int64_t file_offset, int64_t file_count,
230 ex_entity_type entity_type,
231 ex_inquiry inquiry_type)
const;
234 int64_t handle_node_ids(
void *ids, int64_t num_to_get,
size_t offset,
size_t count)
const;
235 int64_t handle_element_ids(
const Ioss::ElementBlock *eb,
void *ids,
size_t num_to_get,
236 size_t offset,
size_t count)
const;
237 int64_t handle_face_ids(
const Ioss::FaceBlock *eb,
void *ids,
size_t num_to_get)
const;
238 int64_t handle_edge_ids(
const Ioss::EdgeBlock *eb,
void *ids,
size_t num_to_get)
const;
240 int64_t get_side_connectivity(
const Ioss::SideBlock *sd_blk, int64_t
id, int64_t side_count,
241 void *fconnect,
bool map_ids)
const;
242 int64_t get_side_distributions(
const Ioss::SideBlock *sd_blk, int64_t
id, int64_t my_side_count,
243 double *dist_fact,
size_t data_size)
const;
246 size_t data_size)
const;
248 size_t data_size)
const;
250 template <
typename T>
251 std::vector<Ioex::BlockFieldData>
253 const std::string &field_name,
254 const std::vector<T *> &entity_container)
const;
257 get_entity_connectivity_field_data(
const std::string &field_name,
258 const std::vector<Ioss::ElementBlock *> &elem_blocks,
259 void *data,
size_t data_size)
const;
261 std::vector<size_t> get_entity_transient_field_data(
263 const std::vector<Ioss::ElementBlock *> &elem_blocks,
void *data)
const;
266 mutable std::unique_ptr<DecompositionDataBase> decomp;
270 nodeGlobalImplicitMap;
272 elemGlobalImplicitMap;
278 mutable std::map<const Ioss::GroupingEntity *, Ioss::Int64Vector> nodesetOwnedNodes;
280 mutable bool metaDataWritten{
false};
281 mutable bool nodeGlobalImplicitMapDefined{
false};
282 mutable bool elemGlobalImplicitMapDefined{
false};
#define IOSS_NODISCARD
Definition Ioss_CodeTypes.h:55
int Ioss_MPI_Comm
Definition Ioss_CodeTypes.h:64
Definition Ioex_BaseDatabaseIO.h:78
A homogeneous collection of other GroupingEntities.
Definition Ioss_Assembly.h:31
A homogeneous collection of other GroupingEntities.
Definition Ioss_Blob.h:31
Definition Ioss_CommSet.h:27
A collection of element edges with the same topology.
Definition Ioss_EdgeBlock.h:29
A collection of element edges.
Definition Ioss_EdgeSet.h:30
A collection of elements having the same topology.
Definition Ioss_ElementBlock.h:29
A collection of elements.
Definition Ioss_ElementSet.h:30
Base class for all 'set'-type grouping entities, which means that members of the set are not necessar...
Definition Ioss_EntitySet.h:38
A collection of element faces with the same topology.
Definition Ioss_FaceBlock.h:29
A collection of element faces.
Definition Ioss_FaceSet.h:30
Holds metadata for bulk data associated with a GroupingEntity.
Definition Ioss_Field.h:25
Base class for all 'grouping' entities. The following derived classes are typical:
Definition Ioss_GroupingEntity.h:67
A collection of all nodes in the region.
Definition Ioss_NodeBlock.h:33
A collection of nodes.
Definition Ioss_NodeSet.h:29
A collection of Ioss::Property objects.
Definition Ioss_PropertyManager.h:36
A grouping entity that contains other grouping entities.
Definition Ioss_Region.h:93
A collection of element sides having the same topology.
Definition Ioss_SideBlock.h:37
A collection of element sides.
Definition Ioss_SideSet.h:29
A structured zone – i,j,k.
Definition Ioss_StructuredBlock.h:91
A namespace for the exodus database format.
Definition Ioex_BaseDatabaseIO.C:209
std::map< std::string, int, std::less<> > VariableNameMap
Definition Ioex_BaseDatabaseIO.h:61
int get_file_pointer()
Definition Iofaodel_DatabaseIO.C:55
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
std::vector< int64_t > Int64Vector
Definition Ioss_CodeTypes.h:22
DatabaseUsage
Specifies how an Ioss::DatabaseIO object will be used.
Definition Ioss_DBUsage.h:13
std::vector< int > IntVector
Definition Ioss_CodeTypes.h:21
IfDatabaseExistsBehavior
Definition Ioss_DBUsage.h:32