Skip to content

Commit cc00505

Browse files
committed
[arcane:materials] Change hash storage variable type (hashes are always Int64 now)
1 parent d9989a4 commit cc00505

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

arcane/src/arcane/materials/MeshMaterialSynchronizer.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ checkMaterialsInCells(Integer max_print)
9898
_checkComponents(indexes, m_material_mng->materialsAsComponents(), max_print);
9999
_checkComponents(indexes, m_material_mng->environmentsAsComponents(), max_print);
100100

101-
_checkComponentsInGhostCells(indexes, max_print);
101+
VariableCellInt64 hashes(VariableBuildInfo(mesh, "ArcaneMaterialCheckHashes"));
102+
_checkComponentsInGhostCells(hashes, max_print);
102103
}
103104

104105
/*---------------------------------------------------------------------------*/
@@ -149,7 +150,7 @@ _checkComponents(VariableCellInt32& indexes,
149150
}
150151

151152
void MeshMaterialSynchronizer::
152-
_checkComponentsInGhostCells(VariableCellInt32& hashes, Integer max_print)
153+
_checkComponentsInGhostCells(VariableCellInt64& hashes, Integer max_print)
153154
{
154155
IMesh* mesh = m_material_mng->mesh();
155156
Integer nb_error = 0;
@@ -158,7 +159,7 @@ _checkComponentsInGhostCells(VariableCellInt32& hashes, Integer max_print)
158159
AllEnvCell all_env_cell = *iallenvcell;
159160
Cell cell = all_env_cell.globalCell();
160161

161-
IntegerHashSuiteT<Int32> hash_suite;
162+
IntegerHashSuite hash_suite;
162163

163164
Int32 nb_env = all_env_cell.nbEnvironment();
164165
hash_suite.add(nb_env);
@@ -186,7 +187,7 @@ _checkComponentsInGhostCells(VariableCellInt32& hashes, Integer max_print)
186187
if (cell.isOwn())
187188
continue;
188189

189-
IntegerHashSuiteT<Int32> hash_suite;
190+
IntegerHashSuite hash_suite;
190191

191192
Int32 nb_env = all_env_cell.nbEnvironment();
192193
hash_suite.add(nb_env);

arcane/src/arcane/materials/internal/MeshMaterialSynchronizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class MeshMaterialSynchronizer
7777
void _checkComponents(VariableCellInt32& indexes,
7878
ConstArrayView<IMeshComponent*> components,
7979
Integer max_print);
80-
void _checkComponentsInGhostCells(VariableCellInt32& hashes,
80+
void _checkComponentsInGhostCells(VariableCellInt64& hashes,
8181
Integer max_print);
8282
};
8383

0 commit comments

Comments
 (0)