12#include "ioexnl_export.h"
13#if defined PARALLEL_AWARE_EXODUS
31 class DecompositionDataBase;
34 template <
typename INT>
class DecompositionData;
41 class ElementTopology;
54 class PropertyManager;
58 class StructuredBlock;
68 ParallelDatabaseIO(
Ioss::Region *region,
const std::string &filename,
73 IOSS_NODISCARD bool needs_shared_node_information()
const override {
return true; }
76 void compute_node_status()
const;
78 void release_memory_nl()
override;
80 void get_step_times_nl()
override {}
82 bool handle_output_file(
bool write_message, std::string *error_msg,
int *bad_count,
83 bool overwrite,
bool abort_if_error)
const override;
84 bool check_valid_file_ptr(
bool write_message, std::string *error_msg,
int *bad_count,
85 bool abort_if_error)
const;
88 size_t data_size)
const override;
90 size_t data_size)
const override;
92 size_t data_size)
const override;
94 size_t data_size)
const override;
96 size_t data_size)
const override;
98 size_t data_size)
const override;
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;
110 size_t data_size)
const override;
112 size_t data_size)
const override;
114 size_t data_size)
const override;
117 size_t )
const override
123 size_t data_size)
const;
125 size_t data_size)
const;
127 int free_file_pointer()
const override;
129 int64_t read_nodal_coordinates();
132 void create_implicit_global_map()
const;
133 void output_node_map()
const;
136 void read_meta_data_nl()
override;
148 int64_t read_ss_transient_field(
const Ioss::Field &field, int64_t
id,
void *variables,
149 std::vector<int> &is_valid_side)
const;
153 int64_t count,
void *variables)
const;
156 int64_t count,
void *variables)
const;
161 void get_edgeblocks();
162 void get_faceblocks();
163 void get_elemblocks();
164 void get_blocks(ex_entity_type entity_type,
int rank_offset,
const std::string &basename);
168 template <
typename T>
169 void get_sets(ex_entity_type type, int64_t count,
const std::string &base,
const T *);
177 void check_valid_values()
const;
182 int64_t file_offset, int64_t file_count,
183 ex_entity_type entity_type,
184 ex_inquiry inquiry_type)
const;
187 int64_t handle_node_ids(
void *ids, int64_t num_to_get,
size_t offset,
size_t count)
const;
188 int64_t handle_element_ids(
const Ioss::ElementBlock *eb,
void *ids,
size_t num_to_get,
189 size_t offset,
size_t count)
const;
190 int64_t handle_face_ids(
const Ioss::FaceBlock *eb,
void *ids,
size_t num_to_get)
const;
191 int64_t handle_edge_ids(
const Ioss::EdgeBlock *eb,
void *ids,
size_t num_to_get)
const;
193 int64_t get_side_connectivity(
const Ioss::SideBlock *sd_blk, int64_t
id, int64_t side_count,
194 void *fconnect,
bool map_ids)
const;
195 int64_t get_side_distributions(
const Ioss::SideBlock *sd_blk, int64_t
id, int64_t my_side_count,
196 double *dist_fact,
size_t data_size)
const;
199 size_t data_size)
const;
201 size_t data_size)
const;
204 mutable std::unique_ptr<DecompositionDataBase> decomp;
208 nodeGlobalImplicitMap;
210 elemGlobalImplicitMap;
216 mutable std::map<const Ioss::GroupingEntity *, Ioss::Int64Vector> nodesetOwnedNodes;
218 mutable bool metaDataWritten{
false};
219 mutable bool nodeGlobalImplicitMapDefined{
false};
220 mutable bool elemGlobalImplicitMapDefined{
false};
#define IOSS_NODISCARD
Definition Ioss_CodeTypes.h:55
int Ioss_MPI_Comm
Definition Ioss_CodeTypes.h:64
Definition Ioexnl_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 Ioexnl_BaseDatabaseIO.C:93
std::map< std::string, int, std::less<> > VariableNameMap
Definition Ioexnl_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