Commit d91f0b63 authored by maximilianlohoefer's avatar maximilianlohoefer
Browse files

parser.defined() now also works for arrays. pt-index is now passed to mc before init() is called


git-svn-id: https://svn.rwth-aachen.de/repos/sw440870_load_leveller/trunk@51 36cca2a8-63f0-4188-8a56-663e3b0d1cf3
parent dbc82c7f
......@@ -96,8 +96,10 @@ bool parser::defined(std::string name)
{
std::map<std::string,std::string>::iterator it;
it=vars.find(name);
if(it==vars.end()) return false;
else return true;
std::map<std::string,std::vector<std::string> >::iterator arrit = arrs.find(name);
return it != vars.end() || arrit != arrs.end();
// if(it==vars.end()) return false;
// else return true;
}
void parser :: add_comment(std::string new_comm)
......
......@@ -501,8 +501,8 @@ void runner_pt :: run()
}
else {
(*STATUS) << my_rank << ": I " << my_rundir << "\n";
(*sys).init();
(*sys).change_to(my_task.pt_pos);
(*sys).init();
checkpointing();
}
if((*sys).request_global_update()) what_is_next(S_GLOBAL_UPDATE);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment