2 #ifndef VARIBLEVALUECONTAINER_H 3 #define VARIBLEVALUECONTAINER_H 10 void set(
unsigned int global_variable_index,
double variable_value){
11 var_index.push_back(global_variable_index);
12 value.push_back(variable_value);
17 if (global_variable_index ==
var_index[i]){
23 std::cerr <<
"PRISMS-PF Error: Attempted access of a variable value that was not marked as needed in 'parameters.in'. Double-check the indices in user functions where a variable value is requested." << std::endl;
std::vector< unsigned int > var_index
double operator()(unsigned int global_variable_index)
std::vector< double > value