@@ -71,6 +71,7 @@ initialize()
71
71
}
72
72
String data_compressor_name;
73
73
String hash_algorithm_name;
74
+ String comparison_hash_algorithm_name;
74
75
if (has_db_file) {
75
76
UniqueArray<Byte > bytes;
76
77
pm->ioMng ()->collectiveRead (db_filename, bytes, false );
@@ -82,10 +83,12 @@ initialize()
82
83
m_nb_written_part = jv_arcane_db.expectedChild (" NbPart" ).valueAsInt32 ();
83
84
data_compressor_name = jv_arcane_db.child (" DataCompressor" ).value ();
84
85
hash_algorithm_name = jv_arcane_db.child (" HashAlgorithm" ).value ();
86
+ comparison_hash_algorithm_name = jv_arcane_db.child (" ComparisonHashAlgorithm" ).value ();
85
87
info () << " **--** Begin read using database version=" << m_version
86
88
<< " nb_part=" << m_nb_written_part
87
89
<< " compressor=" << data_compressor_name
88
- << " hash_algorithm=" << hash_algorithm_name;
90
+ << " hash_algorithm=" << hash_algorithm_name
91
+ << " comparison_hash_algorithm=" << comparison_hash_algorithm_name;
89
92
}
90
93
else {
91
94
// Ancien format
@@ -120,6 +123,10 @@ initialize()
120
123
Ref<IHashAlgorithm> v = _createHashAlgorithm (m_application, hash_algorithm_name);
121
124
m_forced_rank_to_read_text_reader->setHashAlgorithm (v);
122
125
}
126
+ if (!comparison_hash_algorithm_name.empty ()) {
127
+ Ref<IHashAlgorithm> v = _createHashAlgorithm (m_application, comparison_hash_algorithm_name);
128
+ m_comparison_hash_algorithm = v;
129
+ }
123
130
}
124
131
}
125
132
@@ -130,7 +137,7 @@ void BasicReader::
130
137
_directReadVal (VariableMetaData* varmd, IData* data)
131
138
{
132
139
info (4 ) << " DIRECT READ VAL v=" << varmd->fullName ();
133
-
140
+
134
141
bool is_item_variable = !varmd->itemFamilyName ().null ();
135
142
Int32 nb_rank_to_read = m_nb_rank_to_read;
136
143
// S'il s'agit d'une variable qui n'est pas sur le maillage,
@@ -153,6 +160,8 @@ _directReadVal(VariableMetaData* varmd, IData* data)
153
160
String vname = varmd->fullName ();
154
161
info (4 ) << " TRY TO READ var_full_name=" << vname;
155
162
m_global_readers[i]->readData (vname, written_data[i]);
163
+ if (i==0 && m_comparison_hash_algorithm.get () )
164
+ info (5 ) << " COMPARISON_HASH =" << m_global_readers[i]->comparisonHashValue (vname);
156
165
}
157
166
158
167
if (is_item_variable) {
0 commit comments