24 bool _env_allow_experimental_features
26 "SHAM_EXPERIMENTAL",
"0",
"Allow the use of experimental features")
29 bool warning_printed =
false;
34 if (!warning_printed && _env_allow_experimental_features) {
37 std::string color = shambase::term_colors::col8b_yellow();
38 std::string reset = shambase::term_colors::reset();
40 shamcomm::logs::raw_ln(
42 +
"---------------------------- WARNING ----------------------------" + reset
43 +
"\n" + color +
"Warning:" + reset +
" Experimental features are enabled\n"
44 + color +
"-----------------------------------------------------------------"
47 warning_printed =
true;
50 return _env_allow_experimental_features;
std::string getenv_str_default_register(const char *env_var, std::string default_val, std::string desc)
Get the content of the environment variable if it exist and register it documentation,...
i32 world_rank()
Gives the rank of the current process in the MPI communicator.
namespace for the main framework
bool are_experimental_features_allowed()
Allow the use of experimental features.
void enable_experimental_features()
Allow the use of experimental features.
Functions related to the MPI communicator.