Commit 53e01627 authored by Lukas Weber's avatar Lukas Weber

fix many sweeps support

parent 932ad255
......@@ -95,7 +95,7 @@ std::vector<std::filesystem::path> jobinfo::list_run_files(const std::string &ta
return results;
}
int jobinfo::read_dump_progress(int task_id) const {
size_t jobinfo::read_dump_progress(int task_id) const {
size_t sweeps = 0;
try {
for(auto &dump_name : list_run_files(taskdir(task_id), "dump\\.h5")) {
......
......@@ -32,7 +32,7 @@ public:
static std::vector<std::filesystem::path> list_run_files(const std::string &taskdir,
const std::string &file_ending);
int read_dump_progress(int task_id) const;
size_t read_dump_progress(int task_id) const;
void merge_task(int task_id);
void concatenate_results();
void log(const std::string &message);
......
......@@ -78,7 +78,7 @@ void runner_single::read() {
for(size_t i = 0; i < job_.task_names.size(); i++) {
auto task = job_.jobfile["tasks"][job_.task_names[i]];
size_t target_sweeps = task.get<int>("sweeps");
size_t target_sweeps = task.get<size_t>("sweeps");
size_t sweeps = 0;
sweeps = job_.read_dump_progress(i);
......
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