14#include "arcane/materials/internal/ConstituentListPrinter.h"
16#include "arcane/materials/internal/MeshMaterialMng.h"
27ConstituentListPrinter::
28ConstituentListPrinter(MeshMaterialMng* mm)
29: TraceAccessor(mm->traceMng())
40void ConstituentListPrinter::
43 IMesh* mesh = m_material_mng->mesh();
44 _printConstituentsPerCell(mesh->allCells().view());
51void ConstituentListPrinter::
52_printConstituentsPerCell(ItemVectorView items)
54 info() <<
"ConstituentsPerCell:";
55 CellToAllEnvCellConverter all_env_cell_converter(m_material_mng);
57 AllEnvCell all_env_cell = all_env_cell_converter[icell];
58 Cell global_cell = all_env_cell.globalCell();
59 info() <<
"Cell=" << global_cell.uniqueId();
61 EnvCell ec = *ienvcell;
62 info() <<
" EnvCell mv=" << ec._varIndex()
63 <<
" env=" << ec.component()->name();
65 MatCell mc = *imatcell;
66 info() <<
" MatCell mv=" << mc._varIndex()
67 <<
" mat=" << mc.component()->name();
76void ConstituentListPrinter::
79 info() <<
"Constituents:";
81 IMeshEnvironment* env = *ienv;
82 info() <<
"ENV name=" << env->name();
85 info() <<
"EnvCell mv=" << ev._varIndex();
88 Materials::IMeshMaterial* mat = *imat;
89 info() <<
"MAT name=" << mat->name();
92 info() <<
"MatCell mv=" << mc._varIndex();
Active toujours les traces dans les parties Arcane concernant les matériaux.