Skip to content

Commit

Permalink
coordinate with changes in the reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuejun Yang committed Jun 2, 2011
1 parent 070dc73 commit d2b0dc1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Reducer.cpp
Expand Up @@ -114,9 +114,13 @@ Reducer::configure(void)
getline(conf, line);
StringUtils::chop(line);
// make sure the focus var is marked as used var
const Variable* v = VariableSelector::find_var_by_name(line);
assert(v);
used_vars.push_back(v);
vector<string> vnames;
StringUtils::split_string(line, vnames, ", ");
for (size_t i=0; i<vnames.size(); i++) {
const Variable* v = VariableSelector::find_var_by_name(vnames[i]);
assert(v);
used_vars.push_back(v);
}
}
else if (line.find("drop parameters") == 0) {
getline(conf, line);
Expand Down

0 comments on commit d2b0dc1

Please sign in to comment.