Use 'enstrophy' instead of energy, and print enstrophy*alpha

This commit is contained in:
2023-05-10 19:29:31 -04:00
parent e5a126f45a
commit 7c007e9342
4 changed files with 10 additions and 10 deletions

View File

@@ -84,8 +84,8 @@ int uk(
return(0);
}
// compute energy, enstrophy, alpha as a function of time in the I-NS equation
int eea(
// compute enstrophy, alpha as a function of time
int enstrophy(
int K1,
int K2,
int N1,
@@ -179,7 +179,7 @@ int eea(
fprintf(savefile," -p \"%s;starting_time=%lu;nsteps=%lu;init=file:%s\"", params, t+1, (nsteps+starting_time < t+1 ? 0 : nsteps+starting_time-t-1), savefile_string);
free(params);
}
fprintf(savefile," energy\n");
fprintf(savefile," enstrophy\n");
// save final u to savefile
if(savefile==stderr || savefile==stdout){