Module de test pour la gestion des matériaux et des milieux. Plus de détails...
#include <arcane/tests/MeshMaterialTesterModule.h>
Fonctions membres publiques | |
MeshMaterialTesterModule (const ModuleBuildInfo &mbi) | |
void | buildInit () override |
void | compute () override |
void | startInit () override |
void | continueInit () override |
Fonctions membres publiques statiques | |
static void | staticInitialize (ISubDomain *sd) |
Fonctions membres privées | |
void | _computeDensity () |
void | _fillDensity (IMeshMaterial *mat, VariableCellReal &tmp_cell_mat_density, VariableNodeReal &tmp_node_mat_density, Int32Array &mat_to_add_array, Int32Array &mat_to_remove_array, bool is_compute_mat) |
void | _copyPartialToGlobal (IMeshMaterial *mat, VariableCellReal &global_density, MaterialVariableCellReal &partial_variable) |
void | _checkCreation () |
Test la création à la volée des variables, avec multi-threading. | |
void | _checkCreation2 (Integer a, Integer n) |
void | _checkTemporaryVectors (const CellGroup &test_group) |
void | _checkSubViews (const CellGroup &test_group) |
void | _dumpAverageValues () |
void | _dumpNoDumpRealValues () |
void | _checkRunQueues () |
void | _computeMaterialDepend (IMeshMaterial *mat) |
void | _setDependencies () |
void | _doDependencies () |
Integer | _checkParallelMatItem (MatItemVectorView view, MaterialVariableCellInt64 &var) |
Integer | _fillTestVar (ComponentItemVectorView view, MaterialVariableCellInt64 &var) |
Integer | _fillTestVar (IMeshMaterial *mat, MaterialVariableCellInt64 &var) |
void | _subViewFunctor (ComponentItemVectorView view) |
void | _checkEqual (Integer expected_value, Integer value) |
template<typename ContainerType> | |
void | applyGeneric (const ContainerType &container, MaterialVariableCellReal &var, Real value) |
void | _checkFillArrayFromTo (IMeshMaterial *mat, MaterialVariableCellReal &var) |
void | _checkArrayVariableSynchronize () |
void | _setOrCheckSpectralValues (Int64 iteration, bool is_check) |
template<typename VarType1, typename VarType2, typename VarType3> | |
void | _setOrCheckSpectralValues2 (VarType1 &var_real, VarType2 &var_int32, VarType3 &var_scalar_int32, Int64 iteration, bool is_check) |
void | _checkFillPartialValues () |
void | _doSimd () |
template<typename VarType> | |
void | _checkFillPartialValuesHelper (VarType &mat_var) |
template<typename VarType> | |
void | _checkFillPartialValuesWithGlobal (const VarType &var_type, MeshComponentList components) |
template<typename VarType> | |
void | _checkFillPartialValuesWithSuper (const VarType &var_type, MeshComponentList components) |
template<typename VarType> | |
void | _fillVar (VarType &var_type, Real base_value) |
template<typename VectorType> | |
void | _checkVectorCopy (VectorType &var_type) |
void | _testComponentPart (IMeshMaterial *mat, IMeshEnvironment *env) |
Teste les itérateurs par partie. | |
void | _initUnitTest () |
void | _applyEos (bool is_init) |
Appelle le service d'EOS s'il est disponible. | |
void | _testDumpProperties () |
void | _checkNullComponentItem () |
Attributs privés | |
IMeshMaterialMng * | m_material_mng = nullptr |
VariableCellReal | m_density |
VariableCellReal | m_pressure |
MaterialVariableCellReal | m_mat_density2 |
MaterialVariableCellReal | m_mat_nodump_real |
Variable pour tester la bonne prise en compte du PNoDump. | |
VariableCellInt32 | m_present_material |
MaterialVariableCellInt32 | m_mat_int32 |
MaterialVariableCellReal | m_mat_not_used_real |
Variable pour tester la bonne prise en compte de setUsed(false) | |
VariableScalarInt64 | m_nb_starting_cell |
IMeshMaterial * | m_mat1 = nullptr |
IMeshMaterial * | m_mat2 = nullptr |
IMeshBlock * | m_block1 = nullptr |
UniqueArray< VariableCellReal * > | m_density_post_processing |
IMeshPartitioner * | m_mesh_partitioner = nullptr |
Partitioner en cas d'équilibrage. Est géré par une option du JDD. | |
Integer | m_check_spectral_values_iteration = 0 |
Module de test pour la gestion des matériaux et des milieux.
Définition à la ligne 66 du fichier MeshMaterialTesterModule.h.
|
explicit |
Définition à la ligne 43 du fichier MeshMaterialTesterModule_Init.cc.
ArcaneTest::MeshMaterialTesterModule::~MeshMaterialTesterModule | ( | ) |
Définition à la ligne 61 du fichier MeshMaterialTesterModule_Init.cc.
|
private |
Appelle le service d'EOS s'il est disponible.
Définition à la ligne 152 du fichier MeshMaterialTesterModule.cc.
Références ENUMERATE_ENV, ENUMERATE_MAT, ENUMERATE_MATCELL, Arcane::Materials::ConstituentItem::globalCell(), Arcane::Materials::IMeshComponent::name(), et Arcane::Item::uniqueId().
|
private |
Définition à la ligne 1389 du fichier MeshMaterialTesterModule.cc.
|
private |
Test la création à la volée des variables, avec multi-threading.
Définition à la ligne 1593 du fichier MeshMaterialTesterModule.cc.
Références Arcane::arcaneParallelFor(), ENUMERATE_MATCELL, Arcane::Materials::CellMaterialVariableScalarRef< DataType_ >::fill(), et Arcane::ParallelLoopOptions::setGrainSize().
Définition à la ligne 1576 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 632 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 866 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 1177 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 1207 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 1268 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 1290 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 94 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 675 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 73 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 695 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 533 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 499 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 1426 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 414 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 1474 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 360 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 458 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 436 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 482 du fichier MeshMaterialTesterModule.cc.
|
private |
Dans cet exemple, on travaille sur les valeurs partielles d'un matériau. Cette méthode est appelée 2 fois:
Définition à la ligne 1500 du fichier MeshMaterialTesterModule.cc.
Références Arcane::Array< DataType >::add(), ENUMERATE_CELL, ENUMERATE_MATCELL, ENUMERATE_NODE, Arcane::Materials::ConstituentItem::globalCell(), Arcane::Materials::IMeshComponent::id(), Arcane::Item::localId(), Arcane::Materials::IMeshComponent::name(), Arcane::ItemWithNodes::nbNode(), et Arcane::ItemWithNodes::nodeIds().
|
private |
Définition à la ligne 659 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 643 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 1248 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 178 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 201 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 1379 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 1312 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 856 du fichier MeshMaterialTesterModule.cc.
|
private |
Teste les itérateurs par partie.
Une des deux valeurs mat ou env doit être non nul. Cela permet via cette méthode de tester à la fois les matériaux et les milieux.
Définition à la ligne 230 du fichier MeshMaterialTesterModule.cc.
Références Arcane::ValueChecker::areEqual(), Arcane::Materials::MatVarIndex::arrayIndex(), ENUMERATE_COMPONENTCELL, ENUMERATE_COMPONENTITEM, Arcane::Materials::IMeshEnvironment::impureEnvItems(), Arcane::Materials::IMeshComponent::impureItems(), Arcane::Materials::IMeshMaterial::impureMatItems(), Arcane::Materials::IMeshComponent::name(), Arcane::Materials::IMeshEnvironment::pureEnvItems(), Arcane::Materials::IMeshComponent::pureItems(), et Arcane::Materials::IMeshMaterial::pureMatItems().
|
private |
Définition à la ligne 116 du fichier MeshMaterialTesterModule.cc.
|
private |
Définition à la ligne 930 du fichier MeshMaterialTesterModule.cc.
|
override |
Définition à la ligne 114 du fichier MeshMaterialTesterModule_Init.cc.
|
override |
Définition à la ligne 941 du fichier MeshMaterialTesterModule.cc.
|
override |
Définition à la ligne 189 du fichier MeshMaterialTesterModule.cc.
|
override |
Définition à la ligne 230 du fichier MeshMaterialTesterModule_Init.cc.
|
static |
Définition à la ligne 71 du fichier MeshMaterialTesterModule_Init.cc.
|
private |
Définition à la ligne 100 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 106 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 88 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 101 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 98 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 99 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 90 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 94 du fichier MeshMaterialTesterModule.h.
|
private |
Variable pour tester la bonne prise en compte du PNoDump.
Définition à la ligne 92 du fichier MeshMaterialTesterModule.h.
|
private |
Variable pour tester la bonne prise en compte de setUsed(false)
Définition à la ligne 96 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 87 du fichier MeshMaterialTesterModule.h.
|
private |
Partitioner en cas d'équilibrage. Est géré par une option du JDD.
Définition à la ligne 103 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 97 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 93 du fichier MeshMaterialTesterModule.h.
|
private |
Définition à la ligne 89 du fichier MeshMaterialTesterModule.h.