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

Mesh file reader in msh format. More...

Inheritance diagram for Arcane::XmfMeshReader:
Collaboration diagram for Arcane::XmfMeshReader:

Public Member Functions

 XmfMeshReader (const ServiceBuildInfo &sbi)
virtual void build ()
 Build-level construction of the service.
bool allowExtension (const String &str)
 Checks if the service supports files with the extension str.
virtual eReturnType readMeshFromFile (IPrimaryMesh *mesh, const XmlNode &mesh_node, const String &file_name, const String &dir_name, bool use_internal_partition)
 Reads a mesh from a file.
ISubDomainsubDomain ()
Public Member Functions inherited from Arcane::AbstractService
 ~AbstractService () override
 Destructor.
IServiceInfoserviceInfo () const override
 Access to service information. See IServiceInfo for details.
IBaseserviceParent () const override
 Access to the base interface of main Arcane objects.
IServiceserviceInterface () override
 Returns the low-level IService interface of the service.
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::IService
virtual ~IService ()
 Releases resources.
Public Member Functions inherited from Arcane::IMeshReader
virtual ~IMeshReader ()=default
 Frees resources.

Private Member Functions

eReturnType _readTopology (XdmfTopology *, XdmfInt64 &, Int32Array &, Int32Array &, Int32Array &, SharedArray< Int32 >)
eReturnType _readMixedTopology (XdmfTopology *, XdmfInt64, Int32Array &, Int32Array &, Int32Array &, SharedArray< Int32 >)

Private Attributes

ISubDomainm_sub_domain

Additional Inherited Members

Public Types inherited from Arcane::IMeshReader
enum  eReturnType { RTOk , RTError , RTIrrelevant }
 Types of return codes for a read or write operation. More...
Protected Member Functions inherited from Arcane::AbstractService
 AbstractService (const ServiceBuildInfo &)
 Constructor from a ServiceBuildInfo.
Protected Member Functions inherited from Arcane::TraceAccessor
void _setLocalVerboseLevel (Int32 v)
Int32 _localVerboseLevel () const
Protected Member Functions inherited from Arcane::IService
 IService ()
 Constructor.

Detailed Description

Mesh file reader in msh format.

Definition at line 77 of file XmfMeshReader.cc.

Constructor & Destructor Documentation

◆ XmfMeshReader()

Arcane::XmfMeshReader::XmfMeshReader ( const ServiceBuildInfo & sbi)

Definition at line 108 of file XmfMeshReader.cc.

Member Function Documentation

◆ _readMixedTopology()

IMeshReader::eReturnType Arcane::XmfMeshReader::_readMixedTopology ( XdmfTopology * Topology,
XdmfInt64 nb_elements,
Int32Array & cells_nb_node,
Int32Array & cells_connectivity,
Int32Array & cells_type,
SharedArray< Int32 > nodesUidArray )
private

Definition at line 125 of file XmfMeshReader.cc.

◆ _readTopology()

IMeshReader::eReturnType Arcane::XmfMeshReader::_readTopology ( XdmfTopology * Topology,
XdmfInt64 & nb_elements,
Int32Array & cells_nb_node,
Int32Array & cells_connectivity,
Int32Array & cells_type,
SharedArray< Int32 > nodesUidArray )
private

Definition at line 259 of file XmfMeshReader.cc.

◆ allowExtension()

bool Arcane::XmfMeshReader::allowExtension ( const String & str)
inlinevirtual

Checks if the service supports files with the extension str.

Implements Arcane::IMeshReader.

Definition at line 88 of file XmfMeshReader.cc.

◆ build()

virtual void Arcane::XmfMeshReader::build ( void )
inlinevirtual

Build-level construction of the service.

This method is called right after the constructor.

Reimplemented from Arcane::AbstractService.

Definition at line 86 of file XmfMeshReader.cc.

◆ readMeshFromFile()

IMeshReader::eReturnType Arcane::XmfMeshReader::readMeshFromFile ( IPrimaryMesh * mesh,
const XmlNode & mesh_element,
const String & file_name,
const String & dir_name,
bool use_internal_partition )
virtual

Reads a mesh from a file.

Reads the geometry of a mesh from the file file_name as well as the corresponding partitioning information and constructs the corresponding mesh in mesh.

If use_internal_partition is true, it means that the partitioning has not yet been done and will be done by Arcane. In this case, only one processor can read the mesh. However, the others must still create all possible groups. This argument is only useful in parallel.

If dir_name is not null, this path serves as the base for reading meshes and partitioning information.

Implements Arcane::IMeshReader.

Definition at line 352 of file XmfMeshReader.cc.

References Arcane::Array< T >::add(), ARCANE_FATAL, Arcane::IParallelMng::commRank(), Arcane::IItemFamily::createGroup(), ENUMERATE_NODE, Arcane::Accelerator::Grid, Arcane::IK_Cell, Arcane::IK_Node, Arcane::TraceAccessor::info(), Arcane::IParallelMng::isParallel(), Arcane::IItemFamily::itemsUniqueIdToLocalId(), Arcane::String::localstr(), Arcane::IItemFamily::name(), Arcane::HashTableMapT< KeyType, ValueType, KeyTraitsType >::nocheckAdd(), Arcane::IMeshReader::RTOk, Arcane::MutableItemBase::setOwner(), Arcane::AbstractArray< T >::size(), Arcane::ConstArrayView< T >::size(), and Arcane::ItemBase::uniqueId().

Here is the call graph for this function:

◆ subDomain()

ISubDomain * Arcane::XmfMeshReader::subDomain ( )
inline

Definition at line 93 of file XmfMeshReader.cc.

Member Data Documentation

◆ m_sub_domain

ISubDomain* Arcane::XmfMeshReader::m_sub_domain
private

Definition at line 97 of file XmfMeshReader.cc.


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