14#include "arcane/materials/internal/ConstituentModifierWorkInfo.h"
16#include "arcane/materials/internal/MaterialModifierOperation.h"
27ConstituentModifierWorkInfo::
28ConstituentModifierWorkInfo(
const MemoryAllocationOptions& opts,
eMemoryRessource mem)
29: pure_local_ids(opts.allocator())
30, partial_indexes(opts.allocator())
31, cells_changed_in_env(opts)
32, cells_unchanged_in_env(opts)
33, m_saved_matvar_indexes(opts.allocator())
34, m_saved_local_ids(opts.allocator())
35, m_cells_current_nb_material(opts)
36, m_cells_is_partial(mem)
37, m_removed_local_ids_filter(mem)
38, m_cells_to_transform(mem)
40 cells_changed_in_env.setDebugName(
"WorkInfoCellsChangedInEnv");
41 cells_unchanged_in_env.setDebugName(
"WorkInfoCellsUnchangedInEnv");
47void ConstituentModifierWorkInfo::
58 m_saved_local_ids.resizeHost(max_local_id);
68void ConstituentModifierWorkInfo::
72 for (
Int32 lid : local_ids)
79void ConstituentModifierWorkInfo::
82 m_is_add = operation->
isAdd();
Execution queue for an accelerator.
bool isAcceleratorPolicy() const
Indicates if the instance is associated with an accelerator.
Constant view of an array of type T.
DualUniqueArray< MatVarIndex > m_saved_matvar_indexes
List of MatVarIndex and LocalId to save when deleting material cells.
DualUniqueArray< bool > m_is_materials_modified
Array dimensioned by materials, which is true if a material is affected by the current modification.
NumArray< bool, MDDim1 > m_removed_local_ids_filter
Filter indicating the cells that are removed from the constituent.
NumArray< CopyBetweenDataInfo, MDDim1 > m_variables_copy_data
Information for copies between partial and global values.
NumArray< bool, MDDim1 > m_cells_to_transform
Filter indicating the cells that must change status (Pure<->Partial).
DualUniqueArray< bool > m_is_environments_modified
Array dimensioned by environments, which is true if an environment is affected by the current modific...
Operation to add or remove cells from a material.
bool isAdd() const
Indicates whether the operation is to add or remove cells from the material.
Multi-dimensional arrays for numerical types accessible on accelerators.
Always enables tracing in Arcane parts concerning materials.
Arcane::eMemoryResource eMemoryRessource
Typedef for the historical Arcane version (with 2's').
std::int32_t Int32
Signed integer type of 32 bits.