Commit ecd9594f authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

move iter timing output before stopping condition break

parent 9d419377
Pipeline #13556 passed with stage
in 6 minutes and 2 seconds
......@@ -103,11 +103,11 @@ int direct_numerical_simulation::main_loop(void)
this->step();
if (this->iteration % this->niter_out == 0)
this->write_checkpoint();
this->print_simple_timer(
"iteration " + std::to_string(this->iteration));
this->check_stopping_condition();
if (this->stop_code_now)
break;
this->print_simple_timer(
"iteration " + std::to_string(this->iteration));
}
this->do_stats();
this->print_simple_timer(
......
......@@ -22,6 +22,10 @@ int postprocess::main_loop(void)
this->work_on_current_iteration();
this->print_simple_timer(
"iteration " + std::to_string(this->iteration));
this->check_stopping_condition();
if (this->stop_code_now)
break;
}
return EXIT_SUCCESS;
}
......
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