From 8d2af578fd5bc5bbf16e58d05b14d3219ee0e917 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Wed, 17 May 2023 18:01:46 -0400 Subject: [PATCH] Correct order of output for enstrophy --- src/navier-stokes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/navier-stokes.c b/src/navier-stokes.c index 75fe2ab..7094a3f 100644 --- a/src/navier-stokes.c +++ b/src/navier-stokes.c @@ -230,10 +230,10 @@ int enstrophy( // print to stderr so user can follow along if(algorithm>ALGORITHM_ADAPTIVE_THRESHOLD){ fprintf(stderr,"% .8e % .8e % .8e % .8e % .8e % .8e % .8e % .8e\n",time, avg_a, avg_en, avg_en_x_a, alpha, enstrophy, alpha*enstrophy, step); - printf("% .15e % .15e % .15e % .15e % .15e % .15e % .15e % .15e\n",time, avg_a, avg_en_x_a, avg_en, alpha, alpha*enstrophy, enstrophy, step); + printf("% .15e % .15e % .15e % .15e % .15e % .15e % .15e % .15e\n",time, avg_a, avg_en, avg_en_x_a, alpha, enstrophy, alpha*enstrophy, step); } else { 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_x_a, avg_en, alpha, alpha*enstrophy, 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 }