Skip to content

Commit 41398fb

Browse files
[arcane,materials] Utilise l'API accélérateur pour le filtrage des mailles à transformer entre pure et partiel.
1 parent cc8ac16 commit 41398fb

File tree

6 files changed

+168
-57
lines changed

6 files changed

+168
-57
lines changed

arcane/src/arcane/materials/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ arcane_accelerator_add_source_files(
1212
AllEnvData.cc
1313
MeshMaterialVariableScalar
1414
MeshMaterialVariableArray
15+
MeshMaterialVariableIndexer
1516
)
1617

1718
target_compile_definitions(arcane_materials PRIVATE ARCANE_COMPONENT_arcane_materials)

arcane/src/arcane/materials/ConstituentModifierWorkInfo.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ConstituentModifierWorkInfo::
3030
ConstituentModifierWorkInfo()
3131
: pure_local_ids(platform::getDefaultDataAllocator())
3232
, partial_indexes(platform::getDefaultDataAllocator())
33+
, m_cells_to_transform(platform::getDefaultDataAllocator())
3334
{
3435
}
3536

arcane/src/arcane/materials/IncrementalComponentModifier.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ _switchCellsForMaterials(const MeshMaterial* modified_mat,
215215
info(4) << "TransformCells (V3) is_add?=" << is_add << " indexer=" << indexer->name();
216216

217217
_computeCellsToTransformForMaterial(mat, ids);
218-
indexer->transformCellsV2(m_work_info);
218+
indexer->transformCellsV2(m_work_info,m_copy_queue);
219219
m_work_info.resetTransformedCells(ids);
220220

221221
info(4) << "NB_MAT_TRANSFORM=" << m_work_info.pure_local_ids.size() << " name=" << mat->name();
@@ -266,7 +266,7 @@ _switchCellsForEnvironments(const IMeshEnvironment* modified_env,
266266
info(4) << "TransformCells (V2) is_add?=" << is_add << " indexer=" << indexer->name();
267267

268268
_computeCellsToTransformForEnvironments(ids);
269-
indexer->transformCellsV2(m_work_info);
269+
indexer->transformCellsV2(m_work_info, m_copy_queue);
270270
m_work_info.resetTransformedCells(ids);
271271

272272
info(4) << "NB_ENV_TRANSFORM=" << m_work_info.pure_local_ids.size()

0 commit comments

Comments
 (0)