13 set(
unsigned int global_variable_index,
double variable_value)
15 var_index.push_back(global_variable_index);
16 value.push_back(variable_value);
21 operator()(
unsigned int global_variable_index)
23 for (
unsigned int i = 0; i < num_entries; i++)
25 if (global_variable_index == var_index[i])
33 std::cerr <<
"PRISMS-PF Error: Attempted access of a variable value that was not "
34 "marked as needed in 'parameters.in'. Double-check the indices in "
35 "user functions where a variable value is requested."
41 std::vector<unsigned int> var_index;
42 std::vector<double> value;
43 unsigned int num_entries;