print_alpha

This commit is contained in:
2024-11-07 14:39:03 -05:00
parent cf48b23d4d
commit 9fa10c8db4
4 changed files with 19 additions and 3 deletions

View File

@@ -145,6 +145,7 @@ int enstrophy(
unsigned int algorithm,
double print_freq,
double starting_time,
bool print_alpha,
unsigned int nthreads,
FILE* savefile,
FILE* utfile,
@@ -236,7 +237,7 @@ int enstrophy(
}
// print alpha when it gets negative
if(alpha<0){
if(print_alpha && alpha<0){
fprintf(stderr,"## negative alpha: % .8e at time % .8e\n",alpha, time);
printf("## negative alpha: % .15e at time % .15e\n",alpha, time);
}