14#include "arcane/utils/ArcanePrecomp.h"
16#include "arcane/utils/ArgumentException.h"
17#include "arcane/utils/ValueConvert.h"
18#include "arcane/utils/PlatformUtils.h"
20#include "arcane/mesh/GhostLayerMng.h"
34GhostLayerMng(ITraceMng* tm)
39 if (
auto v = Convert::Type<Int32>::tryParseFromEnvironment(
"ARCANE_NB_GHOSTLAYER",
true))
40 m_nb_ghost_layer = std::clamp(v.value(),1,256);
42 _initBuilderVersion();
49setNbGhostLayer(Integer n)
59Integer GhostLayerMng::
62 return m_nb_ghost_layer;
69setBuilderVersion(Integer n)
73 m_builder_version = n;
91 String version_str = platform::getEnvironmentVariable(
"ARCANE_GHOSTLAYER_VERSION");
94 pwarning() <<
"Bad value for 'ARCANE_GHOSTLAYER_VERSION'";
96 if (version<2 || version>4)
97 version = default_version;
99 m_builder_version = version;
105Integer GhostLayerMng::
106builderVersion()
const
108 return m_builder_version;
#define ARCANE_THROW(exception_class,...)
Macro pour envoyer une exception avec formattage.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Exception lorsqu'un argument est invalide.
Chaîne de caractères unicode.