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();
62 return m_nb_ghost_layer;
73 m_builder_version = n;
90 Integer version = default_version;
92 if (!version_str.
null()) {
93 if (builtInGetValue(version, version_str)) {
94 pwarning() <<
"Bad value for 'ARCANE_GHOSTLAYER_VERSION'";
96 if (version < 2 || version > 4)
97 version = default_version;
99 m_builder_version = version;
106builderVersion()
const
108 return m_builder_version;
#define ARCANE_THROW(exception_class,...)
Macro for throwing an exception with formatting.
Exception when an argument is invalid.
Unicode character string.
bool null() const
Returns true if the string is null.
Int32 Integer
Type representing an integer.