Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::LimaCutInfosReader Class Reference

Construction of a 3D mesh. More...

#include <arcane/lima/LimaCutInfosReader.h>

Inheritance diagram for Arcane::LimaCutInfosReader:
Collaboration diagram for Arcane::LimaCutInfosReader:

Public Member Functions

 LimaCutInfosReader (IParallelMng *parallel_mng)
void readItemsUniqueId (Int64ArrayView nodes_id, Int64ArrayView cells_id, const String &dir_name)
 Constructs the internal mesh structures.
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

Private Member Functions

void _readUniqueIndex (Int64ArrayView nodes_id, Int64ArrayView cells_id, const String &dir_name)
 Retrieval of unique entity indices.
void _readUniqueIndexFromXml (Int64ArrayView nodes_id, Int64ArrayView cells_id, XmlNode root_element, Int32 rank)
 Reading unique indices from an XML correspondence file.

Private Attributes

IParallelMngm_parallel_mng

Additional Inherited Members

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

Detailed Description

Construction of a 3D mesh.

Definition at line 37 of file src/arcane/lima/LimaCutInfosReader.h.

Constructor & Destructor Documentation

◆ LimaCutInfosReader()

Arcane::LimaCutInfosReader::LimaCutInfosReader ( IParallelMng * parallel_mng)

Definition at line 49 of file LimaCutInfosReader.cc.

◆ ~LimaCutInfosReader()

virtual Arcane::LimaCutInfosReader::~LimaCutInfosReader ( )
inlinevirtual

Definition at line 43 of file src/arcane/lima/LimaCutInfosReader.h.

Member Function Documentation

◆ _readUniqueIndex()

void Arcane::LimaCutInfosReader::_readUniqueIndex ( Int64ArrayView nodes_id,
Int64ArrayView cells_id,
const String & dir_name )
private

Retrieval of unique entity indices.

Retrieves the unique number for each entity across all domains. The values are stored in nodes_id for the nodes and cells_id for the cells. Both arrays must already have been allocated to the correct size.

The operation is as follows:

  • processor 0 reads the correspondence file and retrieves the information relevant to it.
  • for each other processor, processor 0 retrieves the number of nodes and cells to read, reads the values from the correspondence file, and transfers them to the processor.

Definition at line 108 of file LimaCutInfosReader.cc.

References _readUniqueIndexFromXml(), ARCANE_FATAL, Arcane::IParallelMng::barrier(), Arcane::IParallelMng::commRank(), Arcane::IParallelMng::commSize(), Arcane::String::empty(), Arcane::PtrT< T >::get(), Arcane::TraceAccessor::info(), Arcane::IParallelMng::ioMng(), Arcane::IParallelMng::isParallel(), Arcane::Timer::lastActivationTime(), Arcane::IIOMng::parseXmlFile(), Arcane::IParallelMng::recv(), Arcane::Array< T >::resize(), Arcane::ArrayView< T >::size(), and Arcane::Timer::TimerReal.

Referenced by readItemsUniqueId().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _readUniqueIndexFromXml()

void Arcane::LimaCutInfosReader::_readUniqueIndexFromXml ( Int64ArrayView nodes_id,
Int64ArrayView cells_id,
XmlNode root_element,
Int32 comm_rank )
private

Reading unique indices from an XML correspondence file.

Parameters
nodes_idnode indices
cells_idcell indices
root_elementroot element of the XML tree.
comm_ranksubdomain number to read.

Definition at line 195 of file LimaCutInfosReader.cc.

References ARCANE_FATAL, Arcane::XmlNode::child(), Arcane::XmlNode::children(), Arcane::String::localstr(), Arcane::String::null(), Arcane::XmlNode::null(), Arcane::ArrayView< T >::size(), and Arcane::XmlNode::value().

Referenced by _readUniqueIndex().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readItemsUniqueId()

void Arcane::LimaCutInfosReader::readItemsUniqueId ( Int64ArrayView nodes_id,
Int64ArrayView cells_id,
const String & dir_name )

Constructs the internal mesh structures.

Definition at line 85 of file LimaCutInfosReader.cc.

References _readUniqueIndex().

Here is the call graph for this function:

Member Data Documentation

◆ m_parallel_mng

IParallelMng* Arcane::LimaCutInfosReader::m_parallel_mng
private

Definition at line 52 of file src/arcane/lima/LimaCutInfosReader.h.


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