14#include "arcane/core/materials/ComponentItemInternal.h"
16#include "arcane/utils/FixedArray.h"
17#include "arcane/utils/FatalErrorException.h"
55ComponentItemSharedInfo ComponentItemSharedInfo::null_shared_info;
56ComponentItemSharedInfo* ComponentItemSharedInfo::null_shared_info_pointer = &ComponentItemSharedInfo::null_shared_info;
59 std::once_flag component_set_null_instance_once_flag;
65void ComponentItemSharedInfo::
68 auto init_func = []() {
69 ComponentItemSharedInfo* x = null_shared_info_pointer;
70 NullComponentItemSharedInfoContainer& c = global_null_component_item_shared_info_container;
72 x->m_storage_size = 0;
73 x->m_first_sub_constituent_item_id_data = c.m_first_sub_constituent_item_id_list.data() + 1;
74 x->m_super_component_item_local_id_data = c.m_super_component_item_local_id_list.data() + 1;
75 x->m_component_id_data = c.m_component_id_list.data() + 1;
77 x->m_nb_sub_constituent_item_data = c.m_nb_sub_constituent_item_list.data() + 1;
78 x->m_global_item_local_id_data = c.m_global_item_local_id_list.data() + 1;
79 x->m_var_index_data = c.m_var_index_list.data() + 1;
82 std::call_once(component_set_null_instance_once_flag, init_func);
98void ConstituentItemLocalIdListView::
99_checkCoherency()
const
101 if (!m_component_shared_info)
#define ARCANE_FATAL(...)
Macro throwing a FatalErrorException.
Represents an index on material and environment variables.
Container for the null entity.
Always enables tracing in Arcane parts concerning materials.