Print negative values of alpha

This commit is contained in:
Ian Jauslin 2024-10-15 11:41:31 -04:00
parent 7675148e7d
commit 0404bd0cf0

View File

@ -235,6 +235,12 @@ int enstrophy(
prevtime=time; prevtime=time;
} }
// print alpha when it gets negative
if(alpha<0){
fprintf(stderr,"## negative alpha: % .8e at time % .8e\n",alpha, time);
printf("## negative alpha: % .15e at time % .15e\n",alpha, time);
}
// get ready for next step // get ready for next step
step=next_step; step=next_step;