Skip to content

Commit fb472ca

Browse files
Merge pull request #1193 from arcaneframework/dev/gg-use-componentitembase-instead-of-componentiteminternal
Replace some usage of 'ComponentItemInternal*' with 'ComponentItemBase'
2 parents 6d2b9fb + 5039f68 commit fb472ca

13 files changed

+318
-38
lines changed

arcane/src/arcane/core/materials/ComponentItemInternal.cc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "arcane/core/materials/ComponentItemInternal.h"
1515

1616
#include "arcane/utils/BadCastException.h"
17+
#include "arcane/utils/FatalErrorException.h"
1718

1819
/*---------------------------------------------------------------------------*/
1920
/*---------------------------------------------------------------------------*/
@@ -48,6 +49,27 @@ operator<<(std::ostream& o,const ComponentItemInternalLocalId& id)
4849
/*---------------------------------------------------------------------------*/
4950
/*---------------------------------------------------------------------------*/
5051

52+
void ConstituentItemLocalIdListView::
53+
_checkCoherency() const
54+
{
55+
Int32 nb_item = m_items_internal.size();
56+
if (!m_component_shared_info)
57+
ARCANE_FATAL("Null ComponentItemSharedInfo nb_item={0}", nb_item);
58+
return;
59+
}
60+
61+
/*---------------------------------------------------------------------------*/
62+
/*---------------------------------------------------------------------------*/
63+
64+
void ConstituentItemLocalIdListView::
65+
_throwIncoherentSharedInfo(Int32 index) const
66+
{
67+
ARCANE_FATAL("Incoherent ComponentItemSharedInfo for item index={0}", index);
68+
}
69+
70+
/*---------------------------------------------------------------------------*/
71+
/*---------------------------------------------------------------------------*/
72+
5173
} // End namespace Arcane::Materials
5274

5375
/*---------------------------------------------------------------------------*/

0 commit comments

Comments
 (0)