Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::VtkHdfDataWriter Class Reference
Inheritance diagram for Arcane::VtkHdfDataWriter:
Collaboration diagram for Arcane::VtkHdfDataWriter:

Public Member Functions

 VtkHdfDataWriter (IMesh *mesh, ItemGroupCollection groups)
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)
Public Member Functions inherited from Arcane::TraceAccessor
 TraceAccessor (ITraceMng *m)
 Constructs an accessor via the trace manager m.
 TraceAccessor (const TraceAccessor &rhs)
 Copy constructor.
TraceAccessoroperator= (const TraceAccessor &rhs)
 Copy assignment operator.
virtual ~TraceAccessor ()
 Frees resources.
ITraceMngtraceMng () 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 (HGroup &group, const String &name, Span< const DataType > values)
template<typename DataType>
void _writeDataSet1DCollective (HGroup &group, const String &name, Span< const DataType > values)
template<typename DataType>
void _writeDataSet2D (HGroup &group, const String &name, Span2< const DataType > values)
template<typename DataType>
void _writeDataSet2DCollective (HGroup &group, const String &name, Span2< const DataType > values)
template<typename DataType>
void _writeBasicTypeDataset (HGroup &group, IVariable *var, IData *data)
void _writeReal3Dataset (HGroup &group, IVariable *var, IData *data)
void _writeReal2Dataset (HGroup &group, IVariable *var, IData *data)
template<typename DataType>
void _writeDataSet1DCollectiveWithCollectiveIO (HGroup &group, const String &name, Span< const DataType > values)
template<typename DataType>
void _writeDataSet2DCollectiveWithCollectiveIO (HGroup &group, const String &name, Span2< const DataType > values)
String _getFileNameForTimeIndex (Int32 index)

Private Attributes

IMeshm_mesh
ItemGroupCollection m_groups
 List of groups to save.
UniqueArray< Realm_times
 List of times.
String m_full_filename
 Current HDF file name.
String m_directory_name
 Output directory.
HFile m_file_id
 HDF file identifier.
HGroup m_cell_data_group
HGroup m_node_data_group
bool m_is_parallel = false
bool m_is_master_io = false
bool m_is_collective_io = false

Additional Inherited Members

Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const

Detailed Description

Definition at line 78 of file VtkHdfPostProcessor.cc.

Constructor & Destructor Documentation

◆ VtkHdfDataWriter()

Arcane::VtkHdfDataWriter::VtkHdfDataWriter ( IMesh * mesh,
ItemGroupCollection groups )

Definition at line 161 of file VtkHdfPostProcessor.cc.

Member Function Documentation

◆ _addInt64ArrayAttribute()

void Arcane::VtkHdfDataWriter::_addInt64ArrayAttribute ( Hid & hid,
const char * name,
Span< const Int64 > values )
private

Definition at line 578 of file VtkHdfPostProcessor.cc.

◆ _addStringAttribute()

void Arcane::VtkHdfDataWriter::_addStringAttribute ( Hid & hid,
const char * name,
const String & value )
private

Definition at line 596 of file VtkHdfPostProcessor.cc.

◆ _getFileNameForTimeIndex()

String Arcane::VtkHdfDataWriter::_getFileNameForTimeIndex ( Int32 index)
inlineprivate

Definition at line 146 of file VtkHdfPostProcessor.cc.

◆ _writeBasicTypeDataset()

template<typename DataType>
void Arcane::VtkHdfDataWriter::_writeBasicTypeDataset ( HGroup & group,
IVariable * var,
IData * data )
private

Definition at line 725 of file VtkHdfPostProcessor.cc.

◆ _writeDataSet1D()

template<typename DataType>
void Arcane::VtkHdfDataWriter::_writeDataSet1D ( HGroup & group,
const String & name,
Span< const DataType > values )
private

Definition at line 489 of file VtkHdfPostProcessor.cc.

◆ _writeDataSet1DCollective()

template<typename DataType>
void Arcane::VtkHdfDataWriter::_writeDataSet1DCollective ( HGroup & group,
const String & name,
Span< const DataType > values )
private

Definition at line 507 of file VtkHdfPostProcessor.cc.

◆ _writeDataSet1DCollectiveWithCollectiveIO()

template<typename DataType>
void Arcane::VtkHdfDataWriter::_writeDataSet1DCollectiveWithCollectiveIO ( HGroup & group,
const String & name,
Span< const DataType > values )
private

Definition at line 383 of file VtkHdfPostProcessor.cc.

◆ _writeDataSet2D()

template<typename DataType>
void Arcane::VtkHdfDataWriter::_writeDataSet2D ( HGroup & group,
const String & name,
Span2< const DataType > values )
private

Definition at line 528 of file VtkHdfPostProcessor.cc.

◆ _writeDataSet2DCollective()

template<typename DataType>
void Arcane::VtkHdfDataWriter::_writeDataSet2DCollective ( HGroup & group,
const String & name,
Span2< const DataType > values )
private

Definition at line 547 of file VtkHdfPostProcessor.cc.

◆ _writeDataSet2DCollectiveWithCollectiveIO()

template<typename DataType>
void Arcane::VtkHdfDataWriter::_writeDataSet2DCollectiveWithCollectiveIO ( HGroup & group,
const String & name,
Span2< const DataType > values )
private

Definition at line 434 of file VtkHdfPostProcessor.cc.

◆ _writeReal2Dataset()

void Arcane::VtkHdfDataWriter::_writeReal2Dataset ( HGroup & group,
IVariable * var,
IData * data )
private

Definition at line 758 of file VtkHdfPostProcessor.cc.

◆ _writeReal3Dataset()

void Arcane::VtkHdfDataWriter::_writeReal3Dataset ( HGroup & group,
IVariable * var,
IData * data )
private

Definition at line 736 of file VtkHdfPostProcessor.cc.

◆ beginWrite()

void Arcane::VtkHdfDataWriter::beginWrite ( const VariableCollection & vars)
overridevirtual

Implements Arcane::IDataWriter.

Definition at line 172 of file VtkHdfPostProcessor.cc.

◆ endWrite()

void Arcane::VtkHdfDataWriter::endWrite ( )
overridevirtual

Implements Arcane::IDataWriter.

Definition at line 616 of file VtkHdfPostProcessor.cc.

◆ setDirectoryName()

void Arcane::VtkHdfDataWriter::setDirectoryName ( const String & dir_name)
inline

Definition at line 96 of file VtkHdfPostProcessor.cc.

◆ setMetaData()

void Arcane::VtkHdfDataWriter::setMetaData ( const String & meta_data)
overridevirtual

Sets the metadata information.

Implements Arcane::IDataWriter.

Definition at line 668 of file VtkHdfPostProcessor.cc.

◆ setTimes()

void Arcane::VtkHdfDataWriter::setTimes ( RealConstArrayView times)
inline

Definition at line 95 of file VtkHdfPostProcessor.cc.

◆ write()

void Arcane::VtkHdfDataWriter::write ( IVariable * var,
IData * data )
overridevirtual

Writes the data data of the variable var.

Implements Arcane::IDataWriter.

Definition at line 677 of file VtkHdfPostProcessor.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::itemKind(), Arcane::IVariable::name(), and Arcane::TraceAccessor::warning().

Here is the call graph for this function:

Member Data Documentation

◆ m_cell_data_group

HGroup Arcane::VtkHdfDataWriter::m_cell_data_group
private

Definition at line 117 of file VtkHdfPostProcessor.cc.

◆ m_directory_name

String Arcane::VtkHdfDataWriter::m_directory_name
private

Output directory.

Definition at line 112 of file VtkHdfPostProcessor.cc.

◆ m_file_id

HFile Arcane::VtkHdfDataWriter::m_file_id
private

HDF file identifier.

Definition at line 115 of file VtkHdfPostProcessor.cc.

◆ m_full_filename

String Arcane::VtkHdfDataWriter::m_full_filename
private

Current HDF file name.

Definition at line 109 of file VtkHdfPostProcessor.cc.

◆ m_groups

ItemGroupCollection Arcane::VtkHdfDataWriter::m_groups
private

List of groups to save.

Definition at line 103 of file VtkHdfPostProcessor.cc.

◆ m_is_collective_io

bool Arcane::VtkHdfDataWriter::m_is_collective_io = false
private

Definition at line 121 of file VtkHdfPostProcessor.cc.

◆ m_is_master_io

bool Arcane::VtkHdfDataWriter::m_is_master_io = false
private

Definition at line 120 of file VtkHdfPostProcessor.cc.

◆ m_is_parallel

bool Arcane::VtkHdfDataWriter::m_is_parallel = false
private

Definition at line 119 of file VtkHdfPostProcessor.cc.

◆ m_mesh

IMesh* Arcane::VtkHdfDataWriter::m_mesh
private

Definition at line 100 of file VtkHdfPostProcessor.cc.

◆ m_node_data_group

HGroup Arcane::VtkHdfDataWriter::m_node_data_group
private

Definition at line 118 of file VtkHdfPostProcessor.cc.

◆ m_times

UniqueArray<Real> Arcane::VtkHdfDataWriter::m_times
private

List of times.

Definition at line 106 of file VtkHdfPostProcessor.cc.


The documentation for this class was generated from the following file: