44 static std::map<std::string, std::unique_ptr<T>> map_name;
45 if (map_name.count(name__) == 0) {
47 const char* raw_str = std::getenv(name__.c_str());
48 if (raw_str == NULL) {
49 map_name[name__] =
nullptr;
51 map_name[name__] = std::make_unique<T>();
52 std::istringstream(std::string(raw_str)) >> (*map_name[name__]);
55 return map_name[name__].get();
61 auto val = get_value_ptr<int>(
"SIRIUS_PRINT_PERFORMANCE");
68 auto val = get_value_ptr<int>(
"SIRIUS_PRINT_CHECKSUM");
75 auto val = get_value_ptr<int>(
"SIRIUS_PRINT_HASH");
82 auto val = get_value_ptr<int>(
"SIRIUS_PRINT_MPI_LAYOUT");
89 auto val = get_value_ptr<int>(
"SIRIUS_PRINT_MEMORY_USAGE");
96 auto val = get_value_ptr<int>(
"SIRIUS_PRINT_TIMING");
107 auto val = get_value_ptr<std::string>(
"SIRIUS_SAVE_CONFIG");
118 auto val = get_value_ptr<std::string>(
"SIRIUS_CONFIG");
129 auto val = get_value_ptr<std::string>(
"SIRIUS_EV_SOLVER");
140 auto verb_lvl = env::get_value_ptr<int>(
"SIRIUS_VERBOSITY");
151 auto val = get_value_ptr<int>(
"SIRIUS_CHECK_SCF_DENSITY");
T const * get_value_ptr(std::string const &name__)
Check for environment variable and return a pointer to a stored value if found or a null-pointer if n...
Namespace of the SIRIUS library.