Skip to content
Snippets Groups Projects
Commit ecd9594f authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

move iter timing output before stopping condition break

parent 9d419377
Branches
Tags
1 merge request!21Bugfix/nansampling
Pipeline #
...@@ -103,11 +103,11 @@ int direct_numerical_simulation::main_loop(void) ...@@ -103,11 +103,11 @@ int direct_numerical_simulation::main_loop(void)
this->step(); this->step();
if (this->iteration % this->niter_out == 0) if (this->iteration % this->niter_out == 0)
this->write_checkpoint(); this->write_checkpoint();
this->print_simple_timer(
"iteration " + std::to_string(this->iteration));
this->check_stopping_condition(); this->check_stopping_condition();
if (this->stop_code_now) if (this->stop_code_now)
break; break;
this->print_simple_timer(
"iteration " + std::to_string(this->iteration));
} }
this->do_stats(); this->do_stats();
this->print_simple_timer( this->print_simple_timer(
......
...@@ -22,6 +22,10 @@ int postprocess::main_loop(void) ...@@ -22,6 +22,10 @@ int postprocess::main_loop(void)
this->work_on_current_iteration(); this->work_on_current_iteration();
this->print_simple_timer( this->print_simple_timer(
"iteration " + std::to_string(this->iteration)); "iteration " + std::to_string(this->iteration));
this->check_stopping_condition();
if (this->stop_code_now)
break;
} }
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment