Bug with computing averages

This commit is contained in:
Ian Jauslin 2023-06-20 11:07:35 -04:00
parent 870196ec07
commit 9c3ad2c400

View File

@ -243,19 +243,17 @@ int enstrophy(
fprintf(stderr,"% .8e % .8e % .8e % .8e % .8e % .8e % .8e\n",time, avg_a, avg_en, avg_en_x_a, alpha, enstrophy, alpha*enstrophy);
printf("% .15e % .15e % .15e % .15e % .15e % .15e % .15e\n",time, avg_a, avg_en, avg_en_x_a, alpha, enstrophy, alpha*enstrophy);
}
// print to stdout
}
// reset averages
avg_a=0;
avg_en=0;
avg_en_x_a=0;
prevtime=time;
// reset averages
avg_a=0;
avg_en=0;
avg_en_x_a=0;
prevtime=time;
}
// get ready for next step
step=next_step;
// catch abort signal
if (g_abort){
// print u to stderr if no savefile