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

Data of a part (pure or partial) of a constituent. More...

#include <arcane/materials/internal/MeshComponentPartData.h>

Inheritance diagram for Arcane::Materials::MeshComponentPartData:
Collaboration diagram for Arcane::Materials::MeshComponentPartData:

Public Member Functions

 MeshComponentPartData (IMeshComponent *component, const String &debug_name)
Int32 impureVarIdx () const
IMeshComponentcomponent () const
void checkValid ()
ComponentPurePartItemVectorView pureView ()
 View of the pure part.
ComponentImpurePartItemVectorView impureView ()
 View of the impure part.
ComponentPartItemVectorView partView (eMatPart part)
 View of the part.
void setRecomputeFunctor (IFunctor *func)
void setNeedRecompute ()
void _setConstituentListView (const ConstituentItemLocalIdListView &v)
void _setFromMatVarIndexes (ConstArrayView< MatVarIndex > matvar_indexes, RunQueue &queue)
void _setFromMatVarIndexes (ConstArrayView< MatVarIndex > globals, ConstArrayView< MatVarIndex > multiples)
void _notifyValueIndexesChanged (RunQueue *queue)
 Notification of changes to m_values_indexes.
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 _checkNeedRecompute ()

Private Attributes

IMeshComponentm_component = nullptr
 Constituent manager.
Int32 m_impure_var_idx = -1
 Index of the constituent for accessing partial values.
FixedArray< UniqueArray< Int32 >, 2 > m_value_indexes
 List of valueIndex() for each part.
FixedArray< UniqueArray< Int32 >, 2 > m_items_internal_indexes
 List of indices in m_items_internal for each material cell.
ConstituentItemLocalIdListView m_constituent_list_view
 List of ComponentItems for this constituent.
IFunctorm_compute_functor = nullptr
bool m_is_need_recompute = false

Additional Inherited Members

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

Detailed Description

Data of a part (pure or partial) of a constituent.

This class is internal to Arcane.

Definition at line 39 of file internal/MeshComponentPartData.h.

Constructor & Destructor Documentation

◆ MeshComponentPartData()

Arcane::Materials::MeshComponentPartData::MeshComponentPartData ( IMeshComponent * component,
const String & debug_name )

Definition at line 41 of file MeshComponentPartData.cc.

Member Function Documentation

◆ _checkNeedRecompute()

void Arcane::Materials::MeshComponentPartData::_checkNeedRecompute ( )
private

Definition at line 239 of file MeshComponentPartData.cc.

◆ _notifyValueIndexesChanged()

void Arcane::Materials::MeshComponentPartData::_notifyValueIndexesChanged ( RunQueue * queue)

Notification of changes to m_values_indexes.

Applies padding for vectorization on valueIndex() if necessary. queue may be null.

Definition at line 75 of file MeshComponentPartData.cc.

References m_value_indexes, Arcane::Accelerator::makeCommand(), and RUNCOMMAND_LOOP1.

Here is the call graph for this function:

◆ _setConstituentListView()

void Arcane::Materials::MeshComponentPartData::_setConstituentListView ( const ConstituentItemLocalIdListView & v)

Definition at line 200 of file MeshComponentPartData.cc.

◆ _setFromMatVarIndexes() [1/2]

void Arcane::Materials::MeshComponentPartData::_setFromMatVarIndexes ( ConstArrayView< MatVarIndex > globals,
ConstArrayView< MatVarIndex > multiples )

Definition at line 171 of file MeshComponentPartData.cc.

◆ _setFromMatVarIndexes() [2/2]

void Arcane::Materials::MeshComponentPartData::_setFromMatVarIndexes ( ConstArrayView< MatVarIndex > matvar_indexes,
RunQueue & queue )

Definition at line 106 of file MeshComponentPartData.cc.

◆ checkValid()

void Arcane::Materials::MeshComponentPartData::checkValid ( )

Definition at line 209 of file MeshComponentPartData.cc.

◆ component()

IMeshComponent * Arcane::Materials::MeshComponentPartData::component ( ) const
inline

Definition at line 50 of file internal/MeshComponentPartData.h.

◆ impureVarIdx()

Int32 Arcane::Materials::MeshComponentPartData::impureVarIdx ( ) const
inline

Definition at line 48 of file internal/MeshComponentPartData.h.

◆ impureView()

ComponentImpurePartItemVectorView Arcane::Materials::MeshComponentPartData::impureView ( )

View of the impure part.

Definition at line 282 of file MeshComponentPartData.cc.

References m_component, m_constituent_list_view, m_items_internal_indexes, and m_value_indexes.

◆ partView()

ComponentPartItemVectorView Arcane::Materials::MeshComponentPartData::partView ( eMatPart part)

View of the part.

Definition at line 253 of file MeshComponentPartData.cc.

References m_component, m_constituent_list_view, m_items_internal_indexes, and m_value_indexes.

◆ pureView()

ComponentPurePartItemVectorView Arcane::Materials::MeshComponentPartData::pureView ( )

View of the pure part.

Definition at line 268 of file MeshComponentPartData.cc.

References m_component, m_constituent_list_view, m_items_internal_indexes, and m_value_indexes.

◆ setNeedRecompute()

void Arcane::Materials::MeshComponentPartData::setNeedRecompute ( )
inline

Definition at line 72 of file internal/MeshComponentPartData.h.

◆ setRecomputeFunctor()

void Arcane::Materials::MeshComponentPartData::setRecomputeFunctor ( IFunctor * func)
inline

Definition at line 70 of file internal/MeshComponentPartData.h.

Member Data Documentation

◆ m_component

IMeshComponent* Arcane::Materials::MeshComponentPartData::m_component = nullptr
private

Constituent manager.

Definition at line 84 of file internal/MeshComponentPartData.h.

Referenced by impureView(), partView(), and pureView().

◆ m_compute_functor

IFunctor* Arcane::Materials::MeshComponentPartData::m_compute_functor = nullptr
private

Definition at line 98 of file internal/MeshComponentPartData.h.

◆ m_constituent_list_view

ConstituentItemLocalIdListView Arcane::Materials::MeshComponentPartData::m_constituent_list_view
private

List of ComponentItems for this constituent.

Definition at line 96 of file internal/MeshComponentPartData.h.

Referenced by impureView(), partView(), and pureView().

◆ m_impure_var_idx

Int32 Arcane::Materials::MeshComponentPartData::m_impure_var_idx = -1
private

Index of the constituent for accessing partial values.

Definition at line 87 of file internal/MeshComponentPartData.h.

◆ m_is_need_recompute

bool Arcane::Materials::MeshComponentPartData::m_is_need_recompute = false
private

Definition at line 99 of file internal/MeshComponentPartData.h.

◆ m_items_internal_indexes

FixedArray<UniqueArray<Int32>, 2> Arcane::Materials::MeshComponentPartData::m_items_internal_indexes
private

List of indices in m_items_internal for each material cell.

Definition at line 93 of file internal/MeshComponentPartData.h.

Referenced by impureView(), partView(), and pureView().

◆ m_value_indexes

FixedArray<UniqueArray<Int32>, 2> Arcane::Materials::MeshComponentPartData::m_value_indexes
private

List of valueIndex() for each part.

Definition at line 90 of file internal/MeshComponentPartData.h.

Referenced by _notifyValueIndexesChanged(), impureView(), partView(), and pureView().


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