Classes | |
| struct | DatasetGroupAndName |
| Class to store a pair (hdf_group, dataset_name). More... | |
| struct | DatasetInfo |
| Class to store offset information. More... | |
| struct | WritePartInfo |
| Offset information for the part to write associated with a rank. More... | |
| struct | ItemGroupCollectiveInfo |
| Collective information for an ItemGroup;. More... | |
| struct | DataInfo |
| Stores info about the data to be saved and the associated offset. More... | |
Public Member Functions | |
| VtkHdfV2DataWriter (IMesh *mesh, const ItemGroupCollection &groups, bool is_collective_io) | |
| void | beginWrite (const VariableCollection &vars) override |
| void | endWrite () override |
| void | setMetaData (const String &meta_data) override |
| Sets the metadata information. | |
| void | write (IVariable *var, IData *data) override |
| Writes the data data of the variable var. | |
| void | setTimes (RealConstArrayView times) |
| void | setDirectoryName (const String &dir_name) |
| void | setMaxWriteSize (Int64 v) |
| Public Member Functions inherited from Arcane::TraceAccessor | |
| TraceAccessor (ITraceMng *m) | |
| Constructs an accessor via the trace manager m. | |
| TraceAccessor (const TraceAccessor &rhs) | |
| Copy constructor. | |
| TraceAccessor & | operator= (const TraceAccessor &rhs) |
| Copy assignment operator. | |
| virtual | ~TraceAccessor () |
| Frees resources. | |
| ITraceMng * | traceMng () const |
| Trace manager. | |
| TraceMessage | info () const |
| Flow for an information message. | |
| TraceMessage | pinfo () const |
| Flow for a parallel information message. | |
| TraceMessage | info (char category) const |
| Flow for an information message of a given category. | |
| TraceMessage | pinfo (char category) const |
| Flow for a parallel information message of a given category. | |
| TraceMessage | info (bool v) const |
| Flow for an information message. | |
| TraceMessage | warning () const |
| Flow for a warning message. | |
| TraceMessage | pwarning () const |
| TraceMessage | error () const |
| Flow for an error message. | |
| TraceMessage | perror () const |
| TraceMessage | log () const |
| Flow for a log message. | |
| TraceMessage | plog () const |
| Flow for a log message. | |
| TraceMessage | logdate () const |
| Flow for a log message preceded by the date. | |
| TraceMessage | fatal () const |
| Flow for a fatal error message. | |
| TraceMessage | pfatal () const |
| Flow for a parallel fatal error message. | |
| TraceMessageDbg | debug (Trace::eDebugLevel=Trace::Medium) const |
| Flow for a debug message. | |
| Trace::eDebugLevel | configDbgLevel () const |
| Debug level of the configuration file. | |
| TraceMessage | info (Int32 verbose_level) const |
| Flow for an information message of a given level. | |
| TraceMessage | linfo () const |
| Flow for an information message with the local information level of this instance. | |
| TraceMessage | linfo (Int32 relative_level) const |
| Flow for an information message with the local information level of this instance. | |
| void | fatalMessage (const StandaloneTraceMessage &o) const |
| Public Member Functions inherited from Arcane::IDataWriter | |
| virtual | ~IDataWriter ()=default |
| Frees resources. | |
Private Member Functions | |
| void | _addInt64ArrayAttribute (Hid &hid, const char *name, Span< const Int64 > values) |
| void | _addStringAttribute (Hid &hid, const char *name, const String &value) |
| template<typename DataType> | |
| void | _writeDataSet1D (const DataInfo &data_info, GatherGroupInfo *gather_info, Span< const DataType > values) |
| template<typename DataType> | |
| void | _writeDataSet1DUsingCollectiveIO (const DataInfo &data_info, GatherGroupInfo *gather_info, Span< const DataType > values) |
| template<typename DataType> | |
| void | _writeDataSet1DCollective (const DataInfo &data_info, GatherGroupInfo *gather_info, Span< const DataType > values) |
| template<typename DataType> | |
| void | _writeDataSet2D (const DataInfo &data_info, GatherGroupInfo *gather_info, Span2< const DataType > values) |
| template<typename DataType> | |
| void | _writeDataSet2DUsingCollectiveIO (const DataInfo &data_info, GatherGroupInfo *gather_info, Span2< const DataType > values) |
| template<typename DataType> | |
| void | _writeDataSet2DCollective (const DataInfo &data_info, GatherGroupInfo *gather_info, Span2< const DataType > values) |
| template<typename DataType> | |
| void | _writeBasicTypeDataset (const DataInfo &data_info, GatherGroupInfo *gather_info, IData *data) |
| void | _writeReal3Dataset (const DataInfo &data_info, GatherGroupInfo *gather_info, IData *data) |
| void | _writeReal2Dataset (const DataInfo &data_info, GatherGroupInfo *gather_info, IData *data) |
| String | _getFileName () |
| template<typename DataType> | |
| void | _writeDataSetGeneric (const DataInfo &data_info, GatherGroupInfo *gather_info, Int32 nb_dim, Int64 dim1_size, Int64 dim2_size, const DataType *values_data, bool is_collective) |
| void | _writeDataSetGeneric (const DataInfo &data_info, GatherGroupInfo *gather_info, Int32 nb_dim, Int64 dim1_size, Int64 dim2_size, ConstMemoryView values_data, const hid_t hdf_datatype_type, bool is_collective) |
| Writes a 1D or 2D data. | |
| void | _addInt64Attribute (Hid &hid, const char *name, Int64 value) |
| Int64 | _readInt64Attribute (Hid &hid, const char *name) |
| void | _openOrCreateGroups () |
| void | _closeGroups () |
| void | _readAndSetOffset (DatasetInfo &offset_info, Int32 wanted_step) |
| void | _initializeOffsets () |
| void | _initializeItemGroupCollectiveInfos (ItemGroupCollectiveInfo &group_info, GatherGroupInfo &gather_info) |
| WritePartInfo | _computeWritePartInfo (Int64 local_size) |
| Computes the offset of our part and the total number of elements. | |
| void | _writeConstituentsGroups () |
Additional Inherited Members | |
| Protected Member Functions inherited from Arcane::TraceAccessor | |
| void | _setLocalVerboseLevel (Int32 v) |
| Int32 | _localVerboseLevel () const |
Definition at line 89 of file VtkHdfV2PostProcessor.cc.
| Arcane::VtkHdfV2DataWriter::VtkHdfV2DataWriter | ( | IMesh * | mesh, |
| const ItemGroupCollection & | groups, | ||
| bool | is_collective_io ) |
Definition at line 390 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1172 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1190 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1226 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1286 of file VtkHdfV2PostProcessor.cc.
|
private |
Computes the offset of our part and the total number of elements.
Definition at line 815 of file VtkHdfV2PostProcessor.cc.
References Arcane::IParallelMng::allGather(), Arcane::IParallelMng::commRank(), Arcane::IParallelMng::commSize(), and m_mesh.
Referenced by _writeDataSetGeneric().
|
inlineprivate |
Definition at line 363 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 846 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1443 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1270 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1426 of file VtkHdfV2PostProcessor.cc.
Definition at line 1209 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1371 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 781 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1076 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1094 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1085 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1124 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1142 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1133 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1063 of file VtkHdfV2PostProcessor.cc.
|
private |
Writes a 1D or 2D data.
For each time added, the data is written at the end of previous values unless rolling back, in which case the offset is in data_info.
Definition at line 881 of file VtkHdfV2PostProcessor.cc.
References _computeWritePartInfo(), ARCANE_CHECK_POINTER, ARCANE_THROW, Arcane::Hdf5Utils::HProperty::createDatasetTransfertCollectiveMPIIO(), Arcane::Hdf5Utils::HProperty::createDatasetTransfertIndependentMPIIO(), Arcane::ConstMemoryView::data(), Arcane::ConstMemoryView::datatypeSize(), Arcane::Hdf5Utils::HInit::hasParallelHdf5(), Arcane::TraceAccessor::info(), Arcane::String::localstr(), m_max_write_size, Arcane::math::min(), Arcane::GatherGroupInfo::nbWriterGlobal(), and Arcane::VtkHdfV2DataWriter::DatasetInfo::offset().
|
private |
Definition at line 1404 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 1382 of file VtkHdfV2PostProcessor.cc.
|
overridevirtual |
Implements Arcane::IDataWriter.
Definition at line 406 of file VtkHdfV2PostProcessor.cc.
|
overridevirtual |
Implements Arcane::IDataWriter.
Definition at line 1246 of file VtkHdfV2PostProcessor.cc.
|
inline |
Definition at line 258 of file VtkHdfV2PostProcessor.cc.
|
inline |
Definition at line 259 of file VtkHdfV2PostProcessor.cc.
|
overridevirtual |
Sets the metadata information.
Implements Arcane::IDataWriter.
Definition at line 1301 of file VtkHdfV2PostProcessor.cc.
|
inline |
Definition at line 257 of file VtkHdfV2PostProcessor.cc.
Writes the data data of the variable var.
Implements Arcane::IDataWriter.
Definition at line 1310 of file VtkHdfV2PostProcessor.cc.
References ARCANE_CHECK_POINTER, ARCANE_FATAL, Arcane::IVariable::dataType(), Arcane::IVariable::dimension(), Arcane::DT_Int32, Arcane::DT_Int64, Arcane::DT_Real, Arcane::DT_Real2, Arcane::DT_Real3, Arcane::IK_Cell, Arcane::IK_Node, Arcane::TraceAccessor::info(), Arcane::IVariable::isPartial(), Arcane::IVariable::itemKind(), Arcane::IVariable::name(), and Arcane::TraceAccessor::warning().
|
private |
Definition at line 329 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 325 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 330 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 326 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 285 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 290 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 310 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 312 of file VtkHdfV2PostProcessor.cc.
|
private |
Output directory.
Definition at line 279 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 313 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 315 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 291 of file VtkHdfV2PostProcessor.cc.
|
private |
HDF file identifier.
Definition at line 282 of file VtkHdfV2PostProcessor.cc.
|
private |
Current HDF filename.
Definition at line 276 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 331 of file VtkHdfV2PostProcessor.cc.
|
private |
List of groups to save.
Definition at line 270 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 294 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 295 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 293 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 296 of file VtkHdfV2PostProcessor.cc.
|
private |
Associated material manager (may be null).
Definition at line 267 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 327 of file VtkHdfV2PostProcessor.cc.
|
private |
Maximum size (in kilobytes) for a write operation.
If the write exceeds this size, it is split into multiple writes. This may be necessary with MPI-IO for large volumes.
Definition at line 339 of file VtkHdfV2PostProcessor.cc.
Referenced by _writeDataSetGeneric().
|
private |
Associated mesh.
Definition at line 264 of file VtkHdfV2PostProcessor.cc.
Referenced by _computeWritePartInfo().
|
private |
Definition at line 286 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 316 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 317 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 318 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 321 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 319 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 289 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 311 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 314 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 323 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 288 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 320 of file VtkHdfV2PostProcessor.cc.
|
private |
List of times.
Definition at line 273 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 284 of file VtkHdfV2PostProcessor.cc.
|
private |
True if the datasets related to the polyhedron cells must be written for the current time step.
This is true either when the mesh contains at least one polyhedron cell or when these datasets have already been created for a previous time step.
Definition at line 306 of file VtkHdfV2PostProcessor.cc.
|
private |
Definition at line 308 of file VtkHdfV2PostProcessor.cc.