54 DiffInfo(
const DataType& current,
const DataType& ref,
const DataType& diff,
55 Item item, Integer sub_index)
59 , m_sub_index(sub_index)
60 , m_is_own(item.
isOwn())
64 DiffInfo(
const DataType& current,
const DataType& ref,
const DataType& diff,
65 Int32 index, Integer sub_index)
69 , m_sub_index(sub_index)
72 , m_unique_id(NULL_ITEM_UNIQUE_ID)
77 DataType m_current = {};
80 Integer m_sub_index = NULL_ITEM_ID;
81 bool m_is_own =
false;
82 Int32 m_local_id = NULL_ITEM_LOCAL_ID;
83 Int64 m_unique_id = NULL_ITEM_UNIQUE_ID;
87 bool operator<(
const DiffInfo& t2)
const
89 return VarDataTypeTraits::normeMax(m_diff) > VarDataTypeTraits::normeMax(t2.m_diff);
97 ARCANE_DEPRECATED_REASON(
"Y2023: This method is internal to Arcane")
103 ARCANE_DEPRECATED_REASON(
"Y2023: This method is internal to Arcane")
110 void _sortAndDump(IVariable* var, IParallelMng* pm,
int max_print)
113 dump(var, pm, max_print);
116 void dump(IVariable* var, IParallelMng* pm,
int max_print)
118 DiffPrinter::dump(m_diffs_info, var, pm, max_print);
122 DiffPrinter::sort(m_diffs_info);
131 ARCANE_CORE_EXPORT
static void dump(ConstArrayView<DiffInfo> diff_infos,
132 IVariable* var, IParallelMng* pm,
int max_print);
133 ARCANE_CORE_EXPORT
static void sort(ArrayView<DiffInfo> diff_infos);