51 std::vector<ProcessVariable>
const& variables,
53 std::initializer_list<std::string>
56 std::vector<std::reference_wrapper<ProcessVariable>> vars;
57 vars.reserve(variables.size());
59 if (variables.size() > tags.size())
60 DBUG(
"Found multiple process variables with a same tag.");
62 for (
auto const& tag : tags)
65 vars.insert(vars.end(), vars_per_tag.begin(), vars_per_tag.end());
72 std::vector<ProcessVariable>
const& variables,
79 if (var_names.empty())
85 OGS_FATAL(
"No entity is found with config tag <{:s}>.", tag);
88 std::vector<std::reference_wrapper<ProcessVariable>> vars;
89 std::vector<std::string> cached_var_names;
91 for (std::string
const& var_name : var_names)
93 vars.emplace_back(findVariableByName(variables, var_name, tag));
94 cached_var_names.push_back(var_name);
100 if (cached_var_names.size() != var_names.size())
102 OGS_FATAL(
"Found duplicates with config tag <{:s}>.", tag);