print_alpha
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user