14#include "arcane/mesh/MeshUniqueIdMng.h"
16#include "arcane/utils/PlatformUtils.h"
17#include "arcane/utils/ArgumentException.h"
18#include "arcane/utils/FatalErrorException.h"
19#include "arcane/utils/ValueConvert.h"
21#include "arcane/IMeshUniqueIdMng.h"
33MeshUniqueIdMng(ITraceMng* tm)
35, m_face_builder_version(1)
36, m_edge_builder_version(1)
46setFaceBuilderVersion(Integer n)
49 ARCANE_THROW(ArgumentException,
"Bad value for '{0}'<0",n);
50 m_face_builder_version = n;
57setEdgeBuilderVersion(Integer n)
60 ARCANE_THROW(ArgumentException,
"Bad value for '{0}'<0",n);
61 m_edge_builder_version = n;
70 m_face_builder_version = 1;
72 if (
auto v = Convert::Type<Int32>::tryParseFromEnvironment(
"ARCANE_FACE_UNIQUE_ID_BUILDER_VERSION",
true)){
73 m_face_builder_version = v.value();
82 if (!platform::getEnvironmentVariable(
"ARCANE_NEW_MESHINIT2").null()){
83 m_face_builder_version = 3;
87 if (!platform::getEnvironmentVariable(
"ARCANE_NO_FACE_RENUMBER").null()){
88 m_face_builder_version = 0;
92 if (!platform::getEnvironmentVariable(
"ARCANE_NEW_MESHINIT").null()){
93 m_face_builder_version = 2;
101void MeshUniqueIdMng::
104 m_edge_builder_version = 1;
106 if (
auto v = Convert::Type<Int32>::tryParseFromEnvironment(
"ARCANE_EDGE_UNIQUE_ID_BUILDER_VERSION",
true)){
107 m_edge_builder_version = v.value();
#define ARCANE_THROW(exception_class,...)
Macro pour envoyer une exception avec formattage.