Only print every 1000 terms
This commit is contained in:
parent
cff1d2ee3c
commit
b845911397
@ -260,7 +260,7 @@ int enstrophy(ns_params params, unsigned int Nsteps){
|
|||||||
avg=avg-(avg-alpha)/t;
|
avg=avg-(avg-alpha)/t;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(t>0 && t%1==0){
|
if(t>0 && t%1000==0){
|
||||||
fprintf(stderr,"%8d % .8e % .8e % .8e % .8e\n",t, __real__ avg, __imag__ avg, __real__ alpha, __imag__ alpha);
|
fprintf(stderr,"%8d % .8e % .8e % .8e % .8e\n",t, __real__ avg, __imag__ avg, __real__ alpha, __imag__ alpha);
|
||||||
printf("%8d % .8e % .8e % .8e % .8e\n",t, __real__ avg, __imag__ avg, __real__ alpha, __imag__ alpha);
|
printf("%8d % .8e % .8e % .8e % .8e\n",t, __real__ avg, __imag__ avg, __real__ alpha, __imag__ alpha);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user