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())
61 DBUG(
"Found multiple process variables with a same tag.");
64 for (
auto const& tag : tags)
67 vars.insert(vars.end(), vars_per_tag.begin(), vars_per_tag.end());
74 std::vector<ProcessVariable>
const& variables,
81 if (var_names.empty())
87 OGS_FATAL(
"No entity is found with config tag <{:s}>.", tag);
90 std::vector<std::reference_wrapper<ProcessVariable>> vars;
91 std::vector<std::string> cached_var_names;
93 for (std::string
const& var_name : var_names)
95 vars.emplace_back(findVariableByName(variables, var_name, tag));
96 cached_var_names.push_back(var_name);
102 if (cached_var_names.size() != var_names.size())
104 OGS_FATAL(
"Found duplicates with config tag <{:s}>.", tag);