Commit 404ee781 authored by Lukas Weber's avatar Lukas Weber
Browse files

oops

parent 00e0e7a3
......@@ -10,7 +10,7 @@ namespace loadl {
inline int merge_only(jobinfo job, const mc_factory &mccreator, int, char **) {
for(size_t task_id = 0; task_id < job.task_names.size(); task_id++) {
std::vector<evalable> evalables;
std::unique_ptr<mc> sys{mccreator(job.jobfile[job.task_names[task_id]])};
std::unique_ptr<mc> sys{mccreator(job.jobfile["tasks"][job.task_names[task_id]])};
sys->register_evalables(evalables);
job.merge_task(task_id, evalables);
......
......@@ -297,7 +297,7 @@ void runner_slave::start() {
int action = what_is_next(S_IDLE);
while(action != A_EXIT) {
if(action == A_NEW_JOB) {
sys_ = std::unique_ptr<mc>{mccreator_(job_.jobfile[job_.task_names[task_id_]])};
sys_ = std::unique_ptr<mc>{mccreator_(job_.jobfile["tasks"][job_.task_names[task_id_]])};
if(!sys_->_read(job_.rundir(task_id_, run_id_))) {
sys_->_init();
// checkpointing();
......
......@@ -25,7 +25,7 @@ int runner_single::start() {
read();
task_id_ = get_new_task_id(task_id_);
while(task_id_ != -1 && !time_is_up()) {
sys_ = std::unique_ptr<mc>{mccreator_(job_.jobfile[job_.task_names.at(task_id_)])};
sys_ = std::unique_ptr<mc>{mccreator_(job_.jobfile["tasks"][job_.task_names.at(task_id_)])};
if(!sys_->_read(job_.rundir(task_id_, 1))) {
sys_->_init();
}
......
Markdown is supported
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