12#ifndef ARCANE_TESTS_MESHMATERIALTESTERMODULE_H
13#define ARCANE_TESTS_MESHMATERIALTESTERMODULE_H
17#define ARCANE_TRACE_ENUMERATOR
19#include "arcane/core/IUnitTest.h"
23#include "arcane/tests/IMaterialEquationOfState.h"
24#include "arcane/tests/MeshMaterialTester_axl.h"
35using namespace Arcane;
66class MeshMaterialTesterModule
67:
public ArcaneMeshMaterialTesterObject
72 ~MeshMaterialTesterModule();
80 void buildInit()
override;
81 void compute()
override;
82 void startInit()
override;
83 void continueInit()
override;
106 Integer m_check_spectral_values_iteration = 0;
110 void _computeDensity();
114 bool is_compute_mat);
119 void _checkTemporaryVectors(
const CellGroup& test_group);
120 void _checkSubViews(
const CellGroup& test_group);
121 void _dumpAverageValues();
122 void _dumpNoDumpRealValues();
123 void _checkRunQueues();
126 void _setDependencies();
127 void _doDependencies();
135 void _checkArrayVariableSynchronize();
136 void _setOrCheckSpectralValues(
Int64 iteration,
bool is_check);
137 template <
typename VarType1,
typename VarType2,
typename VarType3>
void
138 _setOrCheckSpectralValues2(VarType1& var_real, VarType2& var_int32,
139 VarType3& var_scalar_int32,
Int64 iteration,
bool is_check);
140 void _checkFillPartialValues();
142 template <
typename VarType>
void _checkFillPartialValuesHelper(VarType& mat_var);
143 template <
typename VarType>
144 void _checkFillPartialValuesWithGlobal(
const VarType& var_type,
MeshComponentList components);
145 template <
typename VarType>
void
146 _checkFillPartialValuesWithSuper(
const VarType& var_type,
MeshComponentList components);
147 template <
typename VarType>
void
148 _fillVar(VarType& var_type,
Real base_value);
149 template <
typename VectorType>
void
150 _checkVectorCopy(VectorType& var_type);
152 void _initUnitTest();
154 void _testDumpProperties();
155 void _checkNullComponentItem();
void _applyEos(bool is_init)
Appelle le service d'EOS s'il est disponible.
MaterialVariableCellReal m_mat_nodump_real
Variable pour tester la bonne prise en compte du PNoDump.
void _checkCreation()
Test la création à la volée des variables, avec multi-threading.
MaterialVariableCellReal m_mat_not_used_real
Variable pour tester la bonne prise en compte de setUsed(false)
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 _testComponentPart(IMeshMaterial *mat, IMeshEnvironment *env)
Teste les itérateurs par partie.
IMeshPartitioner * m_mesh_partitioner
Partitioner en cas d'équilibrage. Est géré par une option du JDD.
Interface d'un partitionneur de maillage.
Interface du gestionnaire d'un sous-domaine.
Variable scalaire sur les mailles d'un matériau du maillage. Pour l'instant, cette classe n'est insta...
Vue sur un vecteur sur les entités d'un composant.
Interface d'un bloc d'un maillage.
Interface d'un milieu d'un maillage.
Interface du gestionnaire des matériaux et des milieux d'un maillage.
Interface d'un matériau d'un maillage.
Vue sur un vecteur sur les entités d'un matériau.
Informations pour construire un module.
Vecteur 1D de données avec sémantique par valeur (style STL).
ItemGroupT< Cell > CellGroup
Groupe de mailles.
MeshVariableScalarRefT< Cell, Real > VariableCellReal
Grandeur au centre des mailles de type réel.
MeshVariableScalarRefT< Node, Real > VariableNodeReal
Grandeur au noeud de type réel.
MeshVariableScalarRefT< Cell, Int32 > VariableCellInt32
Grandeur au centre des mailles de type entier 32 bits.
VariableRefScalarT< Int64 > VariableScalarInt64
Variable scalaire de type entier 64 bits.
Espace de nom pour l'utilisation des accélérateurs.
Active toujours les traces dans les parties Arcane concernant les matériaux.
ConstArrayView< IMeshComponent * > MeshComponentList
Liste de composants multi-matériaux du maillage.
CellMaterialVariableScalarRef< Int64 > MaterialVariableCellInt64
Variable matériau de type Int64
CellMaterialVariableScalarRef< Real > MaterialVariableCellReal
Variable matériau de type Real
CellMaterialVariableScalarRef< Int32 > MaterialVariableCellInt32
Variable matériau de type Int32
std::int64_t Int64
Type entier signé sur 64 bits.
Int32 Integer
Type représentant un entier.
double Real
Type représentant un réel.
Array< Int32 > Int32Array
Tableau dynamique à une dimension d'entiers 32 bits.