Skip to content
Snippets Groups Projects
Commit 29b26f11 authored by Kurt A. O'Hearn's avatar Kurt A. O'Hearn
Browse files

PuReMD-old: fix average solver iteration calculation to be correct when energy_update_freq > 1.

parent 5bcf95a6
No related branches found
No related tags found
No related merge requests found
...@@ -215,7 +215,9 @@ int main( int argc, char* argv[] ) ...@@ -215,7 +215,9 @@ int main( int argc, char* argv[] )
Evolve( system, control, data, workspace, lists, out_control, mpi_data ); Evolve( system, control, data, workspace, lists, out_control, mpi_data );
Post_Evolve(system, control, data, workspace, lists, out_control, mpi_data); Post_Evolve(system, control, data, workspace, lists, out_control, mpi_data);
if( system->my_rank == MASTER_NODE ) if ( system->my_rank == MASTER_NODE
&& out_control->energy_update_freq > 0
&& data->step % out_control->energy_update_freq == 0 )
{ {
total_itr += data->timing.cm_solver_iters; total_itr += data->timing.cm_solver_iters;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment